Skip to content
This repository was archived by the owner on May 28, 2023. It is now read-only.
This repository was archived by the owner on May 28, 2023. It is now read-only.

Wrong product quantity on orders with products with custom options #477

@ktopouzi

Description

@ktopouzi

Current behavior

Hey there, I am facing an issue while placing orders using products with custom options. In case I use the same product with more than one variation the final order that is sent to Magento backend is totally different than the one that is shown on OrderReview. After chatting with @gibkigonzo he pointed out that it may be due to the fact that o2m compares client and server item with sku but when using custom option the sku is the same. He also mentioned that in VSF there is a "catch" for that using ProductEquals.

Expected behavior

Being able to order product with custom options despite the number and/or the actual options selected

Steps to reproduce the issue

  1. Create a product with custom options in Magento2
  2. Pump the products in VSF
  3. Place an order with the product using a set of the custom options we specified and then add another one with different options (total 3 products in cart)
  4. The actual order on magento will have 4 of the last product placed on the order.

Additional information

This is the error got caught on the logs

ORD:1 - < Server and client items synced for sku
ORD:1 - < Wrong qty for sku 2 1
ORD:1 - < Server cart in sync

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions