Home › Forums › WoodMart support forum › Quick add to cart and Quick view step does not work properly out of shop page
Quick add to cart and Quick view step does not work properly out of shop page
- This topic has 2 replies, 2 voices, and was last updated 2 hours, 30 minutes ago by kreopoliokipseli.
-
AuthorPosts
-
February 6, 2025 at 1:41 pm #635911
kreopoliokipseliParticipantHello,
Am using “Min Max Step Quantity Limits Manager for WooCommerce” plugin to set quantity step in my products.
This functionality works fine in my shop page in simple and variable products, as well as in quick add to cart and quick view.The functionality doesn’t work properly in my home page, inside the element “Ajax product container with tabs”. The product seems to has the correct min and max values for each variation but the step does not. As a result, the quick add to cart and the quick veiew does not update the product quantity properly. The products have the same issue in the related products section.
I think that the woodmartQuantity script is loaded after the script that upadates the min-max-step in the front page, but am not sure.
Could you please help me solve that issue.
February 6, 2025 at 3:12 pm #635942
Aizaz Imtiaz AwanKeymasterHello,
Could you please check how it works with some default WordPress themes like TwentyTwenty Five or WooCommerce Storefront to understand if it is our theme issue or not?
Best Regards,
February 6, 2025 at 6:17 pm #636040
kreopoliokipseliParticipantDear Aizaz Imtiaz Awan,
I changed the theme to a default one, specifically Twenty Twenty-Five, to check the functionalities I mentioned earlier. However, the “Quick Add to Cart” and “Quick Preview” features are provided by your premium theme.
The “Quick Add to Cart” and “Quick Preview” work flawlessly on archive pages like the shop page. You can easily verify this by testing the two products I have on the site. One is a variable product with different variations, and the other is a simple product with a decimal step.
The issue occurs when these products are loaded outside of archive pages, such as through the “Ajax Products Tabs” element offered by your theme or in the “Related Products” section on a single product page.
When the variable product, Test Variable Product, is loaded there, the min and max values seem to update correctly whenever an attribute value is changed(checked with inspect element on quantity field). However, the step value appears to be overridden to 1.Note: If I add the product to the cart, the step value works correctly within the cart widget.
Note 2: I see that the scripts responsible for updating the min, max, and step values are defined by
WooCommerce’s woocommerceQuantity.min.js script and the alg-wc-pq-variable.js script. I’m not sure if the order in which these scripts are loaded affects the behavior.Could you please let me know if you have any idea why this is happening and how to fix it?
Would you need any additional information or any specific actions from my side to assist in resolving this issue?Thank you.
-
AuthorPosts
- You must be logged in to create new topics. Login / Register