Stephen_Baker
Shopify Partner
Contact Me
Status
Offline
Last Activity
‎11-03-2022 05:48 AM
Topic Started
2
Topics Started
Topic Solutions
1
Solution
Post Count
7
Posts
Post Kudos
4
Likes

Community Badges

No content to show

User Activity

If you only want it to apply to one of your collections, you can create an alternate collection template.  Apply the code you found to that new template, and then switch your collection over to that template.
If you're using discount codes, you don't even need the script editor.  Create a collection with all the items that are eligible for the discount, and have the discount code only apply to that collection.  (Note that Shopify cannot EXCLUDE items from...
Change your last line to:{% endif %}
We run a US based store with some international customers.Recently we ran a promotion via Line Item Script, but received an error specifically for international customers.  In one instance, the same customer received the error when trying to ship to ...
Unfortunately no.  It looks like we will need Shopify to make this object/method available.
Is the 'Date' object not available in the Script Editor? I get an "uninitialized constant Date" error when I try to use it. (Goal is to hide a particular shipping method on certain days of the week.)
It's a bit hacky, but you could create a product called "Pick up in store" (or whatever wording you prefer) that costs $0.Create a Line Item script to apply a discount to the whole cart if the cart includes that product.Create a Shipping script to sh...
My Accepted Solutions
This widget could not be displayed.
This widget could not be displayed.
Likes given to