Jump to content

How to Images for buttons


Recommended Posts

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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...