Tomi14 Posted January 7, 2023 Share Posted January 7, 2023 I want to create shoping cart with few products in, and send a link to customer. There are a lot of individual products in the store, you need 4 or 5 to complete a set, and I would like to make shopping easier for interested customer. Link to comment Share on other sites More sharing options...
endriu107 Posted January 7, 2023 Share Posted January 7, 2023 There is no such option by default but you can use wishlist module for create products list and send it to customer in single link by sharing those list. Link to comment Share on other sites More sharing options...
Piotr3qx Posted January 7, 2023 Share Posted January 7, 2023 Are you familiar with writing modules? You can make a copy of the simple Buy button module and make some adjustments to make it work. In RedirectManager.php file, you have $this->addProductToCart($idProduct, $idProductAttribute) function which is responsible for adding products to the cart. You must provide all product parameters in the url, e.g. module/ps_buybuttonlite/RedirectManager?action=1&products=1,1-2,null-3,2 and update the addProductToCart() function to return the correct product id and attribute id parameters from url params. So from the url params products=1,1-2,null-3,2 you should have an array like [0 => [1,1], 1 => [2, null], 2=> [3,2]]. Put new array in foreach loop where you put data inside addProductToCart() function. If you are not a developer, you can write a request to rework the module on the forum Link to comment Share on other sites More sharing options...
endriu107 Posted January 8, 2023 Share Posted January 8, 2023 Option mentioned by @Piotr3qx don't only create cart but also add products to customer existing cart so in that case if customer don't remember what products have already in cart will not be aware what exactly products are added by seller. In some cases it could be valuable behaviour but in other cases not. Link to comment Share on other sites More sharing options...
Tomi14 Posted January 15, 2023 Author Share Posted January 15, 2023 I don't know that much about it. Just enough to correct a line of code to get the effect. I would like to be able to send this to customers without an account on my store. I collect three or four products to buy, give a discount code, send a link and if the customer wants it, he buys it at a discounted price. Link to comment Share on other sites More sharing options...
endriu107 Posted January 15, 2023 Share Posted January 15, 2023 You definitely should check how wishlist module work. Link to comment Share on other sites More sharing options...
Tomi14 Posted January 15, 2023 Author Share Posted January 15, 2023 I already found it, following the previous advice, but I haven't figured out yet how to create a link without customer data. Link to comment Share on other sites More sharing options...
endriu107 Posted January 15, 2023 Share Posted January 15, 2023 What do you mean by "without customer data"? Shared link don't show what customer was create products list. Link to comment Share on other sites More sharing options...
TiaNex Shopping Posted January 15, 2023 Share Posted January 15, 2023 there is a "context" for each customer even guest, you can add the product to the cart when the context created 1 Link to comment Share on other sites More sharing options...
vifen Posted January 17, 2023 Share Posted January 17, 2023 (edited) Hi, did you manage to do it ? Edited December 12, 2023 by vifen (see edit history) Link to comment Share on other sites More sharing options...
idnovate.com Posted January 23, 2023 Share Posted January 23, 2023 This module is exactly what you need 👍 https://www.idnovate.com/en/1408-share-and-save-cart-create-cart-from-url.html Link to comment Share on other sites More sharing options...
Nickz Posted January 23, 2023 Share Posted January 23, 2023 On 1/15/2023 at 3:15 PM, Tomi14 said: I already found it, following the previous advice, but I haven't figured out yet how to create a link without customer data. How about creating a user for the customer and then send his link to him/her? Link to comment Share on other sites More sharing options...
idnovate.com Posted January 24, 2023 Share Posted January 24, 2023 18 hours ago, Nickz said: How about creating a user for the customer and then send his link to him/her? And if you have several customers or you just want to prefill a cart for anybody who open the link? 🙂 Link to comment Share on other sites More sharing options...
Nickz Posted January 24, 2023 Share Posted January 24, 2023 3 hours ago, idnovate.com said: And if you have several customers or you just want to prefill a cart for anybody who open the link? 🙂 you are asking the wrong guy, I'm not planing to go that route Link to comment Share on other sites More sharing options...
idnovate.com Posted January 24, 2023 Share Posted January 24, 2023 1 hour ago, Nickz said: you are asking the wrong guy, I'm not planing to go that route 🤷♂️🤷♂️ 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