View Single Post
  #2  
Old 09-08-2011, 06:48 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Use custom image for specific buttons?

I am not going to test this one, but it looks like any image with a link that references:
"javascript: return !popupOpen(xcart_web_dir + '/popup_ask.php?productid=`$product.productid`')"
is going to work.
So a standard setup for a linked image should be fine.
ie:
<a name="mypopuplink" id="mypopuplink" href="javascript: return !popupOpen(xcart_web_dir + '/popup_ask.php?productid=`$product.productid`')"><i mg src="{ImagesDir}/mypopupimage.jpg" /></a>

Then upload your image to skins/common_files/images or skins/images on older x-carts.

The name and id attributes I defined may not be necessary, but it is a good practice to always assign something.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote