Jump to content

Force carrier option if ANY (and not all) product has it set


Simao Henriques

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...