RE: Adding a product from another site
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 13219
interpreted = N
texte = Chris ->A company we are making a store for wants to be able to add a product from>their web site directly into the shopping cart. I realize how this is>accomplished using the add command, but the cart is not generated. The url>I'm testing is>http://cyber1.virtualrep.com/scripts/webcatalog/photosphere/shoppingcart.tpl>?command=add&sku=PP&db=catalog.txt&cart=[cart]>I have put this link on a page that is on the store server and it works>fine, but they want to be able to add the product from their web server.Okay, I think I see the problem - since their web server is not running WebCatalog, the [cart] will not be replaced with a valid cart number, but will remain as [cart]. What you should do instead is pass in the necessary information about the product to add as variables and use an [AddLineItem] context on the shoppingcart.tpl page to actually add the item to the cart. This way, you'd use a url like:http://cyber1.virtualrep.com/scripts/webcatalog/photosphere/shoppingcart.tpl?sku=PP&db=catalog.txtand a context like [AddLineItem cart=[cart]&db=[db]&SKU=[SKU]] on the shoppingcart.tpl page to generate a cart number and actually add the item to that cart. You could even put this inside a [showif [referrer]=whatevertheURLforthepageontheirserveris] context to only add that line item if browsers are coming from that page on their server.I hope this helps,Marc EagleStarNine Technologieshttp://www.smithmicro.com/
Associated Messages, from the most recent to the oldest:
|
- RE: Adding a product from another site (Marc Eagle 1997)
|
Chris ->A company we are making a store for wants to be able to add a product from>their web site directly into the shopping cart. I realize how this is>accomplished using the add command, but the cart is not generated. The url>I'm testing is>http://cyber1.virtualrep.com/scripts/webcatalog/photosphere/shoppingcart.tpl>?command=add&sku=PP&db=catalog.txt&cart=
[cart]>I have put this link on a page that is on the store server and it works>fine, but they want to be able to add the product from their web server.Okay, I think I see the problem - since their web server is not running WebCatalog, the
[cart] will not be replaced with a valid cart number, but will remain as
[cart]. What you should do instead is pass in the necessary information about the product to add as variables and use an
[addlineitem] context on the shoppingcart.tpl page to actually add the item to the cart. This way, you'd use a url like:http://cyber1.virtualrep.com/scripts/webcatalog/photosphere/shoppingcart.tpl?sku=PP&db=catalog.txtand a context like [AddLineItem cart=
[cart]&db=[db]&SKU=[SKU]] on the shoppingcart.tpl page to generate a cart number and actually add the item to that cart. You could even put this inside a [showif
[referrer]=whatevertheURLforthepageontheirserveris] context to only add that line item if browsers are coming from that page on their server.I hope this helps,Marc EagleStarNine Technologieshttp://www.smithmicro.com/
Marc Eagle
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Cart Number sequence (1997)
Safari browser and WebDNA set-cookies (2003)
WebDNA Server (2007)
RE: WebDNA-Talk searchable? (1997)
problem: mail changed (1997)
Help name our technology! I found it (1997)
WebCatalog and Macromedia Flash (1998)
Drop Down Menus (2002)
How can I Add several Items into the cart at once? (1997)
Re[2]: Enhancement Request for WebCatalog-NT (1996)
syntax question, not in online refernce (1997)
Generating unique SKU from [cart] - FIXED! (1997)
Date range Problem (2006)
shipping costs (1998)
[isfile] ? (1997)
What's New Date (2002)
[WebDNA] [PROTECT] - Log Out (2011)
Looking for WebCat web hoster in Chicago/Illinois/Midwest (2000)
WebCat2b15MacPlugin - [protect] (1997)
E-mailer error codes (1997)