Prestashop: Cart contains an item that cannot be shipped to destinity creates 2 orders

Created on 29 Aug 2019  路  10Comments  路  Source: PrestaShop/PrestaShop

Describe the bug
If within a customer's cart there is an item that cannot be shipped to customer's address, Prestashop apparently creates two orders based on the same cart. This behaviour is incorrect, it should inform the customer that the item xxxx cannot be shipped to his address.

To Reproduce
Steps to reproduce the behavior:

  1. Login as customer
  2. Add products to cart that can be shipped to the customer's address and also add an item that cannot be shipped to its address
  3. Confirm and process order

Screenshots
Captura de pantalla 2019-08-29 a las 10 21 19
Captura de pantalla 2019-08-29 a las 10 22 00

Additional information
PrestaShop version: 1.7.6.1
PHP version: 7.2.21
MySQL: 10.1.41-MariaDB

1.7.5.2 1.7.6.1 BO Bug Carriers Minor Order To Do

All 10 comments

Hi @demperador,

This issue of split orders.
In your case,

  1. Do you have more than one carrier?
  2. For product 1 which can be shipped to the customer's address => in the BO => Product details page => Shipping Tab => you have selected a specific Carrier?
  3. For the product 2 which cannot be shipped to the customer's address => in the BO => Product details page => Shipping Tab => all carriers are available?
  4. The product1 which has an order1 => the carrier select is carrier1?
  5. The product2 which has an order2 => another carrier is selected?

Thanks!

@khouloudbelguith

  1. Yes, there is one more than one carrier. In fact, one of the orders has defined as id_carrier = 0
  2. For products that has no shipping limit there is no specific carrrier defined (it is defined as prestashop default)
  3. For products that has shipping limitations there is a specific carrier defined.
  4. Order1 contains products that has no shipping limitations and order2 contains product with shipping limitation
    Captura de pantalla 2019-08-29 a las 10 47 50
    Captura de pantalla 2019-08-29 a las 10 52 03

@demperador,

Order1 contains products that has no shipping limitations

What is the exact carrier selected in this order (Order1)?

Thanks!

Order 1 has shipper Correos Provincia Santa Cruz de Tenerife
Order 2 has no shipper probably due to shipping limitation

@demperador, thanks for your feedback.
I manage to reproduce the issue with PS1.7.5.2 & PS1.7.6.1.
Steps to reproduce the issue.

  1. Create a carrier Carrier1 available for all zone
  2. Create a carrier Carrier2 available for the zone Africa for example (not Europe)
  3. Create a product Product1 available for all carriers
  4. Create a product Product2 available only for the Carrier2
  5. Go to the FO => Add the Product1 & Product2 to the cart
  6. Proceed to checkout => in the Adress step => the customer has a France country
  7. Complete the order => there's no error displayed => we should have a warning => Product2 cannot be ordered => there is no shipping method for this product.
  8. In the BO => Order page => two orders created
  9. Check the order for the Product1 => ok
  10. Check the order for the Product2 => NOK => there is no a carrier for this order
    image

I鈥檒l add this to the debug roadmap so that it鈥檚 fixed. If you have already fixed it on your end or if you think you can do it, please do send us a pull request!
Thanks!

Related to https://github.com/PrestaShop/PrestaShop/issues/9594

@khouloudbelguith great! I do not know how to fix the issue in my backend. Payment is associated with order2 and not with order1

Any news here ?

Hi @jf-viguier,

Sorry not yet.
PrestaShop is an open source project, so it can be solved before if someone submits a pull request to solve it.

Thanks!

Hello!

Just to recap, is this issue included in Prestashop's roadmap. In case the description was not clear, I think that the behaviour under this circumstance is that Prestashop should warn the customer that the following products are not available for shipping to the shipping address stated.

Thanks and regards.

i found a temp fix for undeliverability of one or more products doing that: https://github.com/PrestaShop/PrestaShop/issues/20615#issuecomment-675072842

Was this page helpful?
0 / 5 - 0 ratings