neu Posted September 21, 2016 Share Posted September 21, 2016 Dear Gents, I've been searching for this solution for a while, but no joy so far. I've seen this working for Shopify, so I guess there should be a solution somehow for this in PS as well. What I'd like to have is various links generated that leads to the checkout page with pre-defined items in the cart. This is for users who are not registered and never been on the site before. I'd like to lead a few of our sales funnel into this to have a proper checkout and make sure orders are getting into the system properly. This means that having to ask the user to do anything else then filling in their shipping address and to check out. is out of scope. Also this link has to work anytime, even is someone used it, so it's not a solution that I set up a cart for a "dummy" user. Should work something like this: - user clicks the predefined link (either in email, or in our sales funnel which is outside of PS) - if the cart is not empty, it should reset - the predefined items should get into the cart and proceed dirently to the checkout page - user completes checkout as either guest user or register (either should work) Any ideas on how to do this or if it's possible at all? Thanks! neu Link to comment Share on other sites More sharing options...
sandipchandela Posted September 23, 2016 Share Posted September 23, 2016 Yes that thing is possible but predefined links should be have products identifier Link to comment Share on other sites More sharing options...
Knowband Plugins Posted October 4, 2016 Share Posted October 4, 2016 (edited) Yes, it can be implemented as a module. The module would have an interface for you to generate URLs with all desired products id. After some customer clicks on the generated URL, this module will run and identify all products from the URL. After fetching all products id from the URL and it will add those products to customer's cart and will finally redirect him to the checkout page. We can implement such module for an appropriate cost. If you are interested in custom module development, please let us know. If you want to implement it on your own, you can use below code to add products to the cart. <script> $.ajax({ type: 'POST', url: baseUri + '?rand=' + new Date().getTime(), data: 'controller=cart&add=1&ajax=true&qty=1'+'&id_product=1', beforeSend: function() { }, success: function(q) { location.href='http://psdemo.knowband.com/en/supercheckout'; } });</script> or $cart = new Cart(); $cart->updateQty( (int)$product['quantity'], (int)$product['id_product'], (int)$product['id_product_attribute'], null, 'up', (int)$id_address_delivery, new Shop((int)$cart->id_shop), false ); Edited October 4, 2016 by Knowband Plugins (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now