Post by Kemo2018 » Sat Jun 08, 2019 7:44 pm

Hello,

Add to cart button doesn't work after I've installed a new theme on Open cart 3.0.2. I don't know exactly if it caused from .htaccess, .js or something else.

Please help me to solve this problem

my site link: https://rebrand.ly/kcueh5

Thank you

Newbie

Posts

Joined
Thu Mar 29, 2018 6:30 am

Post by thekrotek » Sat Jun 08, 2019 8:09 pm

I don't see any JS errors and server response is good, product appears to be added to cart properly. However, the cart itself is empty somehow. Hard to say what exactly is the reason of it without looking into the issue right on your server.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by Kemo2018 » Sat Jun 08, 2019 8:18 pm

thekrotek wrote:
Sat Jun 08, 2019 8:09 pm
I don't see any JS errors and server response is good, product appears to be added to cart properly. However, the cart itself is empty somehow. Hard to say what exactly is the reason of it without looking into the issue right on your server.
Add to cart button works on other themes. so, is there a problem with " Https, http" ?

Newbie

Posts

Joined
Thu Mar 29, 2018 6:30 am

Post by thekrotek » Sat Jun 08, 2019 9:30 pm

Problem might be with theme itself.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by Kemo2018 » Sat Jun 08, 2019 9:56 pm

thekrotek wrote:
Sat Jun 08, 2019 9:30 pm
Problem might be with theme itself.
is there a modification code to remove the popup box when clicking on add to cart?

Newbie

Posts

Joined
Thu Mar 29, 2018 6:30 am

Post by thekrotek » Sat Jun 08, 2019 11:06 pm

Kemo2018 wrote:
Sat Jun 08, 2019 9:56 pm
is there a modification code to remove the popup box when clicking on add to cart?
No. You need to create one for your theme.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by Kemo2018 » Sun Jun 09, 2019 3:22 am

thekrotek wrote:
Sat Jun 08, 2019 11:06 pm
Kemo2018 wrote:
Sat Jun 08, 2019 9:56 pm
is there a modification code to remove the popup box when clicking on add to cart?
No. You need to create one for your theme.
is there an extension to rebuild the cart or change it?

Newbie

Posts

Joined
Thu Mar 29, 2018 6:30 am

Post by thekrotek » Sun Jun 09, 2019 3:46 am

Kemo2018 wrote:
Sun Jun 09, 2019 3:22 am
is there an extension to rebuild the cart or change it?
What do you mean?

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by Kemo2018 » Sun Jun 09, 2019 4:26 am

thekrotek wrote:
Sun Jun 09, 2019 3:46 am
Kemo2018 wrote:
Sun Jun 09, 2019 3:22 am
is there an extension to rebuild the cart or change it?
What do you mean?
Hello,

I've found that Add to cart button works in default theme because it contains "seller_id" in product.twig

Code: Select all

function addToCarts(product_id, quantity,seller_id) {
Meantime I'm using Opencart 3.0.2 Multivendor-master. so, I think that I've to edit the new product.twig to contain seller_id

Am I right?

Product.twig Link : https://gofile.io/?c=g5ZRd6

Newbie

Posts

Joined
Thu Mar 29, 2018 6:30 am

Post by thekrotek » Sun Jun 09, 2019 4:57 am

There's no addToCarts (plural) function in OpenCart, there's only might be addToCart (single) function. But I doubt there's is the latter.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by Kemo2018 » Sun Jun 09, 2019 5:15 am

thekrotek wrote:
Sun Jun 09, 2019 4:57 am
There's no addToCarts (plural) function in OpenCart, there's only might be addToCart (single) function. But I doubt there's is the latter.
I think it exists just in "Opencart Multivendor codlance" that I use. so I Uploaded the default product.twig that works fine with the new file needs repair here : https://gofile.io/?c=g5ZRd6

I want a help to repair it please

Newbie

Posts

Joined
Thu Mar 29, 2018 6:30 am

Post by thekrotek » Sun Jun 09, 2019 5:41 am

Kemo2018 wrote:
Sun Jun 09, 2019 5:15 am
I want a help to repair it please
Sure, I can look into your issue, but this will be a paid service. Drop me an email or text in Skype, and we'll discuss the details.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by paulfeakins » Mon Jun 10, 2019 7:41 pm

Kemo2018 wrote:
Sat Jun 08, 2019 7:44 pm
Add to cart button doesn't work after I've installed a new theme on Open cart 3.0.2
What theme? Can you ask the theme dev?

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom
Who is online

Users browsing this forum: Google [Bot] and 412 guests