Customize add to cart bottom

  • Posts: 120
  • Thank you received: 2
11 years 3 months ago #157810

Hi dear
I want use a image Instead of add to cart text. this code show add to cart text:

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.

  • Posts: 2143
  • Thank you received: 747
11 years 3 months ago #157812

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.

  • Posts: 120
  • Thank you received: 2
11 years 3 months ago #157844

I want add in php file and don't use css

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

  • Posts: 2143
  • Thank you received: 747
11 years 3 months ago #157849

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.068 seconds
Powered by Kunena Forum