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)
-   -   On select products make the buynow button an external link? (https://forum.x-cart.com/showthread.php?t=45694)

shopccp 02-19-2009 11:45 AM

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.

PhilJ 02-19-2009 03:01 PM

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.

info@ausnetit.com.au 10-26-2011 09:27 PM

Re: On select products make the buynow button an external link?
 
HI All,

How do i add link to Contact Us page?

Thanks,

JWait 10-27-2011 08:20 AM

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>

info@ausnetit.com.au 10-28-2011 02:32 PM

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?

JWait 10-28-2011 04:04 PM

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.

gb2world 10-28-2011 06:22 PM

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.


---

info@ausnetit.com.au 10-29-2011 12:07 AM

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?

gb2world 10-29-2011 11:23 AM

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

---

info@ausnetit.com.au 10-29-2011 05:43 PM

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,


All times are GMT -8. The time now is 04:34 AM.

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