| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Link from product to another shopping cart | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Link from product to another shopping cart
Is it possible to add a product to the store, but not allow customers to add it to their shopping cart? I would like to list a product in a category, but I want to add a link to another site where people can actually buy the product since I won't be carrying it.
Thanks for your help! -Midori |
|||||||
#2
|
|||||||
|
|||||||
Yes, this is possible.
I have done this modification before by using one of the extra fields in the product table to hold a affiliate add to cart link url and then put a check into products.tpl and product.tpl to change the add to cart for a buy now button. The buy now button has a href of the extra field param url. I hope that isn't too much code speak for you. Give me a shout if you want the mod done - would take about an hour.
__________________
ex x-cart guru |
|||||||
#3
|
|||||||
|
|||||||
So, you code a check to look for a link entry in the extra field, and if there's something in that field, then print the Buy Now button instead of the Add to Cart button? I'm going to try to hack away at that and see if I can figure it out.
Thanks so much for your help! |
|||||||
#4
|
|||||||
|
|||||||
no probs.
I used: Code:
I used param00 but use whatever you feel fit. you will also need to either switch off extra fields and add the param00 update box to the product_modify template in main or amend modules/extra_fields/product.tpl to stop it displaying the url in the product details.
__________________
ex x-cart guru |
|||||||
#5
|
|||||||
|
|||||||
Thanks again for your help! The fix works great!
-Midori |
|||||||
#6
|
|||||||
|
|||||||
Could you please elaborate?
Hi,
This is exactly what I need as well. Can you please give me a little more detail on what you did? I didn't follow this very well. Thanks, Jon |
|||||||
#7
|
|||||||
|
|||||||
This is an example of product.tpl from a 3.3 version shop just to show you where the code went. I have commented the code for you:
Code:
__________________
ex x-cart guru |
|||||||
#8
|
|||||||
|
|||||||
funkydunk, thank you so much for your reply. I'm using version 3.5 and it does not seem to work. Here is my /customer/main/product.tpl. Any ideas?
Code:
Thanks! -Jon[/code] |
|||||||
#9
|
|||||||||
|
|||||||||
Please post your code between {code} {/code} tags (substitute { with [ and } with ]).
|
|||||||||
#10
|
|||||||
|
|||||||
Hi
I used one of the param fields to hold this info - you seem to be referring to a field in the product table called PartnerLink. Unless you have added this to your products table and amended all of the php scripts to store a value into this, it wont work. replace $product.PartnerLink for $product.param08 and it will work.
__________________
ex x-cart guru |
|||||||
|
|||
X-Cart forums © 2001-2020
|