AS111 Posted September 10, 2015 Share Posted September 10, 2015 (edited) Hi I ve tried searching for this but some of the solutions i ve found are only for default theme, i m working about Leo Theme Happy Cook and trying to add quantity fields about the product list, when i open this theme product-list.tpl file it guide me to another file where i found this code:{if $page_name !='product'}<div class="cart">{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 (!isset($product.customization_required) || !$product.customization_required) && ($product.allow_oosp || $product.quantity > 0)}{if isset($static_token)}<a class="button ajax_add_to_cart_button btn" 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}"><i class="fa fa-shopping-cart"></i><span>{l s='Add to cart'}</span></a>{else}<a class="button ajax_add_to_cart_button btn" 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}"><i class="fa fa-shopping-cart"></i><span>{l s='Add to cart'}</span></a>{/if}{else}<div class="btn btn-default disabled" title="{l s='Out of stock'}"><i class="fa fa-shopping-cart"></i><span>{l s='Out of stock'}</span></div>{/if}{/if}</div>{/if}</div></div> <!-- end product meta --></div></div><!-- .product-container> --> At this point i am lost, what would modify for add a quantity field? Thanks in advance Regards Edited September 10, 2015 by AS111 (see edit history) 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