View Single Post
  #8  
Old 03-03-2012, 06:21 AM
  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?

Hi Learner, in response to your Pm:

You can see the code working on my test site: http://trainingpen.com/product.php?productid=17513&cat=0&page=&featured=Y

Click the Xcart logo in the description.

Here is the complete code from the template:
<a name="mypopuplink" id="mypopuplink" href="javascript:void(0);" onclick="javascript: return !popupOpen(xcart_web_dir + '/popup_ask.php?productid=17513'); return false;">
<img src="{ImagesDir}/admin_xlogo.gif" />
</a>

Okay I think I see why this isn't working for you. It all has to do with the right productid not being assigned. See how I included the productid hard coded? Try:
<a name="mypopuplink" id="mypopuplink" href="javascript:void(0);" onclick="javascript: return !popupOpen(xcart_web_dir + '/popup_ask.php?productid={$product.productid}'); return false;">
<img src="{$ImagesDir}/admin_xlogo.gif" />
</a>

That should do it. Sorry this was so difficult.
__________________
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