Post by Venkko » Thu Jan 05, 2017 1:47 am

Hi!

Hopefully someone could help me...

I have OC 2.0.3.1 with multistore system. Today one of my customer informed me that my store "add to cart" -button is not working but she would really like to order my products. Thank god there are these kind of customers...

I just can't find reason why those add to cart -buttons is not working on my main store.
On all other stores add to cart button works just fine.

I have tested this with desktop and mobile site, I have cleared cache, I have emptied Vqmod cache and system/modification folders. Error log don't show any errors. I have switch page to
maintenance mode and back to online. I have tested with other templates.

So it is not browser issue, it is not theme related problem, it wasn't cache issue.
So basicly I have done all I can think of. I am not php or html expert so I am more than little bit confused about this.

Site url is http://www.pikkukoala.fi if someone would like to test this and find a reason for this...

And before anyone rush to tell me that use search on the forums I have googled this for some time but I didn't find solution for this.

code on the button looks like this.
<button id="button-cart" class="btn btn-primary btn-lg btn-block" type="button"
onclick="ga('send', 'event', 'Product', 'Add to Compare', 'Albumi 1-vuoteni');"
data-loading-text="Ladataan...">Lisää ostoskoriin</button>
EDIT: My non www - url redirect to www -url so that should not be the problem.

EDIT2: I notice that add to wishlist and add to compare buttons won't work.
Last edited by Venkko on Thu Jan 05, 2017 5:21 pm, edited 1 time in total.

http://www.pikkukoala.fi


Active Member

Posts

Joined
Mon Mar 05, 2012 8:32 pm

Post by labeshops » Thu Jan 05, 2017 9:29 am

My best guess would be it is a theme issue since all stores in multistore setup use the same controller and model files - the only things that vary from one store to another would be theme.

Are you using the same theme on all stores? If you switch the main store to use the default theme, do they work?

Running Opencart v2.2 with multi-stores from http://www.labeshops.com which has links to all my stores.

Image


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA

Post by Venkko » Thu Jan 05, 2017 11:59 am

Hi labeshops!

All stores use different theme but I did allready test it with default theme and one other theme but that did not help.

http://www.pikkukoala.fi


Active Member

Posts

Joined
Mon Mar 05, 2012 8:32 pm

Post by opencartmart » Thu Jan 05, 2017 1:41 pm

You have 301 redirection set on http://www.pikkukoala.fi/index.php?rout ... t/cart/add that is the issue.

Attachments

Screen Shot 2017-01-05 at 11.41.27 AM.png

Screen Shot 2017-01-05 at 11.41.27 AM.png (26.72 KiB) Viewed 2177 times


XForm - Opencart Form Builder
Xshippingpro - An advanced Shipping Module
Need Professional support? Skype: opencartmart


Active Member

Posts

Joined
Wed Oct 02, 2013 3:59 am

Post by Venkko » Thu Jan 05, 2017 5:03 pm

Thanks for the tip opencartmart

I really don't know why there would be such a redirection, on my seo extenion there are no such redirection.

How did you find that? I mean what program are you using?
I would like to see does my other stores do the same thing? (like www.woombie.fi) where cart is working just fine.

http://www.pikkukoala.fi


Active Member

Posts

Joined
Mon Mar 05, 2012 8:32 pm

Post by Venkko » Thu Jan 05, 2017 5:20 pm

Thank you opencartmart!!!
You are a live saver!

Indeed it was a redirect issue, I did found out that I had for some very odd reason redirection for www.pikkukoala.fi/index.php to one of the products.
Even I understand that that kind of redirection is "illegal".

Don't really know why it was there but I am so happy at the moment as my site is working again...

http://www.pikkukoala.fi


Active Member

Posts

Joined
Mon Mar 05, 2012 8:32 pm

Post by opencartmart » Thu Jan 05, 2017 5:31 pm

Good to hear! thanks

XForm - Opencart Form Builder
Xshippingpro - An advanced Shipping Module
Need Professional support? Skype: opencartmart


Active Member

Posts

Joined
Wed Oct 02, 2013 3:59 am

Post by willos2 » Fri May 24, 2019 4:11 pm

Hi! I've a problem with add to cart button. When I click on it, it doesn't forwarding to product page (products with options), my site is: http://seductive.sk/ can you help me please? :-\

Newbie

Posts

Joined
Wed Feb 08, 2017 11:05 pm
Who is online

Users browsing this forum: No registered users and 24 guests