Title Replies Last Post
Introducing Shopify Scripts: Customize the business logic of your Shopif...

Shopify's Script Editor allows you to create Ruby scripts that can change the prices and properties of line items in your store's cart. Using scripts, you can create discounts that will be applied automatically based on the items and properties of a cart. The Script Editor app adds a place to write and store scripts in your Shopify admin. This forum is for questions and discussion surroundin...

Oct 30 2018 by anjrottesting Admin
Shopify Scripts: Read before posting

This category in the forums is dedicated to the Shopify Script Editor. Please ensure your question relates to the Scripts API or the Script Editor app. Documentation: Shopify Scripts API Shopify Script Editor app App store: Script Editor If you have general API questions unlrelated to Shopify Scripts post in the Shopify APIs & SDKs category. If your question is about storefront ...

Feb 7 2017 by Jason
Tiered Discount by Product Tag

Hello, looking for code for a tiered discount script based on product tag. Example: If product tag = "A" discount the line item by 25% If product tag = "E" discount the line item by 20% Also, is there a way to prevent additional discount codes entered at checkout, to avoid an extra discount on the above? Thanks!

Nov 5 2018 by SpurIT
Price rules without code?

Hi, Is it possible to create a site-wide discount or a colletion-wide discount without a code ?  I know I can do it per product, but for site-wide discount that would mean to edit every single variant on my store (over 200K) and with the API it will take about 15 hours everytime I want to create a sale on the site...  Thanks.

Oct 16 2018 by Dylan Hunt
Add Order Tag before email notification to merchant

Hi ! Is there a way to add Order Tags when the order is placed ? So when the notification email is received by the merchant, the tag is already here ? I know I can add them through the API once the order is made, but the tag won't be in the email. Thanks.

Aug 9 2018 by Prabhat
Offer Free Shipping when specific discount code used

Hi, I'm trying to find a workaround with not being able to do stacked promotions. We want to offer our customers $85 off on their order + Free Shipping. Is there any way to do this logic with script? Logic would be when code "HOLIDAY" is used, offer Free Standard Ground Shipping. Much appreciated! Thanks!

Dec 10 2018 by Sunny
Bundle discount quantity limit

products_needed = [1574877593703] products_seen = [] discounted_products_count = 0 discounted_bundle_count = 0 @percent = Decimal.new(100) / 100.0 Input.cart.line_items.each do |line_item| product = line_item.variant.product products_seen << product.id if products_needed.include?(product.id) end Input.cart.line_items.each do |line_item| product = line_item.variant....

Dec 10 2018 by ME
How to Add Facebook Messenger Plugin to your Shopify Store

Hi Team  I am created Facebook messenger bot I want to add that bot in my Shopify website. I did this following steps but it's not showing messenger logo on the website. Steps are as follow: 1. On Facebook  Select page -> Setting -> Messenger Platform In this added my storeurl in the whitelist domain  Then click on Customer chat plugin - set up   click next get the co...

Dec 10 2018 by Bhagyashree More
Detect if ordered from certain page/order form

I have an order form set up on a page that people can order a mixture of products from, what I am wondering is if there is a way to detect this via a shopify script I am using to edit line items. Some type of hidden form field or something that passes along a value that I can detect that says the user came from that page/order form. What would be the most simple way to accomplish this? Any p...

Dec 7 2018 by Rahul
How to remove unwanted lines of code from landing page

I've recently used the tutorial on how to add an age verification to your page. While following this turtorial I was required to add a snippet in the body section. When you go to my website's ;anding page, there is now a single line of code at the very top. I'm not sure what I've done to cause this, and I can not seem to locate the error. Any help with this would be appreciatted.

Dec 7 2018 by Carter
Build integration to install Javascript to Shopify store

Hi there,  I work with a marketing platform, trying to build a direct integration for our clients that are on Shopify. MVP would be for the user to authenticate their store and credentials (preferably from our platform), so that we can automatically add JavaScript to defined location(s) on Shopify site. Any direction or experience in this type of application or integration is greatly appr...

Dec 5 2018 by Elliot
Need help adjusting a Script!

I have the basic script for Buy X, Get Y free, but I want to do a sale that involves the customer buying three specific items, and getting another specific item free. How do I do this?!

Dec 5 2018 by Elliot
How to capture when a recurring payment is executed in shopify?

Hi friends, I need to know how to detect recurring payments in shopify, so that when a recurring payment happens, perform an action. In what part of shopify can I detect it, in the code, database? Thank you for you help.

Dec 3 2018 by dexterade
How to Create a Product Thumbnail Slider in Minimal Theme

I am using Minimal Theme. I have products with many multiple variants. I would like to only feature one main photo and have all other photos visible in a thumbnail slider below. Can someone tell me step by step how to edit the code. Thank you

Dec 1 2018 by Ralph Hayes
Display Inventory - Multiple Locations

I'm trying to display inventory by location on our product pages. I have the location IDs but I am not sure how to link it to a product. When I view the product in "/admin/products.json?ids="  it displays: "inventory_quantity":2,"old_inventory_quantity":2 But I have it set up to be 1 item at one location (Toronto) and 1 item at another location (Vancouver). How do I identify invent...

Nov 30 2018 by Sarah Caracciolo
Limit discount

I've got a discount script which applies a discount if a product has a certain tag and another specific product is in the cart. This is my code: products_needed = [1574879461479,1574879461468] products_seen = [] Input.cart.line_items.each do |line_item| product = line_item.variant.product products_seen << product.id if products_needed.include?(product.id) end @percent =...

Nov 30 2018 by ME
Pulling Data from Dealer Portals to our website

Hi Guys Does anyone know if there is a way we can pull products and stock quantities from our existing Wholesalers into our Shopify store? For example we have logins to wholesalers who we order goods from for our retail stores. We are upgrading our website to shopify and would like to have the products either being "Available in Store - (data pulled from POS system) or "Available to Order...

Nov 30 2018 by Tira
How to modify the canonical tags on the duplicate 'Product Type' facets

We are trying to modify the canonical tags to ensure Google shows the right version of the product type pages in the search results, we need to point Google towards the correct indexable version. For example, the page https://www.arenamenswear.com/collections/tops/product-type_hoodies needs to have its canonical tag modified to read: <link rel="canonical" href="https://www.arenamenswea...

Nov 7 2018 by Arena Menswear
How to show Discount code for specific product on cart page

Hi All, i want to show discount code for product on cart page so that user can copy that code and enter in the discount text box at the time of checkout. if Any product have discount code then it will show on cart page. if its possible then please let me know how to do that.  

Nov 28 2018 by Nick
Need a help configure add an api

Greetings, Iam interesting in add a code from a third party addon, please the code need add in index.php or index.html My question is please where can i find it? And paste the code please Thanks

Nov 26 2018 by Zixons