Welcome to the Liquify Community

c
consti
Offline, last seen last week
Joined November 7, 2024
Hi,

Ich use GSAP for the fade in of the element on the website. The problem is, that when I scroll through some pages, some content doesn´t load with GSAP. But when I open the live webflow site without the conversation, it´s working. Does somebody know if I need to change something?
Or does somebody know an alternative the have the fade in effect when scrolling. I already had the native fade un animamtion from webflow, but it was very buggy, so maybe there is another solution?

Here a video to show: https://drive.google.com/file/d/1se2VYMPJMasZdOatwsVI7AR6Alh5Te_-/view?usp=sharing
And this is my code:
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.9.1/gsap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.9.1/ScrollTrigger.min.js"></script>

/* Initial styles for load animations /[animation="load"] { opacity: 0; transform: translateY(40px);}/ Initial styles for scroll animations */
[animation="scroll"] {
opacity: 0;
transform: translateY(40px);
}

<script>
gsap.registerPlugin(ScrollTrigger);

// On page load animations
document.addEventListener("DOMContentLoaded", () => {
gsap.to('[animation="load"]', {
opacity: 1,
translateY: 0,
duration: 1,
stagger: 0.25,
ease: 'power2.out',
});
});

// Scroll into view animations
gsap.utils.toArray('[animation="scroll"]').forEach((element) => {
gsap.fromTo(element,
{ opacity: 0, translateY: 40 },
{
scrollTrigger: {
trigger: element,
start: 'top 98%',
end: 'bottom 2%',
},
translateY: 0,
opacity: 1,
duration: 0.8,
ease: 'power2.out',
}
);
});
</script>
31 comments
J
c
j
Hi everyone,

I’ve asked a similar question before regarding whether this functionality could be achieved with Liquid. However, this question is not specifically about whether it’s possible but rather if anyone has ideas for a workaround or solution to make this work.

Here’s the scenario:

I sell a product that costs €20 per unit. However, I offer a bulk discount: if a customer buys 5 or more units, the price drops to €15 per unit.

Is there a way to display both the original price (€20) and the discounted price (€15) in the mini cart? For example:
• When the customer adds 5 units of the product to the cart, the mini cart shows the original price (€20 x 5 = 100€) as crossed out and then calculates and displays the discounted price (€15 per unit x 5 = €75).

I’m aware there are Shopify apps that handle this kind of functionality, but the mini-cart is based on the Shopify Cart API which doesn´t include both prices. Is there any way to achieve this feature in the mini cart, either with custom coding or a specific workaround?

Thanks in advance for your help!
11 comments
j
c
I want to show my collection list sorted by letters. I used {% assign sorted_collections = collections | sort: "metafields.custom.sorting.value" %} but it doesn´t work. Does somebody know what I need to change?

Live-URL: https://7k7dzb9dj5lhvssh-57626296517.shopifypreview.com
Read-only: https://preview.webflow.com/preview/gooddesk-2-0?utm_medium=preview_link&utm_source=designer&utm_content=gooddesk-2-0&preview=b591d4a7ccf27c45128c1df7a9620d22&locale=en&workflow=preview

Thank you
5 comments
c
J
Hi,

I’ve created a shop using Webflow and Liquify, and I’ve animated the cart, mobile menu, and search using GSAP. The menu and search work perfectly, but the cart is causing some issues. When I open the cart, the animation works exactly as I want it to. However, when I close it using the X button, the cart simply fades out (which is not what I want). Interestingly, if I have the cart open and click on the empty space on the left, it closes normally with the animation.

Does anyone know what could be causing this issue? Everything worked fine before the conversion.

Here’s the live link: https://z4cmuv3bp7byca7v-57626296517.shopifypreview.com
Webflow live link (this works): https://gooddesk-2-0.webflow.io
Here’s a demo video: https://drive.google.com/file/d/1NdNaPagceDw2DglFD4p5ouTNbGcXu4Fy/view?usp=drive_link
And the GSAP code is attached.

Thank you so much! 🙂
37 comments
m
c
What do I need to change that the ceeation_date will be shown in the contact form?
19 comments
j
c
Hi,

I want to use the Page Select or something similar in the meta objects to link to collection pages. But there are not showing the Collection pages in Shopify.

I used normal url inputs before, but these won´t work with the multi language because of if I am on the page wth the .at domain (www.domain.at) and I click on the meta object it will redirect me to .de or something else...

Does somebody know how I can change that?
5 comments
j
c
c
consti
·

Swiper JS Bug

This is not a Liquify realted Bug, its a general Bug with Swiper js. When I only have 2 Items in a Slider, the Loops doesn´t really work. But On bigger screens it doesn´t even work if I have 4 items selected. Does somebody know why?

Here the Code, a Demo Video and the Attributes the Slider is using.
5 comments
j
c
Hi,

I used a Code Snippet from Shopify dynamic Button for the direct Checkout. I know it´s not liquify direct, but maybe somebody knows what to do.

The direct checkout (f.e. works when I have something in the Cart, but doesn´t work when there isn´t something in the cart. So I think there is a problem with ids etc...

Here the code I used:
{% if product.available %}
<!-- Produktformular beginnt -->
{% form 'product', product, class: 'product-form' %}
<input type="hidden" name="id" value="{{ product.variants.first.id }}" />
{{ form | payment_button }}
{% endform %}
{% endif %}
12 comments
j
c
When I view the logs I have a few errors. When I look in the code, I don´t know what do change. Does these errors matter or not?
5 comments
c
j
When a product is sold out and I try to change the variants (e.g., size or color), the selected option doesn’t update correctly. It seems like there’s a bug in how the variant selection behaves.

Read-only: https://preview.webflow.com/preview/gooddesk-2-0?utm_medium=preview_link&utm_source=designer&utm_content=gooddesk-2-0&preview=714c6bed7cb355aab8979e48c6ad6e2a&pageId=65eebb01574038784679b79d&locale=en&workflow=preview
15 comments
j
c
I used li-object="item.product_title" and li-object="item.variant_title" in the mini-cart. Is there a way to use these attributes in the normal cart? item. is already the name in the normal cart.

Thank you 🙂
4 comments
c
j
When I download pull the Github Code to my Computer and add some }, and push it back, will they stay at future conversions? Because they will be in code sections that have a liquify attribute
1 comment
j
I uploaded a Theme to Shopify for a client and he told me, that the normal Shopify Analytics doesn´t work with that theme. Is this possible or do I need to make some changes?
4 comments
j
c
In the one screenshot you see the webflow export with a id, attribut and class. In the Shopify Theme the attribute and the id is missing. Why?
11 comments
c
j
Hi,
When I slide through the product images, the small images under the main one are not scrolling as espected. When an images is cut off at the right side, it doesn´t jump more to the left. It only jumps more to the left if the images is 100% cut off... How can I change that?
7 comments
j
c
How can I separate the variants from the product title?
6 comments
c
j
I have the rich text field in my Meta Object and I need more possibilities. The Blog post Rich Text field has more possibilities like the Custom HTML which the Meta Object doesn´t have. How can I change that, so that the Meta Object has more features too?
6 comments
c
j
Hi, how can I create the multi language Theme? Like how do I change the Text Elements (f.e. li-settings:text) elements on diffrent locales?
3 comments
c
j
Is there a way, that the variant Image changes smooth? Like in the Video (First Part) and in the second Part, there is the Version, that is not that smooth.
17 comments
c
j
I have the li-settings attribut, but it doesn´t work like on other elements. I changed the Image in Shopify, but it doesn´t change in the Editor and als not on the published Site.
10 comments
j
c
Hi,
I just found out, that I have diffrent prices in my minicart and on my product. Why?
Attribut on the Product Page: li-object="product.price | money" (I added this price in the Product Backend)
Attribut in the Mini-Cart: li-js-price="product.price"
14 comments
j
c
Can I use the Variant MetaFields in the MiniCart?
1 comment
j
I don´t know hy, but these radio button elements are visible in the editor but not on the live site.. Why and what can I do, that they are visible?
13 comments
c
j
C
How can I show the cheaper price and the original price of an product in the mini-cart?

I tried it with these attributes, but I think the are wrong... https://preview.webflow.com/preview/gooddesk-2-0?utm_medium=preview_link&utm_source=designer&utm_content=gooddesk-2-0&preview=714c6bed7cb355aab8979e48c6ad6e2a&workflow=preview
17 comments
c
j