Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Virtual products not showing totals in cart #4532

Closed
wants to merge 1 commit into from
Closed

Virtual products not showing totals in cart #4532

wants to merge 1 commit into from

Conversation

degaray
Copy link

@degaray degaray commented May 16, 2016

No description provided.

@aakimov
Copy link
Contributor

aakimov commented Aug 31, 2016

Hello @degaray,

Thank you for your contribution.
Could you please provide a more verbose steps to reproduce for the issue that you have (if you still have it, try latest version first).
Here is a template that you can use for it:

Preconditions

  1. Virtual product is created;
  2. (other preconditions: like tax settings etc that can affect the use case)
    Steps to Reproduce
  3. Go to frontend (specify: guest or registered customer);
  4. Add product from preconditions to cart;
  5. (other steps)
    Expected Result
    Totals are correctly shown in cart;
    Actual Result
    Totals are not shown in cart;

Thank you for understanding and your interest in Magento.

@degaray
Copy link
Author

degaray commented Sep 1, 2016

Hi @aakimov:
Please find a more verbose instruction.

This problem is experienced when using the web-api. When you add products to the cart and then you request [GET] /carts/mine/payment-information none of the totals are calculated. Thus the available payment methods are not shown correctly. Please find the verbose steps below:

Preconditions

  1. Create a virtual product. To make it easy, you can create the virtual product using the admin dashboard. Any virtual product will do.
  2. Tax preconditions have nothing to do with this problem. The thing is that the totals are not even calculated, so any logic having to do with taxation are not considered yet.

Steps to Reproduce

The problem is related to web-api only so I am detailing the steps using it.

  1. Create an oath token using: /integration/customer/token. I have only tested it with registered customers, but I am almost sure the same problem will happen for guest customers.
  2. Add product from preconditions to cart: As with any workflow, start by creating a cart [POST] /carts/mine. Then add the product in the preconditions using [POST] /carts/mine/items. I am adding a sample json sent:
{
    "cart_item": {
        "quote_id": "{{quote_id}}",
        "sku": "{{sku}}",
        "qty": 1
    }
}

The quote_id is the cart id thrown when the cart is created, the SKU is the one you assigned when you created the virtual product.
3. Now try to get the payment_methods available using [GET] /carts/mine/payment-information.

Expected Result

In theory during the step 3. you should get all the payment methods available, and the totals and subtotals of the cart.

Actual Result

All totals are shown in zero, therefore only the payment methods available for zero totals are shown (e.g. free).

@vrann
Copy link
Contributor

vrann commented Mar 25, 2017

@degaray unfortunately, we don't process PRs to 2.0 branch at the moment. Please re-create it against the develop branch.

@vrann vrann closed this Mar 25, 2017
@vrann vrann assigned vrann and unassigned SerhiyShkolyarenko Mar 25, 2017
magento-engcom-team pushed a commit that referenced this pull request Jul 29, 2019
MC-18191: customer section problem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants