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

Wrong pricing when creating draft order #7816

Open
facundocapua opened this issue Jun 24, 2024 · 2 comments
Open

Wrong pricing when creating draft order #7816

facundocapua opened this issue Jun 24, 2024 · 2 comments

Comments

@facundocapua
Copy link

Wrong pricing when creating draft order

Wrong pricing when using customer groups pricing feature

I have multiple customer groups with different prices for each one. When creating a draft order prices are not updated after selecting a customer and the draft is created using the default prices.

As a workaround, replacing the product with the same one in the order (not draft) admin page makes the pricing right, but it needs multiple extra steps and a refund to be created.

Custom pricing for products is not working

When trying to set a custom pricing for a draft order it's working. Instead, default price is set.

System information

Medusa version (including plugins):

"@medusajs/admin": "7.1.14",
"@medusajs/cache-inmemory": "1.8.10",
"@medusajs/cache-redis": "1.9.1",
"@medusajs/event-bus-local": "1.9.8",
"@medusajs/event-bus-redis": "1.8.13",
"@medusajs/file-local": "1.0.3",
"@medusajs/icons": "^1.2.1",
"@medusajs/medusa": "1.20.7",
"@medusajs/ui": "3.0.0",
"medusa-fulfillment-manual": "1.1.40",
"medusa-interfaces": "1.3.9",
"medusa-payment-manual": "1.0.24",
"medusa-payment-stripe": "latest",
"medusa-plugin-sendgrid": "^1.3.12",
"medusa-react": "9.0.17",

Node.js version: 20.5.1
Database: PostgreSQL 16.1 (Debian 16.1-1.pgdg120 1)

Steps to reproduce the behavior

Steps for "Wrong pricing when using customer groups pricing feature":

  1. Go to 'Orders' section in Admin UI
  2. Click on 'Draft'
  3. Click on 'Create draft order'
  4. Chose region
  5. Add existing item to the order
  6. Select any shipping method
  7. Select customer with custom pricing
  8. Complete shipping and billing address
  9. Click on 'Submit'
  10. Check pricing for product

Expected behavior

Price for product should be the one from customer's group instead of default one.

Copy link
Contributor

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 3 days.

@github-actions github-actions bot added the Stale label Sep 23, 2024
@facundocapua
Copy link
Author

This is still happening, please don't remove it

@github-actions github-actions bot removed the Stale label Sep 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant