Simao Henriques Posted Monday at 11:14 AM Share Posted Monday at 11:14 AM Hello ! I am currently having the following problem: Let's say I have 2 carriers: A and B, that do the following: 1) A -> delivers Small appliances 2) B -> delivers Large appliances 3) B can also be used for small appliances if there is at least one large appliance in the order. The problem here is 3), because the default behavior of prestashop is to only display the carriers in common to all products. So in the case of an order that includes both small and large appliances, B carrier won't be available. The only "solution" that I could think of is add carrier B to small appliances and write some code on the shipping/cart-summary tpl's to hide them if there are no large appliances on the cart, but this seems highly inefficient and not very versatile. Is there any way to basically force a carrier into the available carriers of the order, if any and not all products have that same carrier ? Any help or suggestions would be highly appreciated. Simão Henriques Link to comment Share on other sites More sharing options...
Nickz Posted Monday at 01:43 PM Share Posted Monday at 01:43 PM Is this a production shop or a thought experiment? Live or on localhost, if Localhost which OS? Link to comment Share on other sites More sharing options...
Simao Henriques Posted Monday at 02:00 PM Author Share Posted Monday at 02:00 PM 5 minutes ago, Nickz said: Is this a production shop or a thought experiment? Live or on localhost, if Localhost which OS? Hi Nick, I have both: a live shop and localhost clone for testing. Localhost is running on windows (WAMP). Link to comment Share on other sites More sharing options...
Nickz Posted Monday at 02:13 PM Share Posted Monday at 02:13 PM 12 minutes ago, Simao Henriques said: Localhost is running on windows (WAMP). win 10, 11? Is this a production shop or a thought experiment? Link to comment Share on other sites More sharing options...
Simao Henriques Posted Monday at 02:21 PM Author Share Posted Monday at 02:21 PM Sorry, forgot to mention the windows version. Production shop, and its windows 11 Link to comment Share on other sites More sharing options...
Nickz Posted Monday at 02:36 PM Share Posted Monday at 02:36 PM Communicate with your clients, that is the neat way of doing it. It is the base for a good community. Link to comment Share on other sites More sharing options...
Simao Henriques Posted Monday at 02:53 PM Author Share Posted Monday at 02:53 PM That is what its currently being done, but as you can imagine, its not very sustainable in a larger scale. if someone finds a way to make it work programmatically feel free to let me know, if I also find a way I will update on this thread with the solution. Thanks. 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