Skip to main content

Customize add to cart bottom

More
12 years 4 months ago #157810 by kaya
Hi dear
I want use a image Instead of add to cart text. this code show add to cart text:
Code:
echo $this->cart->displayButton(JText::_('ADD_TO_CART'),'add',$this->params,$url,$this->ajax,'',$max,$min);
I want use my custom image in my template how can change add to cart text to image?
thank you

Please Log in or Create an account to join the conversation.

More
12 years 4 months ago #157812 by lousyfool
An easy way is to strip all present CSS from the button and instead utilise the "background-image" property and related ones.

Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )
The following user(s) said Thank You: kaya

Please Log in or Create an account to join the conversation.

More
12 years 4 months ago #157844 by kaya
Replied by kaya on topic Customize add to cart bottom
I want add in php file and don't use css

Please Log in or Create an account to join the conversation.

More
12 years 4 months ago #157849 by lousyfool
Wow, you'll have several views to edit then with all the cons involved, unless you want it in only one or two...

Well, you should then be able to replace all button-related stuff with a source link to your image. Might still need some CSS then, but you'll see.

Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )

Please Log in or Create an account to join the conversation.

Time to create page: 0.180 seconds
Powered by Kunena Forum