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...

Apr 13 2017 by Abel Valdivia
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
Can I add specific product into cart using Script Editor?

Basically I am trying to give a free product on X amount of purshase. I have make it possible using Cart API. But in some cases it do not insert that product because it works in javascript, which may not execute completely due to slow connection or etc... or Even customer may set quantity 0 before checkout. So I would like to add code in Script Editor to insert that special Free Product in orde...

Today by Sanket Patel
Reject a discount code in a SHIPPING script

Has anybody had sucess with rejecting a discount code in a Shipping script? It works with line item scripts.. but with shipping scripts I keep on getting a "method not found" error: [Error] undefined method 'reject' for #<CartDiscount::Shipping:0x7fe77148dc30> Thanks!

Today by Agile Media Ventures, LLC
I wanna create python script to auto upload product CSV

Hello guys. So far i have more than 20k products in my data and ex shop. When i create new shopify shop, i use the feature upload csv to import my exist product to new shopify shop. But 1 csv just include 600 product (file size about 14.x MB), at once time, i only can upload 1 csv file and this should take about 3 hours to uploaded. So to upload 20k products i must take about 1 - 2 week, ...

Apr 22 2017 by Dang Dung
BOGO Script Help

I have the following script. I am trying to have it apply to any product with a tag = bogotest I cant get it to apply only to the products in the collection and to come automatically to the cart. Can you please help?                {% for tags in item.product.tags %}                   {% if tags contains 'bogotest' and  item.quantity >= 2%}                       <p class="ca...

Apr 20 2017 by Yoni
Possible Oberlo or Shopify Problem

Hi again, I need help please.  The dog beds do not change in price or size when you add them to the cart.  Please see the 2 types of beds https://loveyourpoodle.com/collections/dog-accessories I have the prices set per size in oberlo and my inventory but it is not working.  Please help. Also,  how do I get rid of the Ships from "Made in China" drop down at : https://loveyourpoodl...

Apr 19 2017 by Martha
Cart not updating properly

How do you fix when the cart does not update things correctly. For example: Shoe - slipper size does not update in the cart .................. https://loveyourpoodle.com/collections/dog-accessories/products/funny-plush-dog-slippers

Apr 19 2017 by Martha
Parsing JSON into Liquid Javascript

Hi! We have a string variable which contains json, which is being dinamically passed in to the body of the products page. The split function wont work for us, and havnt found a good solution with json.stringify. Is there any way we can parse that json object in liquid JavaScript?  We will be displaying the results assisiated with the variable on the products page.   Thanks!

Apr 18 2017 by Chanbabs
Shopify admin keep loading after uploading external App

Hii guys Hope all is well. I am new to shopify and I was trying deffrent apps. after installing "Tabs - Tabbed Descriptions", My shop is looped in loading... :-( Tried all these metodes but nothing is working: 1- uninstaled tabs app 2- deleted tabs related file "custom-product-tabs.liquid" 3- downgraded all files to older versions 4- changed theme to defrent ones 5- tried t...

Apr 17 2017 by Ash Kh
Estimated Delivery Date - Stock Availability - Metafields

Hi, On the product page it shows Stock Availability - -- Availability: In Stock I'd like to change the 'In Stock' message to display a custom field if the custom field is applicable. This is the current code dictating the message: <link itemprop="availability" href="http://schema.org/{% if product.available %}InStock{% else %}OutOfStock{% endif %}"> and my customfield code ...

Apr 15 2017 by Linda Ladley
Anyone know how to integrate the facebook comments app with my blog

The instructions here are somewhat confusing, was hoping to get some assistance: https://developers.facebook.com/docs/plugins/comments/#moderation-setup-instructions Thanks a bunch in advance for your help, Craig

Apr 15 2017 by Craig Garber
Script discount not shown on Checkout page

I have a script that applies a BOGO. When I published the script the Cart shows the discount as expected, however the order summary on the Checkout page is not showing this discount.  Any idea why this might be happening?

Apr 12 2017 by Tash
Access Cookies In Scripts

In this forum topic, one of the Shopify Experts mentions it's possible to access coookies from the script editor. Can someone give me an example of how to do that? Thanks!

Apr 11 2017 by Gavin Ballard
How to change which collection is "featured" based on product tags?

I would like to be able to change the featured collection that appears at the bottom of each product page based on which tags that product has. I see that when going into "Customize Theme" I am able to chose which collection is displayed on all product pages. However it is not effective to display a suggested product that is the same as the product the user is viewing. I have come up with the p...

Apr 7 2017 by Spencer Miller
Is there a way to get cart information into a Shipping Script

Hello, I really hate the new change that Shopify made to the Scripts separating them into three types of scripts D: Now the scripts I did before wont work. I was wondering if anyone knew a way to automatically put free shipping on a cart if the cart has a certain product. Is this possible? Thanks for the help in advance :D

Mar 31 2017 by Jurgen Feuchter
Buy X quantity of a product, Get Y% off

I'm using the code below to create a quantity discount when a specific tag is applied to a product, and it works... DISCOUNTS_BY_QUANTITY = { 10_000 => 20, 1_000 => 15, 100 => 10, 10 => 5, } Input.cart.line_items.each do |line_item| next if line_item.variant.product.gift_card? if line_item.variant.product.tags.include?('Tiered Pricing') quantity, disc...

Mar 28 2017 by Eli Triona
Script errors not consistent

I have two Shopify stores. I've created a script to apply a 25% discount if the customer is tagged with "employee". The script works on one of the stores, but generates an error on the other. part of my script: customer = Input.cart.customer CAMPAIGNS = [ if customer.tags.include? "employee" ItemCampaign.new( AndSelector.new( ExcludeGiftCardSelector.new, ...

Mar 23 2017 by Clarke Barry
Identifying scripted discounts in order admin

I have been asked by the accountant here: is there a way to identify Line Items that have had scripted discounts applied, either using tags or line item properties? Are scripts able to write values to either of those? 

Mar 11 2017 by Jason
Include messages through Script editor

Hey there, I made a really simple code to let know the costumers how much left they have to get free shipping, it goes just like this. price = Input.cart.subtotal_price price_for_freeshipping = Money.new(cents: 5500) if price < price_for_freeshipping resto = price_for_freeshipping - price message1 = "Te quedan #{resto} para que tu pedido sea gratuito" puts "Faltan #{...

Mar 9 2017 by Northweek Webmaster