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

[Cart.js] Fix fetch url so it's not hard coded #2357

Merged
merged 2 commits into from
Mar 3, 2023

Conversation

ludoboludo
Copy link
Contributor

@ludoboludo ludoboludo commented Mar 3, 2023

PR Summary:

This fixes an issue where when using the cart drawer specifically, the theme wouldn't keep the currency chosen by the user when going to the checkout.

Why are these changes introduced?

Fixes #2356

What approach did you take?

Use dynamic variables we have to set the fetch url.

Other considerations

Decision log

# Decision Alternatives Rationale Downsides
1

Visual impact on existing themes

NO visual changes.

Testing steps/scenarios

  • Change the currency to Canada, you should see the url change.
  • Go to a product page and add a product to the cart then go to checkout and confirm the currency is the right now

Check this issue for more details.

⚠️ MAKE SURE that none of the recent PRs that merged are part of this commit. The branch was based on the last commit we had on February 3rd, date of the last release.

Demo links

Checklist

@ludoboludo ludoboludo changed the base branch from main to 8.0.1-release-branch March 3, 2023 17:40
assets/cart.js Outdated Show resolved Hide resolved
@eugenekasimov eugenekasimov self-requested a review March 3, 2023 18:00
@eugenekasimov
Copy link
Contributor

eugenekasimov commented Mar 3, 2023

The cart works correct now, but the language/currency selectors stopped working for me 🤔

updated: maybe it's a bug on github. I pulled your branch to my local machine and it works fine. So, I thing you can ignore my comment.

@ludoboludo ludoboludo requested a review from stufreen March 3, 2023 19:01
Copy link
Contributor

@stufreen stufreen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🎩

@ludoboludo ludoboludo merged commit 54eede6 into 8.0.1-release-branch Mar 3, 2023
@ludoboludo ludoboludo deleted the 8.0.0-quick-fix branch March 3, 2023 19:43
ludoboludo added a commit that referenced this pull request Mar 6, 2023
* fix fetch url so it's not hard coded

* change url
pangloss added a commit to pangloss/dawn that referenced this pull request Mar 11, 2023
* shopify/main:
  Improve image sizes in the multicolumn section (Shopify#2349)
  Fix the Page section's width.  (Shopify#2364)
  Update 12 translation files (Shopify#2366)
  Removing "my" from cart popup notification (Shopify#2353)
  [Cart.js] Fix fetch url so it's not hard coded (Shopify#2357) (Shopify#2365)
  Update 1 translation file (Shopify#2352)
  Default Follow on Shop to on
  [Header] Add localization selectors (Shopify#2258)
  Remove async CSS pattern where it may introduce layout shifts (Shopify#2270)
  Change rich text section heading to be of type inline_richtext, also moved rte styling into base.css (Shopify#2326)
  Add drawer menu desktop (Shopify#2195)
  Make header image preload and proper width (Shopify#2307)
phapsidesGT pushed a commit to Gravytrain-UK/gt-shopify-dawn-theme that referenced this pull request Sep 3, 2024
…y#2365)

* fix fetch url so it's not hard coded

* change url
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Subfolder for domain creating an issue with cart changes
3 participants