Hi all,
Just been playing with this as its been bugging me, so I tested to see if the adding to cart from anywhere would work if the variables were put in the markup for the link, so I used the following as a test:
<a href="http://www.your.url/cgi-bin/ca000001.pl?SID=<Actinic:Variable Name="SectionID"/>&PAGE=PRODUCT&Q_<actinic:variable name="ProductReference" />=1">Buy Now</a>
Now, looking at the SID when the page is created it does show the current section number, however my own quick test:
http://www.mdnsupplies.co.uk/shop/16...-splitter.html
Does seem to be working, the best sellers list at the bottom of the page has the Buy Now link and does add the correct item to the cart, if anyone here would be willing to take a look and clarify that it works for them as well it could be a nice work around, without having to hand code each one.
I know there would be pitfalls if your script number changed, but a single correction in the layout would then change them all.
Please anyone with 5 minutes test it, and anyone who may see any other issues, please post to let me and anyone else know if this would cause any unwanted problems.
Thanks
Just been playing with this as its been bugging me, so I tested to see if the adding to cart from anywhere would work if the variables were put in the markup for the link, so I used the following as a test:
<a href="http://www.your.url/cgi-bin/ca000001.pl?SID=<Actinic:Variable Name="SectionID"/>&PAGE=PRODUCT&Q_<actinic:variable name="ProductReference" />=1">Buy Now</a>
Now, looking at the SID when the page is created it does show the current section number, however my own quick test:
http://www.mdnsupplies.co.uk/shop/16...-splitter.html
Does seem to be working, the best sellers list at the bottom of the page has the Buy Now link and does add the correct item to the cart, if anyone here would be willing to take a look and clarify that it works for them as well it could be a nice work around, without having to hand code each one.
I know there would be pitfalls if your script number changed, but a single correction in the layout would then change them all.
Please anyone with 5 minutes test it, and anyone who may see any other issues, please post to let me and anyone else know if this would cause any unwanted problems.
Thanks
Comment