-
Notifications
You must be signed in to change notification settings - Fork 72
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
Sticky AddToCart Component on Product Page (GCOM-1194) #2036
base: canary
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: e81ffd5 The changes in this PR will be included in the next version bump. This PR includes changesets to release 72 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This comment was marked as resolved.
This comment was marked as resolved.
packages/magento-product/components/ProductPageWrapper/ProductPageWrapper.tsx
Outdated
Show resolved
Hide resolved
packages/magento-product/components/StickyAddToCart/StickyAddToCart.tsx
Outdated
Show resolved
Hide resolved
packages/magento-product/components/StickyAddToCart/StickyAddToCart.tsx
Outdated
Show resolved
Hide resolved
packages/magento-product/components/StickyAddToCart/StickyAddToCart.tsx
Outdated
Show resolved
Hide resolved
|
export const component = 'ProductPageAddToCartActionsRow' | ||
export const exported = | ||
'@graphcommerce/magento-product/components/ProductPage/ProductPageAddToCartRow' | ||
export const ifConfig: IfConfig = 'enableStickyAddToCart' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This plugin is self-referencing. So the plugin is targeting the current package. Shouldn't we make this a simple if statement somewhere? @carlocarels90 / @mikekeehnen.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could, but we could also make it a separate package right @paales? This would make it a plug and play solution
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mikekeehnen if we do this, we don't need the config file I guess? Because it will apply only when you add this package to your project?
…ify this component with plugins
…roductPageWrapper
…tate without using numbers for switchPoint
… its parent component to trigger the visibility of StickAddToCart
…ced compatibility with configurable products.
…o we can add products to cart within the StickyAddToCart
…AddProductsToCartForm to prevent issues with the addtocart
…yAddToCart option is enabled
…oductsToCartAction fragment
…eatePortal to calculate if the button is in viewport
…utside the Box component.
48a44a5
to
e81ffd5
Compare
|
Example product with an StickyAddToCart component:
https://graphcommerce-git-feature-gcom-1194-graphcommerce.vercel.app/p/talented-bffs-gc-1026-sock