PsMax Posted August 11, 2011 Share Posted August 11, 2011 need to build module to let user add product from outside of prestashop site, from known URL and add the product to cart!! Link to comment Share on other sites More sharing options...
Paul C Posted August 11, 2011 Share Posted August 11, 2011 Interesting Do you need to send a form (e.g. product, quantity) or is it just a url to add a single pre-defined product to the cart? I assume that the customer is redirected to the Prestashop site on clicking the link/form submit? Paul Link to comment Share on other sites More sharing options...
PsMax Posted August 13, 2011 Author Share Posted August 13, 2011 Interesting Do you need to send a form (e.g. product, quantity) or is it just a url to add a single pre-defined product to the cart? I assume that the customer is redirected to the Prestashop site on clicking the link/form submit? Paul send form with relevant product data to be add to prestashop and create new cart (if this is the first product in this session) and add the product to the cart. at first the outer site will get the cart id so when adding product the plugin will have the right cart to use!! Link to comment Share on other sites More sharing options...
Paul C Posted August 14, 2011 Share Posted August 14, 2011 To be honest if all you're doing is building a cart of products, then it would be better to do that on the external site, wouldn't it? You have to know the product_id on the external site already.... Once you have the external cart built, then you could write module code to accept this as a POST/GET to take the user to the Prestashop site for checkout. The main problem would be if the customer built a cart on the external site, clicked to go to the shop to checkout but then added more products and returned to the external site - in that case they wouldn't see the products added by Prestashop on the external site. I'm not 100% sure I understand what you're trying to achieve though! Paul Link to comment Share on other sites More sharing options...
PsMax Posted August 16, 2011 Author Share Posted August 16, 2011 To be honest if all you're doing is building a cart of products, then it would be better to do that on the external site, wouldn't it? You have to know the product_id on the external site already.... Once you have the external cart built, then you could write module code to accept this as a POST/GET to take the user to the Prestashop site for checkout. The main problem would be if the customer built a cart on the external site, clicked to go to the shop to checkout but then added more products and returned to the external site - in that case they wouldn't see the products added by Prestashop on the external site. I'm not 100% sure I understand what you're trying to achieve though! Paul it will be external cart but synchronize with the prestashop cart, do i need to add the product to prestashop so it can be in the cart? i need to keep the cart if user leave the system befor checkout. when he return to the presta the cart is set and sync with the external cart. thenk you 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