JustJohn Posted April 12, 2023 Share Posted April 12, 2023 PS 8.0.3 Is it possible to have Prestashop switch to the first available/in stock combination when selecting through the attributes dropdowns? Consider the following case: Product A that comes in 2 sizes: 40 and 44. Two warehouses, "A" and "B". Size 44 available at both warehouses and this combination gets preselected at warehouse "A" when we open that product's page. Size 40 only available at warehouse "B". Here comes the problem: when you try to select size 40 from the dropdown without first selecting warehouse "B", it immediately reverts back to 44/A on the page. Is it possible therefore to have Prestashop somehow loop through available combinations, so when a user selects size 40 without touching the warehouses, PS would also change the warehouse to "B" in the dropdown as well, automatically? Link to comment Share on other sites More sharing options...
JustJohn Posted April 12, 2023 Author Share Posted April 12, 2023 Even worse, consider the following availability table: Size WarehouseA WarehouseB 40 0 1 44 1 0 45 0 1 Size 44 at Warehouse A is preselected when you open the product page, but you cannot even select Warehouse B at all to pick sizes 40 or 45 from the dropdown. Those conditions appear to be mutually exclusive for Prestashop. Naturally, this all occurs if I enable "Display unavailable attributes on the product page", but I can't do it otherwise because if the sizing table is huge and the availability across the chart is low (say, 10 sizes but only 1 size in stock), that would require a visitor to hunt through all available sizes and warehouses just to put an item into their cart. Is that a Prestashop bug? 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