- This topic has 30 replies, 3 voices, and was last updated 3 years, 6 months ago by David.
-
AuthorPosts
-
August 19, 2020 at 1:11 pm #1410094TomLead DeveloperLead Developer
Likely near the beginning of October at this point (1.11.0 was just released).
August 20, 2020 at 1:20 am #1410555nik9Ok, Cool. Will wait for this and will post there after the update. π
October 1, 2020 at 12:37 am #1466584nik9Hello Tom,
I saw that the new GP Version is available. How can I now use the class in order to transformation the “Add to cart” panel properly?
Cheers
October 1, 2020 at 10:18 am #1467721TomLead DeveloperLead DeveloperTry this:
.add-to-cart-panel { transition: opacity .5s ease-in-out !important; transform: translateY(85px); pointer-events: none; } .add-to-cart-panel.show-sticky-add-to-cart, .add-to-cart-panel.item-added { pointer-events: auto; }
Let me know if it works or not π
October 1, 2020 at 11:03 am #1467813nik9Tom, this works perfect! π
BUT.. I didn’t update GP Pro yet. So this is working without any update? haha.. How is this possible?
Thanks.
October 1, 2020 at 11:22 am #1467847TomLead DeveloperLead DeveloperWe both must have overlooked that class somehow – not sure how!
October 1, 2020 at 11:40 am #1467865nik9haha π
But this is now a clean approach? Or do we have here also side effect?
October 1, 2020 at 11:43 am #1467871TomLead DeveloperLead DeveloperTotally clean π
October 16, 2020 at 5:23 am #1491799nik9Hello Tom,
I have some problems with this. By using your css above, the added to cart “go to checkout” button does not work. When change
pointer-events: none;
topointer-events: auto;
then the added to cart banner button “go to checkout” works but then the Add to cart banner is on the page active but not visible. So I can click add when I know where the button is.Also I made some changes for iPad. Because with the code above the transition jumps on ipad’s becasue of the header px.
.add-to-cart-panel { transition: opacity .5s ease-in-out !important; transform: translateY(85px); pointer-events: auto; } @media (min-width:767px) { .add-to-cart-panel { transform: translateY(56px); } } @media (min-width:992px) { .add-to-cart-panel { transform: translateY(85px); } } .add-to-cart-panel.show-sticky-add-to-cart { pointer-events: auto; }
October 16, 2020 at 10:03 am #1492320TomLead DeveloperLead DeveloperCan you try the updated CSS?: https://generatepress.com/forums/topic/display-add-to-cart-panel-on-scroll-transformation/page/2/#post-1467721
October 17, 2020 at 4:18 am #1492973nik9Hello Tom,
Thanks. Not it works better. But now the add to cart banner is on mobile at the bottom and not anymore underneath the header.
October 17, 2020 at 11:32 am #1493523TomLead DeveloperLead DeveloperThe only change I made was adding
.add-to-cart-panel.item-added
to the pointer-events CSS..add-to-cart-panel.show-sticky-add-to-cart, .add-to-cart-panel.item-added { pointer-events: auto; }
You can leave the other part out if necessary.
October 18, 2020 at 5:11 am #1494101nik9Hello Tom,
This is strange. When i delete all the CSS, the add to cart banner is still at the bottom from the page. But ONLY on mobile. Tabled (iPad) and Desktop looks normal. How is this possible? We didn’t add something. We made the GP Pro Update some days ago. But I can not say if it works normal before the update or not. But the add to cart banner on mobile was not always at the bottom.
Hmm..
October 18, 2020 at 6:04 am #1494144DavidStaffCustomer SupportHi there,
that is the default behaviour of the Add to Cart Panel. ie. On Mobile it is fixed to the bottom of the viewport.
October 18, 2020 at 7:09 am #1494201nik9Hi David,
Okey, But this was not the case for the past 5 month for which we use this feature. π
How can we move this below the header again?
top: 0
does not work. π -
AuthorPosts
- You must be logged in to reply to this topic.