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

7
Jan 26 2017 by Charlie
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 ...

0
Feb 7 2017 by Jason
HTML use for eBay listing

Hello All,  I am struggling getting traffic to my website as my experience is not in SEO, instead Jewellery. I am looking at utilising a ebay shop to generate income. I have tried a couple apps to bulk list but I either don't like them or there's a fault when I use my product pages HTML source code. As mentioned I am inexperienced in this section. I can access my HTML source code, and whe...

1
Yesterday by Joey P
Removing color option where there is only one. Supply Theme.

Hello, Recently i had to add color options because of google merchant, now product site looks all messed up, overcrowded and doesnt fit in nicely anymore (customers reviews goes way down and description is no longer 'above the line') https://www.walldy.com/collections/leggings/products/spiral-leggings Ive found some solutions on forum but non works for me on supply theme. Is ther...

0
Feb 21 2017 by valentina wertheim
Trying to Sell single item on homepage, but it wont work.

Hello, im new to shopify but I just setup my first product and I currently only have one product. I want my homepage to have my item, item description, and the 4 pictures of my item, along with a buy it now button. I want this because with only one item I dont want people to have to go to homepage then select the item, etc. I am following the steps, but when I get to product.liquid it says {...

0
Yesterday by hayden
When discount code is used get free shipping

Is it possible to grant free shipping when a certain discount code has been used?

0
Feb 22 2017 by Designifyer
MegaMenu APP. Word spacing change HELP

Hello, I am using Megamenu for my menus. I contacted them and asked for a menu spacing change which they did. Works great, but I need some more changes in it. So I asked how they modified the code to do this but they replied that all they can do is change the code for me. Anyone here know how to do it or can help me out?

0
Feb 21 2017 by Andre
Moderators, please!?

This forum is getting polluted with inane chaff from dumbos that don't know better... can we get some threads moved / crufted and maybe some clearer explanation, maybe even some rules on entering ... Plus-only store owners / partners?

6
Feb 17 2017 by HunkyBill
Prevent Discount Codes from Being Used on Certain Products

Hey everyone!  We're trying to use Shopify Scripts to prevent discount codes from being applied to items that are already on sale (i.e. have a Discount code that applies to them), so that customers can't get a double sale. When we put an item on sale we update the variant price to the sale price, and set the original price in the "compare_at_price". Additionally, it is tagged as "On Sale". S...

29
Feb 15 2017 by Jurgen Feuchter
Signing/Hashing Inside Scripts

I'm trying to write a script that allows bundle pricing, something like: Product A costs $100 Product B costs $200 Product A costs $75 if B is in the cart Product B costs $150 if A is in the cart Writing the above script is fairly straightforward, but gets difficult to manage as soon as you start adding a few more combinations and permutations. We have an outside server that can han...

3
Feb 8 2017 by Dev Gupta
Change original_line_price?

I am trying to set up tiered pricing on a store using Scripts. When a product goes on sale, we need to calculate the discount based on the compare at price, not the sale price. No problem there. But this also means, the original line price needs to be re-calculated based on the compare price. I tried simplying reassigning the line_item.original_line_price but I got an error (undefined method). ...

1
Feb 2 2017 by Michael Sunarlim
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? 

0
Jan 31 2017 by rickydazla
Set Static Price By Tag, Script not working, not sure what I'm missing

Hey all,  So this is what I have so far, but it's not seeming to work, I'm trying to set items with a specific tag to $50   class StaticPrice def initialize(selector) @selector = selector end class TagSelector def initialize(tag) @tag = tag end def match?(line_item) line_item.variant.product.tags.include?(@tag) end end CAMPAIGNS = [ StaticPrice....

4
Jan 23 2017 by HunkyBill
Using Money in the message of a discount script

One of the discounts I'm working on takes off $0.75 per item. I'd like to tell the customer their total savings in the message string. This works fine, but right now if the person saved $7.50 it says, "You saved $7.5!" I'd like it to say, "You saved $7.50!" or "You saved $8.25" or "You saved $3.00" or any other variation. Right now, If I add a value that is a money object I get this: "You sa...

3
Dec 28 2016 by HunkyBill
Interaction between coupon code and script

Recetly I just get my hands on Script Editor. and I have following scenario which I am not sure how to create:  - I have a discount script that applies 20% off to all product except the products which have a vendor "AAA" - Customers will need a coupon code to activate this discount script. I created a coupon code with 20% off on all orders. - HOWEVER, when I tested with the coupon code...

5
Dec 1 2016 by HunkyBill
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 ...

2
Nov 24 2016 by HunkyBill
How to access Discount Codes

Simple cart with a discount code is selected. Try to run a simple script.  cart = Input.cart dc = cart.discount_code puts "DC: #{dc}" Output.cart = Input.cart Generates an error:  Code requirements not met What am I missing? Why is script editor choking on this simple test? The Code itself is just 50% of products in the cart.  Would be nice if the error messages inc...

0
Nov 18 2016 by HunkyBill
Improvements Needed

Script Editing is less fun than it should be due to a weakness in the presentation of scripts in the main display grid. First off, there is no indication of what script was created when. So we have to create script names polluted with semantic version numbers and calendar dates ourselves? How quaint! Secondly, there are no stats to inform us of what Scripts we wrote were stellar and brought ...

0
Nov 18 2016 by HunkyBill
Coupon is cancelling the BOGO 1/2 off cart script?

Hey all, my goal here is to display an error message and not apply a coupon if this script has been activated. Instead what is happening is when a coupon is entered it's cancelling the script and applying the coupon and reverting the line item prices back to their original prices?   Anyone know what I need to change here? case Input.cart.discount_code when CartDiscount::Percentage ...

1
Nov 17 2016 by John Vecchio
Tracking Shopify Scripts?

Has anyone found a way to track how many times a script has been used? Ideally in Google Analytics? We've tried firing custom event, internal promos, and order coupons, but none have worked thusfar.

4
Nov 10 2016 by Marc Huang