neeno Posted December 5, 2011 Share Posted December 5, 2011 Hello everyone. I'm using prestashop 1.4.5.1 with "new prestashoo theme" and i'm encountering the following problem. I would like to keep all the buttons as they are, except on the product page i wish to use images instead of text generic buttons for "add to cart" and "add to wishlist" buttons. These would be simple image of a cart and simple logo image representing wishlist. Any good ideas on how to do this ? I imagine i would have to define new button style in global.css and then change template file ? Link to comment Share on other sites More sharing options...
CartExpert.net Posted December 6, 2011 Share Posted December 6, 2011 Hello! Yes, you need to change the template files and add new style definitions to global.css Link to comment Share on other sites More sharing options...
neeno Posted December 6, 2011 Author Share Posted December 6, 2011 Any aditional hint on the template files part ? Link to comment Share on other sites More sharing options...
Evona Posted December 6, 2011 Share Posted December 6, 2011 Download Firebug, add to Mozilla and you will see in witch line you must change Link to comment Share on other sites More sharing options...
CartExpert.net Posted December 6, 2011 Share Posted December 6, 2011 Firebug will not show you which template file you need to edit. If you want to change only the product page, you need to edit 'product.tpl'. Link to comment Share on other sites More sharing options...
neeno Posted December 6, 2011 Author Share Posted December 6, 2011 Thank you both for effort. I came that far even before i posted the question. Sofar i think solution lies somewhere in this part of code: <p{if (!$allow_oosp && $product->quantity <= 0) OR !$product->available_for_order OR (isset($restricted_country_mode) AND $restricted_country_mode) OR $PS_CATALOG_MODE} style="display: none;"{/if} id="add_to_cart" class="buttons_bottom_block"><span></span><input type="submit" name="Submit" value="{l s='Add to cart'}" class="exclusive" /></p> Now if i could somehow remove the text and plant in the image.... This is where i get stuck.... Link to comment Share on other sites More sharing options...
CartExpert.net Posted December 6, 2011 Share Posted December 6, 2011 In that code part you need to change the class names to something different. Then add the style rules for the new classes to global.css Link to comment Share on other sites More sharing options...
neeno Posted December 6, 2011 Author Share Posted December 6, 2011 Ok sofar i have this: 1. <p{if (!$allow_oosp && $product->quantity <= 0) OR !$product->available_for_order OR (isset($restricted_country_mode) AND $restricted_country_mode) OR $PS_CATALOG_MODE} style="display: none;"{/if} id="add_to_cart" class="buttons_bottom_block"><span></span><input type="submit" name="Submit" value="{l s='Add to cart'}" class="special" /></p> 2. a.special_mini, a.special_small, a.special, a.special_large, span.button_mini, span.button_small, span.button, span.button_large, span.special_mini, span.special_small, span.special, span.special_large, span.special_large_disabled{ display: inline-block; background-color: blue; } / I made change to blue for now just to notice the change.... But still no result. I noticed there is few more definitions of "exclusive" in product.tpl maybe i should change anything else ? Link to comment Share on other sites More sharing options...
CartExpert.net Posted December 6, 2011 Share Posted December 6, 2011 Also do not forget to recompile the template. If you would post here your site's link it would be easier to help. 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