Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

adding a contact button to the product page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-16-2008, 12:07 PM
 
tbm tbm is offline
 

Advanced Member
  
Join Date: Nov 2008
Posts: 39
 

Default 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.
__________________
Linux
X-Cart 4.1.11
Reply With Quote
  #2  
Old 11-16-2008, 02:29 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: adding a contact button to the product page

customer/main/product.tpl. FYI:

http://forum.x-cart.com/showthread.php?t=21529
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 11-19-2008, 09:40 AM
 
tbm tbm is offline
 

Advanced Member
  
Join Date: Nov 2008
Posts: 39
 

Default 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.
__________________
Linux
X-Cart 4.1.11
Reply With Quote
  #4  
Old 11-19-2008, 09:54 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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();"}
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

   

 
X-Cart forums © 2001-2020