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'
Help is very greatly appreciated. If this subject is tackled elsewhere please post the link.
cheers.