Post by jambog82 » Tue Jan 27, 2015 10:20 pm

When I click "Add To Cart" the site hangs, the cart says "Loading..." and will not update items. My fa fa icons also do not show up, they appear as rectangles.

When I click to go to the items product page, everything works fine, the fa fa icons display and I can add the item to the cart. After going to the product page, even if I don't add anything to the cart, and then return to the home page everything on the home page works fine after that. It is only when I first go to the site and try to add an item to the cart that it will not do anything. The homepage only works after i go to the product page then return to the homepage.
I am using a new install of opencart 2.0.1.1 with the default theme.

Any help would be greatly appreciated. Thanks.

Newbie

Posts

Joined
Tue Jul 15, 2014 4:15 am

User avatar
Guru Member

Posts

Joined
Wed Nov 16, 2011 11:53 am
Location - Singapore

Post by jambog82 » Wed Jan 28, 2015 11:53 pm

Okay, that is the problem. when I go to example.com is doens't work, if I go to www.example.com it works fine. I redirected my domain to redirect to www.domain.com, but now I get a redirect loop error when I go there. Any suggestions? Thanks, atleast now I know the issue.

Newbie

Posts

Joined
Tue Jul 15, 2014 4:15 am

Post by jambog82 » Thu Jan 29, 2015 12:05 am

Fixed! I wasn't redirecting it correctly in Cpanel, now everthing works fine. Thanks for the help!!!

Newbie

Posts

Joined
Tue Jul 15, 2014 4:15 am

User avatar
Guru Member

Posts

Joined
Wed Nov 16, 2011 11:53 am
Location - Singapore

Post by wilek666 » Sat Mar 19, 2016 6:12 pm

dear all,

I have same issue - my cart hangs, I redirected page to http://www.pszczelafarma.pl but I think the issue is my template - journal 2, what should I change to avoid it ?

http://www.ortopediko.pl
http://www.pszczelafarma.pl


User avatar
New member

Posts

Joined
Sun Dec 07, 2014 2:26 am
Location - Warsaw, Poland

Post by MarketInSG » Wed Mar 23, 2016 11:25 pm

this depends on your config.php file. Is your website setup with www or no www?


User avatar
Guru Member

Posts

Joined
Wed Nov 16, 2011 11:53 am
Location - Singapore

Post by wilek666 » Thu Mar 24, 2016 3:14 am

with www

example of config:

Code: Select all

<?php
// HTTP
define('HTTP_SERVER', 'http://www.pszczelafarma.pl/');

// HTTPS
define('HTTPS_SERVER', 'http://www.pszczelafarma.pl/');

// DIR
define('DIR_APPLICATION', '/home/wilek666/domains/pszczelafarma.pl/public_html/catalog/');
define('DIR_SYSTEM', '/home/wilek666/domains/pszczelafarma.pl/public_html/system/');
define('DIR_LANGUAGE', '/home/wilek666/domains/pszczelafarma.pl/public_html/catalog/language/');
define('DIR_TEMPLATE', '/home/wilek666/domains/pszczelafarma.pl/public_html/catalog/view/theme/');
define('DIR_CONFIG', '/home/wilek666/domains/pszczelafarma.pl/public_html/system/config/');
define('DIR_IMAGE', '/home/wilek666/domains/pszczelafarma.pl/public_html/image/');
define('DIR_CACHE', '/home/wilek666/domains/pszczelafarma.pl/public_html/system/storage/cache/');
define('DIR_DOWNLOAD', '/home/wilek666/domains/pszczelafarma.pl/public_html/system/storage/download/');
define('DIR_LOGS', '/home/wilek666/domains/pszczelafarma.pl/public_html/system/storage/logs/');
define('DIR_MODIFICATION', '/home/wilek666/domains/pszczelafarma.pl/public_html/system/storage/modification/');
define('DIR_UPLOAD', '/home/wilek666/domains/pszczelafarma.pl/public_html/system/storage/upload/');
this is how it looks =>

Image

I think the issue is that my template journal 2.4.8 is not compatible with OC version 2.1.0.2. I will try to swap/override some files.

http://www.ortopediko.pl
http://www.pszczelafarma.pl


User avatar
New member

Posts

Joined
Sun Dec 07, 2014 2:26 am
Location - Warsaw, Poland

Post by wilek666 » Fri Mar 25, 2016 2:43 am

when I looked into error log I have following message:

Code: Select all

2016-03-24 19:39:18 - PHP Notice:  Undefined index: key in /home/wilek666/domains/pszczelafarma.pl/public_html/catalog/view/theme/journal2/template/common/cart.tpl on line 26

this line looks like this:

Code: Select all

<td class="text-center remove"><button type="button" onclick="cart.remove('<?php echo $product['key']; ?>');" title="<?php echo $button_remove; ?>" class=""><i class=""></i></button></td>
also I can not remove items from cart :(

Could anyone help ?

http://www.ortopediko.pl
http://www.pszczelafarma.pl


User avatar
New member

Posts

Joined
Sun Dec 07, 2014 2:26 am
Location - Warsaw, Poland

Post by ADD Creative » Fri Mar 25, 2016 2:58 am

It looks like your theme is not compatible with 2.1.x. You should ask the theme seller for support if it was sold as being compatible.

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by wilek666 » Fri Mar 25, 2016 8:50 am

Yes, this helped, after I connected theme to supported OC version, everything works like a charm :) thank you

http://www.ortopediko.pl
http://www.pszczelafarma.pl


User avatar
New member

Posts

Joined
Sun Dec 07, 2014 2:26 am
Location - Warsaw, Poland
Who is online

Users browsing this forum: Amazon [Bot] and 31 guests