Jump to content

Shipping allowed / not allowed to the same address


Pecatum

Recommended Posts

Hi everyone,

 

I have a "simple" problem, but I cannot find a solution anywhere.

 

Let's simplify:

1. Product A cannot be delivered to Germany (by means of creating a carrier C1 with no ranges defined for Gerrmany, and assigning only carrier C1 to product A).

2. Product B CAN be delivered to Germany (by means of assigning another carrier C2 with ranges defined for Germany).

 

Situations:

1. If a customer from Germany orders just product A, it won't be allowed ("no carriers available, etc") -> OK

2. If a customer from Germany orders just product B, order is allowed with carrier C2 -> OK

3. If a customer from Germany orders both products A and B, order is also allowed (with carrier C2)!!! Showing the shipping costs corresponding to carrier C2.

 

Anyone knows how to solve situation 3??? I would hope 2 possible solutions from Prestashop, but it looks like PS didn't think about this (not so rare) possibility:

a) Product A is automatically deleted from order.

B) Message is displayed the same way as in situation 1 and order is not allowed.

 

I've been searching for a while and haven't found anything (just more people with same problem).

 

Thanks in advance!

 

www.pecatum.com

Edited by Pecatum (see edit history)
Link to comment
Share on other sites

Well, I've just found another problem, which I guess is another case of the original problem:

 

- Product A can only be delivered with carrier C1 (expensive)

- Product B can be delivered with both carrier C1 (expensive) and carrier C2 (cheap)

 

In an order with products A and B, just option C2 (cheap) is available.

Edited by Pecatum (see edit history)
Link to comment
Share on other sites

Hello 

 

There is no default way to archive this . but we can customize the codes little to auto delete product A from cart and show them an error text something like " Product A will not ship to germany , please use another delivery address for product A " 

Link to comment
Share on other sites

Hello 

 

There is no default way to archive this . but we can customize the codes little to auto delete product A from cart and show them an error text something like " Product A will not ship to germany , please use another delivery address for product A " 

Thanks a lot for your quick response!

 

I was afraid there was no custom solution, as you say. I have some coding skills, so I will try and share my solution if I ever get to find it. Just in case, which files should I begin with?

 

KR

Edited by Pecatum (see edit history)
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...