X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Adding a button to product description. (https://forum.x-cart.com/showthread.php?t=58101)

gixermike 02-17-2011 03:53 AM

Adding a button to product description.
 
I'm trying to add a button to the product description so that clients can view/download a PDF application chart.

I only want it for certain products so I was thinking of adding this code to the product description box, which creates the HTML button:

<div class="mybutton">
<a href="imal.html">
<button onclick="window.location='imal.html'"
style="width:160;height:24">Button Name</button><br>
</a>
</div>

I have added an extra field to the product pages so that I can put in the reference
/xcart/files/pdf/my.pdf

Currently the button when clicked leads to the 404 page, so it works but doesn't point to the right place, what do i need to edit in the above code to get it working?

When clicked it also adds the product to the cart which is NOT what I want.

I have hit a brick wall because I am captain newbie of the good ship 'no idea what I'm doing' :lol:

Help is very greatly appreciated. If this subject is tackled elsewhere please post the link.

cheers.

gixermike 02-17-2011 03:54 AM

Re: Adding a button to product description.
 
oops posted in wrong forum... please bump me to the right one

qualiteam 02-17-2011 03:59 AM

Re: Adding a button to product description.
 
Moving to "Storefront Design & Template Editing in v 4.2.x and 4.3.x" one.


All times are GMT -8. The time now is 03:43 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.