Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.

Commit

Permalink
DARK: Fix the cart drawer not opening (#418)
Browse files Browse the repository at this point in the history
## QA Steps

Fix the cart drawer not opening when we don't include the
featured-product or product-slider sections

-  [ ] `pnpm i`
-  [ ] `pnpm dev`

## Note
 - we already render the cart-drawer on the theme.liquid
 - [example store](https://jamalmoutajadid.youcan.store/)
  • Loading branch information
adildev101 authored Nov 20, 2023
1 parent 57d24c0 commit 2cc69a3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 2 additions & 0 deletions assets/express-checkout.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ async function placeOrder() {
});
});

notify(err.detail, 'error');

const formTop = form.getBoundingClientRect().top;

if(!document.querySelector('#yc-sticky-checkout')) {
Expand Down
2 changes: 0 additions & 2 deletions sections/featured-product-slider.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -390,5 +390,3 @@
]
}
{%- endschema -%}

{{ 'add-to-cart.js' | asset_url | script_tag_deferred }}
2 changes: 0 additions & 2 deletions sections/featured-products.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -203,5 +203,3 @@
]
}
{%- endschema -%}

{{ 'add-to-cart.js' | asset_url | script_tag_deferred }}

0 comments on commit 2cc69a3

Please sign in to comment.