AbanteCart Community

Shopping Cart Operations => Support => Topic started by: jmp100 on July 26, 2021, 02:48:05 PM

Title: Basic Install, No Demo Product URL Issues
Post by: jmp100 on July 26, 2021, 02:48:05 PM
The url for the shop changes once into the store. This was installed via ftp, no demo product data. cpanel installs no issue. So far it appears to function but is really odd. Any ideas how to remedy much appreciated. Issue replicated in two fresh installs.

URL example:

xxxxxx.com/shop/

Any links beyond including admin adds 'hop/':

xxxxxx.com/shop/hop/index.php?rt=product/special

AbanteCart version 1.3.0

.htaccess

# SEO URL Settings
RewriteBase /shop/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)\?*$ index.php?_route_=$1 [L,QSA]


In the shop's header.tpl there is this adding the hop/ in url:

$system_checker_url

url: 'xxxxxxxx.com/shop/hop/index.php?rt=r/product/product/addToCart',

//periodical updater of new message notifier
var growl = null;
var alertcount = 3;
var system_checker = function () {
    if(alertcount <= 0) {
        return;
    }
    $.ajax({
        async: false,
        cache: false,
        url: '<?php echo $system_checker_url?>',
        success: function(data) {
            if(data != null && data != undefined) {
                if(growl != null && growl != undefined ) {
                    growl.close();
                }
                growl = showSystemAlert(data);
            }
        },
        complete: function() {
            // Schedule the next request when the current one's complete
            alertcount--;
            setTimeout(system_checker, 600000);
        }
    });
};

Issue #2.

The shop settings for url ie: www . xxxxxx.com/shop/

Changes to url: xxxxxx.com/shop/

Forcing url breaks font awesome icons and maybe other entities: www . xxxxxx.com/shop/

Thanks, JMP
Title: Re: Basic Install, No Demo Product URL Issues
Post by: jmp100 on July 26, 2021, 03:04:22 PM
Ok, I changed the store details url from 'www . xxxxxx.com/shop/' to 'xxxxxx.com/shop/'

This appears to have rectified the 'hop/' url issue and Issue #2 with broken font awesome icons.

Recommend to not install with the store urls containing 'www.' remove that from the store url and secure store url if you are having these odd issues.
Title: Re: Basic Install, No Demo Product URL Issues
Post by: abolabo on July 27, 2021, 04:02:45 AM
to solve please replace your file public_html/core/lib/config.php with this
 https://raw.githubusercontent.com/abantecart/abantecart-src/1.3.1/public_html/core/lib/config.php
Title: Re: Basic Install, No Demo Product URL Issues
Post by: jmp100 on July 27, 2021, 05:32:41 PM
Thanks Abolabo, that made the fix for both issues  ;)
Title: Re: Basic Install, No Demo Product URL Issues
Post by: ellagrace1658 on August 05, 2021, 12:43:21 PM
Thanks