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

On select products make the buynow button an external link?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-19-2009, 11:45 AM
  shopccp's Avatar 
shopccp shopccp is offline
 

Advanced Member
  
Join Date: Oct 2006
Posts: 35
 

Default On select products make the buynow button an external link?

Only on select products I choose I would like to have an external link when the user clicks on the buy now button. where exactly is the code to implement this feature?

This is for xcart 4.2-gold.


Thanks all for any help you could give.
__________________
X-Cart Gold v4.4.4
Apache v2.2.20
PHP v5.3.8
MySQL v5.1.56-log
Linux kernel v2.6.18-238.19.1.el5xen
Reply With Quote
  #2  
Old 02-19-2009, 03:01 PM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: On select products make the buynow button an external link?

Requires a little bit of custom coding, I could do this for a small fee, PM if interested.
__________________
xcartmods.co.uk
Reply With Quote
  #3  
Old 10-26-2011, 09:27 PM
 
info@ausnetit.com.au info@ausnetit.com.au is offline
 

Advanced Member
  
Join Date: Aug 2010
Posts: 35
 

Default Re: On select products make the buynow button an external link?

HI All,

How do i add link to Contact Us page?

Thanks,
__________________
Chamath De Costa
Version X-Cart Gold.


Melbourne website design
SEO in melbourne
Reply With Quote
  #4  
Old 10-27-2011, 08:20 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: On select products make the buynow button an external link?

Quote:
Originally Posted by info@ausnetit.com.au
HI All,

How do i add link to Contact Us page?

Thanks,

Add your link to customer/help/contactus.tpl just before the </capture>
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #5  
Old 10-28-2011, 02:32 PM
 
info@ausnetit.com.au info@ausnetit.com.au is offline
 

Advanced Member
  
Join Date: Aug 2010
Posts: 35
 

Default Re: On select products make the buynow button an external link?

Quote:
Originally Posted by JWait
Add your link to customer/help/contactus.tpl just before the </capture>

Hi,

You mean adding links to contactus.tpl ? But how do we call that from Buy Button?
__________________
Chamath De Costa
Version X-Cart Gold.


Melbourne website design
SEO in melbourne
Reply With Quote
  #6  
Old 10-28-2011, 04:04 PM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: On select products make the buynow button an external link?

Quote:
Originally Posted by info@ausnetit.com.au
Hi,

You mean adding links to contactus.tpl ? But how do we call that from Buy Button?

Ok, now I'm confused. You asked "How do i add link to Contact Us page?" There is no "Buy Button" on that page.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #7  
Old 10-28-2011, 06:22 PM
  gb2world's Avatar 
gb2world gb2world is offline
 

X-Wizard
  
Join Date: May 2006
Location: Austin, TX
Posts: 1,970
 

Default Re: On select products make the buynow button an external link?

There are a few ways to approach this:

You can set the price to 0 for the products that you want to handle differently, use Webmastermode to find the templates that display the zero price messaging and input box, and use that if/than statement to display the links to the contact us page that you want instead.

Another way is to use an extra field, which you set for the products that you want to be handled differently. Then, use an if/than statement based on that extra field value to replace the buy now with the link to the contact us page that you want to use instead.

You can search the forums for hints on how to to change the zero price option or to use the extra fields to do something like this.


---
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold
(CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module)
Reply With Quote
  #8  
Old 10-29-2011, 12:07 AM
 
info@ausnetit.com.au info@ausnetit.com.au is offline
 

Advanced Member
  
Join Date: Aug 2010
Posts: 35
 

Default Re: On select products make the buynow button an external link?

Only on products got $0 I would like to have an external link when the user clicks on the buy now button. call the contact us page?
__________________
Chamath De Costa
Version X-Cart Gold.


Melbourne website design
SEO in melbourne
Reply With Quote
  #9  
Old 10-29-2011, 11:23 AM
  gb2world's Avatar 
gb2world gb2world is offline
 

X-Wizard
  
Join Date: May 2006
Location: Austin, TX
Posts: 1,970
 

Default Re: On select products make the buynow button an external link?

You can search the forums for more info:
http://forum.x-cart.com/showthread.php?t=60213
http://forum.x-cart.com/showthread.php?t=18727
http://forum.x-cart.com/showthread.php?t=46244

Also, you could probably use this mod from websitecm: http://www.websitecm.com/call-for-price-for-xcart.html

---
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold
(CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module)
Reply With Quote
  #10  
Old 10-29-2011, 05:43 PM
 
info@ausnetit.com.au info@ausnetit.com.au is offline
 

Advanced Member
  
Join Date: Aug 2010
Posts: 35
 

Default Re: On select products make the buynow button an external link?

HI

Thanks for your info i just look all the post and found they are also looking for the solution.

But Now i can add and set the Our price: Call

<input type="text" size="7" name="price" value="Call" readonly="readonly" />

Now i want to know the code to call the "Contact Us " Page by "Add To Cart" or some sort of button?

Thanks,
__________________
Chamath De Costa
Version X-Cart Gold.


Melbourne website design
SEO in melbourne
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 08:13 PM.

   

 
X-Cart forums © 2001-2020