Re: Use custom image for specific buttons?
Learner, look again at the code I posted. You appear to be missing the productid like I said. When I look at the source of the page, I see:
<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="skin/artistictunes_business/images/custom/ask02.jpg"></a>
Change this to:
<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="skin/artistictunes_business/images/custom/ask02.jpg"></a>
Remove the`` and add the{} around $product.productid
What is happening, is the popup cannot figure out which product this is about. If you removed $product.productid and put the right productid for that product directly it will work as well.
Like my original code:
<a name="mypopuplink" id="mypopuplink" href="javascript:void(0);" onclick="javascript: return !popupOpen(xcart_web_dir + '/popup_ask.php?productid=2'); return false;"><img src="{ImagesDir}/mypopupimage.jpg" /></a>
This will work only if the productid is 2. If you change that number to your productid, it should work. I am simply telling you this so you will understand, obviously you want this to work on every product page, and you need to use the {$product.productid} to make that happen. But try it with the actual number put in if you need to test.
Your site looks nice BTW.
__________________
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.
|