man5 Posted June 9, 2016 Share Posted June 9, 2016 Say I have this link where I've added a product to the cart. https://www.adidas.ca/on/demandware.store/Sites-adidas-CA-Site/en_CA/Cart-Show You will see the cart empty because you're on a different computer and the cookies are unique only to the browser I'm browsing on. Basically what I'm trying to do is have products on my own site and when a user goes to buy them, it will link them directly to the cart/checkout page of that said product on that site(eg. adidas). Is something like that possible to do? Quote Link to comment https://forums.phpfreaks.com/topic/301319-is-there-a-way-to-link-directly-to-the-checkoutcart-page/ Share on other sites More sharing options...
requinix Posted June 9, 2016 Share Posted June 9, 2016 Short answer: no. Shopping carts work by using cookies and your site cannot set a cookie for a different site. Longer answer: It could be possible if a particular website had their "add item to cart" button thing programmed in a way that it really shouldn't have been. Which is by using a link to a page like "/addtocart.php?item=4252603765" that you could copy/paste into another computer and have work. So no. Quote Link to comment https://forums.phpfreaks.com/topic/301319-is-there-a-way-to-link-directly-to-the-checkoutcart-page/#findComment-1533521 Share on other sites More sharing options...
Jacques1 Posted June 9, 2016 Share Posted June 9, 2016 The concept doesn't even make sense. If I happen to already be in the checkout process of adidas independent from your site, would you then add new products to my current session without asking me? Would you abort my current session to replace the products I've chosen with the products of your choice? None of this is acceptable, and I'd probably report it as a security vulnerability. Maybe adidas has some kind of wishlist API or an affiliate program where you can suggest products on their site. Otherwise just link to the product. Quote Link to comment https://forums.phpfreaks.com/topic/301319-is-there-a-way-to-link-directly-to-the-checkoutcart-page/#findComment-1533540 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.