| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Adding a button to product description. | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
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' Help is very greatly appreciated. If this subject is tackled elsewhere please post the link. cheers.
__________________
4.3.0 X-cart Gold X-mall |
|||||||
#2
|
|||||||
|
|||||||
Re: Adding a button to product description.
oops posted in wrong forum... please bump me to the right one
__________________
4.3.0 X-cart Gold X-mall |
|||||||
#3
|
|||||||||
|
|||||||||
Re: Adding a button to product description.
Moving to "Storefront Design & Template Editing in v 4.2.x and 4.3.x" one.
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful Click here to learn how to apply patches X-Cart Extensions |
|||||||||
|
|||
X-Cart forums © 2001-2020
|