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 9 replies, 2 voices, and was last updated 3 weeks, 1 day ago by
Aizaz Imtiaz Awan.
-
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.
February 7, 2025 at 8:33 am #636150
Aizaz Imtiaz AwanKeymasterHello,
Sorry to hear about the inconvenience. Kindly, please share your Site WP-ADMIN Login details in the Private Content field so that we can check this concern on your Site and help you out accordingly.
Best Regards,
February 7, 2025 at 10:18 am #636166
kreopoliokipseliParticipantThank you for your fast response,
You will find the credentials in the private section.
I remain available for any clarification
February 7, 2025 at 2:25 pm #636311
Aizaz Imtiaz AwanKeymasterHello,
Navigate to WP Factory > Product Quantity and in the General tab and Set initial quantity on archives and check the issue: https://ibb.co/Y764zghB
Best Regards,
February 7, 2025 at 5:31 pm #636389
kreopoliokipseliParticipantHello,
The option you suggest does not solve the problem. If I change the value to the minimum for variable products on archive pages (I believe neither my front page nor my single product page are archive pages), the step value remains 1 for all variations.
Additionally, this does not resolve the issue in the “Frequently Bought Together” and “Related Products” sections.
Moreover, if I enable this option, the cart widget does not work as expected. Every time I increase or decrease the quantity of a product inside the widget, the quantity is forcibly reset to the product’s minimum allowed value.
https://prnt.sc/2Hsdq33TlviHTo stress out the problem, I have updated the product descriptions so that the expected min/max/step values are visible when selecting different product attributes. Now, if you change the quantity you will easilly see the issue.
https://prnt.sc/8e9w4zsnnvcNHave you any other suggestion?
Thanks in advanceFebruary 10, 2025 at 11:11 am #636774
Aizaz Imtiaz AwanKeymasterHello,
Unfortunately, your provided WP Admin Login details are no more working, Could you please provide the working WP Admin Credentials again so that we will further look into it for you on your site and help you out?
Best Regards,
February 16, 2025 at 8:44 am #638411
kreopoliokipseliParticipantOf course,
The credentials you requested can be found in the “extra information” section.
The current status of the issue is as follows:
info 1: I have uploaded my full product catalog to the staging site (staging site url in extra iformation area).
info 2: I have noticed that the functionality of my products is not as expected, particularly regarding variable products.Problem description:
–> Although I believe I have set up everything correctly in your theme, the “Min Max Step Quantity Limit Manager for WooCommerce” plugin, and WooCommerce itself, I am experiencing issues when selecting a product variation in quick buy mode or preview mode. The minimum quantities, and sometimes the step values, do not update correctly. This issue appears primarily on variable products and mainly outside the shop page. I should mention that the page where this occurs is not an archive page, which I suspect might play a role.–> On the shop page, the functionality is mostly as expected, with a few exceptions where minimum quantities for variable products do not always refresh correctly.
Please let me know if I can provide any additional information to help resolve the issue as soon as possible.
Note: I have also reached out to the support team of the “Min Max Step Quantity Limit Manager for WooCommerce” plugin to investigate any potential incompatibility on their end.
I am available for any further information you may need.
February 17, 2025 at 1:12 pm #638649
Aizaz Imtiaz AwanKeymasterHello,
After checking your site, we can confirm that this quantity issue is not related to our theme. We tested it on a default WordPress theme and observed the same problem.
By default, the quantity added to the cart will be the one specified in the data-quantity attribute. For example, this product has an incorrect quantity value in its attribute: https://monosnap.com/file/ZbdMnzy8pkTWVU3AiJPin8ehR6VCaR. When added to the cart, it is added as 1, whereas on the single product page, it should be added as 1.5: https://monosnap.com/file/TmEdH4zKkECh6Y3b6X3JJdmBYMZ289.
In this case, the issue is caused by the plugin, not the theme. We recommend checking the plugin settings or reaching out to the plugin’s support team for further assistance.
Best Regards,
-
AuthorPosts
- You must be logged in to create new topics. Login / Register