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 AZSolutionsUSA
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
Please Help, Variants not updating

Can somebody please help me ?! So, I use supply theme for my store and replaced the image box with Jquery Flex Slider. The slider works just fine, but the problem is that when a user selects a variant the main image does not change accordingly the way it used to.. I've been struggling to find a resolution for this code for two days now and still haven't progressed much. Where should...

Yesterday by eggdeals
checkout page the "show order status" open by default

In mobile, checkout page the " show order status" is by default closed, I want it to be open. customers can't see where to put the discount code when its closed, how can I do that?

Aug 18 2017 by nir blum
Using The Form App

Hello All, I'm new to shopify. I recently just installed the Form Builder by HulkApps ( https://apps.shopify.com/form-builder-by-hulkapps) Now, I created a form, but I have no clue to to implement it into a page. Help would be really apprecited! Thanks, Donni, 

Aug 18 2017 by DonniH
Additional Scripts Not Loading

Forgive me if this is the wrong section to ask this in.   I'm trying to get some custom javacsript added to the additional scripts section in the Checkout settings. Unfortunately, when going through the checkout I can't see any of these scripts loading.   Even tried running some console test messages, and nothing. Looks like they are using the theme Envy:  http://www.wetheme.com/shopify-t...

Aug 17 2017 by Richard
Add image under AJAX Cart button

Hello, I'm trying to add an image under my cart button. The cart is using AJAX in Brooklyn theme. I'm using liquid tags such as <img src="{{ 'image.png' | asset_url | img_tag }}"/> and trying to add it inside the ajax-cart-template.liquid. This is the section where I'm adding it. <div class="ajaxcart__footer ajaxcart__footer--fixed">         <div class="grid--full"> ...

Aug 17 2017 by Richard
Adding to cart from bundle Page, quantity limited to 2?

Hi, I have a package page that adds products and quantities to cart, via the form submit and <input type="hidden" name="id[]" value="123456"> where value is the product.id. https://www.ezbbq.com.sg/pages/basic My main issue being, adding to cart does not trigger errors. and if for example, a package contains 2 quantity of any product, it adds fine to cart the first time. if the pa...

Aug 17 2017 by Daniel Tay
New Customer

Been trying to find a way to check if customer is new or not. This is far as I can get, with little luck. I am new to scripts, so please forgive. Input.cart.customer.each do |line_item| if line_item.orders_count < 1 push "New Customer" end end  

Aug 15 2017 by Steven
Reporting Bugs in Documentation

The documentation here says there is support for orders_count https://help.shopify.com/api/tutorials/shopify-scripts#customer It is clearly exampled that the Customer method follows this structure: customer = Input.cart.customer So orders_count should be as follows: customer = Input.cart.customer puts customer.orders_count However the puts returns Error and the code is in...

Aug 15 2017 by Steven
need to create Linked Options with Envy Theme help!

does anyone know and can help me out with having the linked options with the section theme, Envy Theme. 

Aug 14 2017 by Max Gomez
Embedding Javascript to a Page

I am trying to embed a lightbox form to a page. I now have the javascript at the end of theme.liquid. I use a class on the actual page to point to the script. Source code of actual page: <div class="jotformscript"><a class="btn lightbox-71493297037463">BOOK APPOINTMENT NOW</a></div>   Code in theme.liquid: .jotformscript { <script src="https://form.jot...

Aug 10 2017 by Valerie
Script recognizes customer when not logged in?

I have a couple scripts that look at the customer's tags to do a some things (exposing wholesale shipping rates and a Net Terms payment option, for example). If I shop, and go through checkout having never logged in, but use my email address attached to my account in checkout, the scripts will somehow recognize me as a customer (which has the wholesale and terms tags I'm looking for in the scri...

Aug 9 2017 by rickydazla
Display price only?

I'm trying to convert our web shop apinor.no to use shopify, but I got some issues. I have a third party site (apinor.no/produkter) that I need to display a list of products (like now, but with produc snippets from shopify), and I want to be able to click the image of every product to go into a dedicated page (also a third party site).  I want it to look like the added image, a image of t...

Aug 1 2017 by Torgeir Bull
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...

Apr 28 2017 by Jason
Discount message showing in Script Editor tester, but not in checkout

Hi. When testing a Script Editor script, the discount message set in a given line item shows in green in the Order preview section, but after publishing the script and doing a real checkout, the message doesn't show up (even though the discount does show up). I can see there is a similar question, but instead of wanting the discount message to show on the cart, I'm trying to have it show on ...

Nov 24 2016 by HunkyBill
Divide a Money object / Money to Number

Is there a way of dividing the money object, or converting it to a Number to do the same? I should precurse this with a note that I'm not familiar with Ruby, so I may be missing something obvious. I'm trying to calculate the percentage a line price is of the total of the cart. e.g line_item.line_price / cart.subtotal_price But as per the scripts documentation the Money object doesn't ha...

Jul 12 2017 by Zoran Ilievski
Error - There is an error with the discount: Id can't be found

I'm trying to create tiered discount here. In the script I reject the discount code if the discount from the script is applicable. To test the script from the app, I input a discount code which is already available in the store. Running the script throws me this error  "here is an error with the discount: Id can't be found" Is this a problem with Shopify?

Jul 12 2017 by Zoran Ilievski
Help!! Error in shipping script

Hi guys!  Here is my shipping script: cart=Input.cart if cart.discount_code && cart.discount_code.code == "TESTING321"      Input.shipping_rates.delete_if do |shipping_rate|         next if shipping_rate.code == "Ground Shipping (5-7 days)"         shipping_rate.name.upcase.start_with?("")     end end Output.shipping_rates = Input.shipping_rates   The idea is set up a free...

Jul 10 2017 by Chris
Trigger a script using a discount code

Hello,  I'm trying to find a way to only run a script when a specific discount coded is added.  My code applies the discount to the specific products it should be but I need a way to activate it so we can track through a marketing campaign.  discounted_product = 1234567890 discounted_product2 = 0987654321 products_needed = [1234567890, 0987654321] products_seen = [] Input.cart....

Jun 26 2017 by Charles