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 contact button to the product page (https://forum.x-cart.com/showthread.php?t=43707)

tbm 11-16-2008 12:07 PM

adding a contact button to the product page
 
Hi all,

I'd like to add a 'contact' button (similar in size and style to the purchase button) to my product pages. this will just be a mailto link. can't figure out which template i need to edit. can someone advise?

thanks,
tbm.

balinor 11-16-2008 02:29 PM

Re: adding a contact button to the product page
 
customer/main/product.tpl. FYI:

http://forum.x-cart.com/showthread.php?t=21529

tbm 11-19-2008 09:40 AM

Re: adding a contact button to the product page
 
yep, that template seems to be the one i want. can't quite figure out how to do what i need to do. I'd like a button directly under 'add to cart' button. my plan was to copy the 'add to cart' button and then copy and tweak the functionality linked to it, but i can't even make the add to cart button repeat.

from the product.tpl:

{/if}
{else}
{include file="submit_wo_js.tpl" value=$lng.lbl_add_to_cart}
{/if}
{/if}

my ideas was to do this:

{/if}
{else}
{include file="submit_wo_js.tpl" value=$lng.lbl_add_to_cart}<br/>
{include file="submit_wo_js.tpl" value=$lng.lbl_add_to_cart}
{/if}
{/if}

then access and edit the functionality, but the repeated add to cart button doesn't appear. am i barking up the wrong tree completely?

thanks.

balinor 11-19-2008 09:54 AM

Re: adding a contact button to the product page
 
That's not the add to cart button code, this is:

{include file="buttons/add_to_cart.tpl" style="button" href="javascript: if(FormValidation()) document.orderform.submit();"}


All times are GMT -8. The time now is 03:28 PM.

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