JanaStrawberry Posted March 15, 2015 Share Posted March 15, 2015 I want to ask customers on the homepage, preferably in the topbar, where they are from so I can show the stock levels I have in the closest warehouse. I use advanced stock managment with two warehouses. Is this possible? Link to comment Share on other sites More sharing options...
NemoPS Posted March 16, 2015 Share Posted March 16, 2015 It is, but it's definitely not easy. You need to create a new module that will accept the input (I suggest ZIP-based), then save it to the cookie object. If the cookie exists, you override the stockAvailable class to retrieve quantities from the closest warehouse based on the zip range (this will be the trickiest part, you might need to use the google maps api for distance) Link to comment Share on other sites More sharing options...
JanaStrawberry Posted March 16, 2015 Author Share Posted March 16, 2015 Thanks. Can I not just let them choose between two warehouses? Because we only have USA and Europe and a dropdown with these two option would be enough for me. Link to comment Share on other sites More sharing options...
JanaStrawberry Posted March 16, 2015 Author Share Posted March 16, 2015 Is there no way of doing this? A simple drop down and show either this or that stock level? I have seen this on every other onlineshop that sells international as this is a basic feature, can´t believe there is no solution for Prestashop. Link to comment Share on other sites More sharing options...
NemoPS Posted March 18, 2015 Share Posted March 18, 2015 Hm, yes you can add a warehouse dropdown but you need to code the rest so that it only takes quantity out of the right warehouse (again, php) 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