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

TH-173-harmony: Harmony > Cart drawer > Format currency based on Dotshop locale #62

Merged
merged 7 commits into from
Oct 15, 2024

Conversation

eihabkhan1
Copy link
Collaborator

@eihabkhan1 eihabkhan1 commented Oct 14, 2024

JIRA Ticket

Ticket: TH-173.

QA Steps

Multi Currency ON

  • From the multi currency settings in seller area, turn on multi currency and enable precision
  • Turn on your VPN
  • Go to your product's page in storefront
  • Add it to the cart
  • Make sure that:
    • The price for each item in the cart is formatted based on your VPN's country + your browser's language
    • The price is converted to your VPN's country currency
    • The currency symbol displayed is the VPN's country currency symbol
    • The subtotal is also formatted accordingly
  • Go to your browser's language settings, If you're using Chrome just click ⌘ + ,
  • Search for language
Screenshot 2024-10-08 at 8 43 12 AM
  • Click the three dots next to any language and move it to the top to make it your language of choice
  • Go back to your storefront, hit refresh and open your cart
  • The price value(s) and subtotal should be formatted based on your VPN + your browser's language

Multi Currency OFF

  • From the multi currency settings in seller area, turn off multi currency and enable precision
  • Go to your store's general settings /admin/settings/general#details
  • Change the store language to English - United States
  • Change the store currency to Moroccan Dirhams
  • Change the currency symbol to MAD
  • Go to your product page
  • Add it to the cart
  • Hit refresh, make sure that:
    • The price (value) is formatted based on your store country
    • The subtotal is also formatted accordingly
    • The currency symbol displayed is the symbol you defined in your store (in this case it should be MAD)
  • Go back to your store, change the language to French - France
  • Go back to storefront, hit refresh, and open the cart
  • The price should be formatted accordingly and the currency symbol should be on the right
  • Go back to your store, this time change the currency symbol to a random currency symbol (ex: Wiwi)
  • Go back to storefront, hit refresh, and open the cart
  • The price should be formatted accordingly and the currency symbol should still be on the right

Note

Leave empty when you have nothing to say.

@eihabkhan1 eihabkhan1 self-assigned this Oct 14, 2024
@eihabkhan1 eihabkhan1 added the in progress Currently being developed. label Oct 14, 2024
@eihabkhan1 eihabkhan1 added Ready for review Requires a review from another developer. and removed in progress Currently being developed. labels Oct 14, 2024
@eihabkhan1 eihabkhan1 marked this pull request as ready for review October 14, 2024 09:29
themes/harmony/assets/main.js Outdated Show resolved Hide resolved
@eihabkhan1 eihabkhan1 merged commit 7a80e5e into master Oct 15, 2024
@eihabkhan1 eihabkhan1 deleted the TH-173-harmony branch October 15, 2024 15:57
@eihabkhan1 eihabkhan1 added Reviewed PR has been reviewed and approved. and removed Ready for review Requires a review from another developer. labels Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Reviewed PR has been reviewed and approved.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants