malloco Posted December 11, 2015 Share Posted December 11, 2015 Hello everybody: I use the graphileon template for Computer View, and as this theme does not include a mobile version that fits me, I have copied the default theme/mobile file in my graphileon theme/mobile file. What I am doing is to change this template in order to have a clear and simple mobile template. Everything goes well, but I am having a problem. I would like to add the button "Add to cart" in Category-Product-list.tpl with this code (I am using Prestashop 1.6.1.3) <p></p> <div id="displayMobileAddToCartTop"> {hook h="displayMobileAddToCartTop"} </div> <div id="add_to_cart" class="btn-row"> {assign var='cart_btn_class' value='btn-cart'} {assign var='cart_btn_icon' value=''} {assign var='cart_btn_theme' value='e'} {if (!$allow_oosp && $product->quantity <= 0) OR !$product->available_for_order OR (isset($restricted_country_mode) AND $restricted_country_mode) OR $PS_CATALOG_MODE} {assign var='cart_btn_class' value=$cart_btn_class|cat:' disabled'} {assign var='cart_btn_theme' value='c'} {else} {assign var='cart_btn_icon' value='data-icon="plus"'} {/if} <button type="submit" data-theme="{$cart_btn_theme}" name="Submit" class="{$cart_btn_class}" value="submit-value" id="Submit" {$cart_btn_icon} >{l s='Añadir al carrito'}</button> </div> <!-- .btn-row --> The button appears but it does not work. I do not know what I am doing wrong. Could anybody give some clues? Thank you so much in advance, 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