protechtrader Posted May 4, 2016 Share Posted May 4, 2016 Hello, I would like to have a small group or category of accessories show up in the Add to Cart confirmation window that are discounted with any purchase of a main product, which is the whole rest of the store besides the few accessories. I attached a picture of what I want. Is their any way to do this with prestashop or a module I can get to do this? I looked through the store and I can not find anything. Link to comment Share on other sites More sharing options...
gabdara Posted May 4, 2016 Share Posted May 4, 2016 You can create a custom module that you register to hook shoppingCart, then in function hookShoppingCart() use the Product function getAccessoriesLight() or getAccessories() to get the associated accessories for the product that was just added to cart and apply a discount to them. If you don't know how to create a PrestaShop module just search the web, there are plenty of tutorials. You can also check my PrestaShop Starter Module, it will help you start faster once you understand how a module works. Link to comment Share on other sites More sharing options...
protechtrader Posted May 9, 2016 Author Share Posted May 9, 2016 ndiaga: I am not sure if your offering to create the module or just stating it is possible? gabdara: Thanks for that, it is helpful, but how would you add a discount to the accessories just if their purchased with a product? So like it shows the 50% discount like in my picture, but only when another product is purchased. That way it is full price if someone tried to buy it solo or later removes the main product from their cart. Link to comment Share on other sites More sharing options...
gabdara Posted May 10, 2016 Share Posted May 10, 2016 You could use the Cart object with the getProducts() function and verify if the product that you want is in cart, then apply the discount only when you find it. Link to comment Share on other sites More sharing options...
Nick Derrick Posted June 20, 2016 Share Posted June 20, 2016 Hi, You can do this by customizing as per your requirement. Check with this Prestashop Development Service Prestashop modules for websites 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