Home › Forums › WoodMart support forum › Add to Cart function not working properly
Add to Cart function not working properly
- This topic has 9 replies, 2 voices, and was last updated 1 year, 5 months ago by Elise Noromit.
-
AuthorPosts
-
December 14, 2020 at 4:55 am #250668
vikas_vvParticipantHello,
I have been facing some issues with my website especially with Add to Cart function. On the products page the Add to Cart icon does not work and instead takes the user to The product details page.
If you check the Error Console on Products page like this one:
https://windsorindustries.co.nz/products/
You will see this error there in console:
Uncaught TypeError: e.indexOf is not a function
at S.fn.init.S.fn.load (jquery.min.js?ver=3.5.1:2)
at a9e7b7e7fce2312dc1d6ccbacb485773.js:248
at a9e7b7e7fce2312dc1d6ccbacb485773.js:248
at a9e7b7e7fce2312dc1d6ccbacb485773.js:248
at a9e7b7e7fce2312dc1d6ccbacb485773.js:248https://windsorindustries.co.nz/wp-includes/js/jquery/jquery.min.js?ver=3.5.1
Please refer to console_error.png attached.
On the product details page even if you select the size for the product it does not get added the first time but throws a warning if we try purchasing this product:
https://windsorindustries.co.nz/product/solid-nz-heart-rimu-couch/
Please choose product options by visiting Buckingham Solid NZ Heart Rimu Couch.
Please refer to throws_warning.png attached.
After that if you select the size again and use Add to Cart button the product gets added and the error is gone from the Error Console as well.
You can see how irritating that can be, so can you please look into it and fix it as soon as possible.
Also, can you please keep me in loop about any changes that you may have to do so that I am aware of the changes in case that results in any other problem.
Thanks
Attachments:
You must be logged in to view attached files.December 14, 2020 at 4:57 am #250670
vikas_vvParticipantThe second screen-shot was not uploaded earlier so uploading now.
Attachments:
You must be logged in to view attached files.December 14, 2020 at 8:53 am #250765
Elise NoromitMemberHello,
Thank you very much for choosing our theme and for contacting us.
As for the errors:
Please make the full backup of your site as well as the Theme settings export and check the issue on the Storefront theme to detect if our theme causes the problem. Storefront is a free theme developed by Woocommerce.If you see the same on the Storefront, deactivate all the plugins not related to the theme and switch the parent theme, check the issue, If the problem has gone, activate the plugins one by one, checking the issue to detect which one causes the problem.
As for the option to add to cart from the grid:
You need to set the prices for each product. If you want to product to have the option to select the size you need to configure the item as a variable product. https://xtemos.com/docs/woodmart/variable-products-swatches/Best Regards
December 14, 2020 at 10:01 am #250783
vikas_vvParticipantThank you for the response.
For a second please forget that Error Console.
I am just curious to know that why did the Cart Button on products page does not Add product to Cart anymore and why instead it takes the user to the Product Details page.
https://windsorindustries.co.nz/products/
As far as I know it should add a product to Cart automatically without going to Product Details page. Can you please look into that part as it seems you kind of ignored that.
I will look into the explanation for the second one but as far as I know I have configured all the products the way they should be.
That is why requested you to have a look.
I even added default values to the options but still I was having the same error.
December 14, 2020 at 5:51 pm #250922
Elise NoromitMemberHello,
Please Enable AJAX add to cart buttons on archives in Woocommerce > Settings > Products.
Also, enable AJAX shop in the Theme Settigns > Shop
Best Regards
December 14, 2020 at 6:26 pm #250936
vikas_vvParticipantThanks for your response but I have done that already as I am aware of the settings needed. That is why I asked you to look into it as it was not working as it is supposed to be.
I am attaching the screen-shots for your reference though so that you can check that they are enabled so settings are not the problem here.
About your response to the Grid issue:
“As for the option to add to cart from the grid:
You need to set the prices for each product. If you want to product to have the option to select the size you need to configure the item as a variable product. https://xtemos.com/docs/woodmart/variable-products-swatches/”I don’t want to use the Swatch as I want to show the options as drop-down but if you please read my messages carefully you will see that everything works fine but when you select the variation second time. The first time it gives that error.
Hope that clarifies the situation a bit. I will really appreciate if you can find the cause of this and make the theme work as it is supposed to be.
Thanks
Attachments:
You must be logged in to view attached files.December 14, 2020 at 6:47 pm #250941
vikas_vvParticipantCouple of more things that may be helpful here:
1) I started facing this issue when I updated to WordPress 5.6
2) I am not able to update the theme from the dashboard to the latest version
So please can you help me to fix these issues as soon as possible.
Thanks
Attachments:
You must be logged in to view attached files.December 15, 2020 at 10:03 am #251087
Elise NoromitMemberHello,
Try to do the following to update the theme:
1. Go to Dashboard -> WoodMart -> Theme License and deactivate the theme.
2. Go to Dashboard -> Updates and click on Check Again.
3. Activate the theme with your purchase code again.
4. Try to update the theme via Appearance -> Themes or via Dashboard -> Updates.
If it does not help, make the full backup of your site and update via FTP https://xtemos.com/docs/woodmart/update-theme-2/
If you need help, provide site admin access as well as FTP access to the private area.
Best Regards
June 12, 2023 at 10:36 am #474252
vikas_vvParticipantCan you please close this ticket?
June 13, 2023 at 1:57 am #474442
Elise NoromitMemberHello,
Sure, I close it.
If you have any questions please feel free to contact us.
Best Regards
-
AuthorPosts
Tagged: cart issue
The topic ‘Add to Cart function not working properly’ is closed to new replies.
- You must be logged in to create new topics. Login / Register