OpenCart Add To Cart Issue on Home Page

Some times, this error gonna eat your brain for a long time. I recently got an error on my OpenCart website that, My Add to Cart function is not working on Home Pages that the website loads first time. Once I go inside to a product then I come back to home page, yeah, Add to Cart Function is working. First time, I thought it would be JS issue but no, I wasted much time on that assumption.

The real villain is your Domain Name.  In my case,  does not work with the Add to Cart Function on homage on Initial website loading. But it works with So I set my server redirection such as any kind of URL request should redirect to 


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.