lateral Posted August 8, 2021 Share Posted August 8, 2021 Hi Everyone. I am using version 1.6.1.23. I have recently started using the Minimum Quantity option for a few of my Products. Please note that I have translated the "Add to Cart" text to display "Add to My List". I just noticed that Products with a Minimum Quantity greater than 1, do not display the "Add to My List" button on the Product List page but does display it on the actual Product page. Everything else is working well and has been for sometime. The Mounting Tabs have a Minimum Quantity of "1" and the Exhaust Nut have a Minimum Quantity of "8" Any help will be greatly appreciated. Link to comment Share on other sites More sharing options...
ComGrafPL Posted August 8, 2021 Share Posted August 8, 2021 Could you send a link to your website? Link to comment Share on other sites More sharing options...
lateral Posted August 8, 2021 Author Share Posted August 8, 2021 Hi, Here's the link: http://rodpenroseracing.com.au/ Link to comment Share on other sites More sharing options...
SmartDataSoft Posted August 8, 2021 Share Posted August 8, 2021 Hello, When we set both area 1 in that case add to cart button show https://prnt.sc/1l7uwq3 If possible can you give your admin option , so that we can reproduce it Thank you Link to comment Share on other sites More sharing options...
lateral Posted August 8, 2021 Author Share Posted August 8, 2021 (edited) Hi The issue looks connected to setting the Minimum Quantity to anything greater than “1”. Have you tried setting this with a Product in one of your test Backends to see if you can reproduce it? I appreciate your help I have also checked the product-list.tpl and I think this block of code maybe where this issue is? <div class="button-container"> {if ($product.id_product_attribute == 0 || (isset($add_prod_display) && ($add_prod_display == 1))) && $product.available_for_order && !isset($restricted_country_mode) && $product.minimal_quantity <= 1 && $product.customizable != 2 && !$PS_CATALOG_MODE} {if ($product.allow_oosp || $product.quantity > 0)} {if isset($static_token)} <a class="button ajax_add_to_cart_button btn btn-default" href="{$link->getPageLink('cart',false, NULL, "add=1&id_product={$product.id_product|intval}&token={$static_token}", false)|escape:'html':'UTF-8'}" rel="nofollow" title="{l s='Add to cart'}" data-id-product="{$product.id_product|intval}"> <span>{l s='Add to cart'}</span> </a> {else} <a class="button ajax_add_to_cart_button btn btn-default" href="{$link->getPageLink('cart',false, NULL, 'add=1&id_product={$product.id_product|intval}', false)|escape:'html':'UTF-8'}" rel="nofollow" title="{l s='Add to cart'}" data-id-product="{$product.id_product|intval}"> <span>{l s='Add to cart'}</span> </a> {/if} {else} <span class="button ajax_add_to_cart_button btn btn-default disabled"> <span>{l s='Add to cart'}</span> </span> {/if} {/if} </br> <a itemprop="url" class="button lnk_view btn btn-default" href="{$product.link|escape:'html':'UTF-8'}" title="{l s='View'}"> <span>{l s='More'}</span> </a> </div> Cheers Greg Edited August 8, 2021 by lateral (see edit history) Link to comment Share on other sites More sharing options...
ComGrafPL Posted August 9, 2021 Share Posted August 9, 2021 Products with issues has attributes? Did you check on preference - > products settings? Link to comment Share on other sites More sharing options...
lateral Posted August 9, 2021 Author Share Posted August 9, 2021 The products do not have any attributes. I'm pretty sure the issue relates to setting the Minimum Quantity to greater than Zero. I’ve tried turning options on and off but no difference. Have you tested this on your own database? Link to comment Share on other sites More sharing options...
lateral Posted August 11, 2021 Author Share Posted August 11, 2021 Any idea guys? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now