No content to show
User Activity
Ditching the loop option in Flow and just doing it in liquid was the answer: {%- assign counter = order.customer.stateMachinePurchases.value -%}
{%- for a in order.lineItems -%}
{%- for b in a.product.collections -%}
{%- if b.title == "State Ma...
Sum is a good lead (I didn't know it existed, I just started using Flow), but I also need to be able to count only products that are in a certain collection in the order.
Currently I'm trying to create a flow where it loops through each item in an order and increments an integer field on the customer's profile: When the Flow runs, it can see it successfully looping through each item in the order: But the field isn'...
I want to achieve the following: 1. Check a user's purchase history.2. If user has purchased X amount of products from collection Y, reduce the price of products in that collection by 10%. There's a lot of Shopify app technologies available (with som...
This setting removes the login links, but it does not remove the logout link. I have this turned on already.
Is there any way to remove this or change the behaviour of it? We have our own login/auth system that we need users to log in with before accessing the checkout. But once they are there, this logout link will keep them on the checkout in a not logged...
No you were right. That doc does mention discount priority. > If two or more discounts are applied, but can’t be combined due to the discount combination setting or the content of the cart, then the best discount for the customer's cart is always app...
06-25-2024
When I'm using the theme customizer in development mode (where it says "Development (my-local-machine)") I can see the changes reflected when I load the site locally. But the changes aren't saved where I expect them to be (eg: /templates/product.my-p...
If I have the two following discounts active, but are set to not work with other discounts. 1. $10 off when 3 items from Collection A are in the cart2. $20 off when 4 items from Collection A are in the cart How does Shopify prioritise discounts in th...
Ah yep I see! From there I can access the metafields and do whatever I need to with them. Thank you!
Thanks Tim! I'm using it on a page template. The use case is I have a landing page at /pages/trial which is where I want to output the custom product metafield data. I understand the Storefront API needs permissions not available in a standard theme,...
I have a scenario where I am using URL param's to access a product and get the data associated with it. I can't use Liquid here because AFAIK there's no way in Liquid to get URL parameters reliably. document.addEventListener('DOMContentLoaded', funct...
I'm trying to pass data to a section that is loaded with the API, as described in the original question: Eg; If my index.liquid contains fetch(`${window.Shopify.routes.root}?sections=my-section&handle={{ product.handle }}`) How can I access the val...
Thanks for the reply! The question was more about how I then access the string inside the section that is rendered. This:&handle={{ product.handle }} works, but I can't seem to access it within the section that is then rendered.
Is something like this possible? I can get sections, but what I'd like to do is pass some data to it, like a product handle, that I can then access in the section. Eg: fetch(`${window.Shopify.routes.root}?sections=my-section&handle=my-product`)