Search the Community
Showing results for tags 'product list view'.
-
Hi everyone, I need some help again, i tried getting answer in another topic, but I see I am forced to make a new one. SO, I am I'd like to KEEP the add to cart button in product LIST view, but remove the ADD TO CART text and leave only the CART itself as a funtional button. I need this to have more space in the list and for a more clear design. I tried removing the label form product_list.tpl, but its not working. What exactly do I have to modify in the tpl to remove the text? But i also want the leave the button intact on the produt.tpl itself. I have the "force compilation" activated in backpanel. i think the thing is set somewhere here: {if ($product.allow_oosp || $product.quantity > 0)} {if isset($static_token)} <a class="button ajax_add_to_cart_button exclusive" rel="ajax_id_product_{$product.id_product|intval}" href="{$link->getPageLink('cart',false, NULL, "add=1&id_product={$product.id_product|intval}&token={$static_token}", false)|escape:'html'}" title="{l s='NONE'}"><span style="width: 48px; height: 48px;"></span>{l s='Add to cart'}</a> {else} <a class="button ajax_add_to_cart_button exclusive" rel="ajax_id_product_{$product.id_product|intval}" href="{$link->getPageLink('cart',false, NULL, "add=1&id_product={$product.id_product|intval}", false)|escape:'html'}" title="{l s='Add to cart'}"><span style="width: 48px; height: 48px;"></span>{l s='Add to cart'}</a> {/if} {else} <span class="exclusive"><span style="top: -4px; left: -37px; width: 48px; height: 48px;"></span>{l s='Add to cart'}</span><br /> {/if} I wish I'd knew some smarty.... I have read this http://mypresta.eu/en/art/developer/how-to-change-add-to-cart-button-size-on-product-page.html from vekia, but that refers to the products.tpl, so i could change things in th product view itself But There is no INPUT value in the products-list.tpl file. Please help me understand: why product-list.tpl and product.tpl doesnt look and work the same? Thanks in advance Or is it related to some other file? global.css? After my experiments I can say that the above code does nothing to the text, only to the image. I'm too old for this....
- 5 replies
-
- add to cart button
- product list view
-
(and 1 more)
Tagged with:
-
Default view of product list in gridview
Varsha28 posted a topic in Configuring and using PrestaShop
Hello, Currently product list view of my store is in list format. But i want the default view as gridview. How can i do this? Please help me.