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

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

0
Feb 7 2017 by Jason
INSTAFEED PROBLEM

Hi, I am having trouble creating a instafeed of photos from my instagram users account.  So far I have:  - Added instafeed.min.js to assets - Added the following scripts to theme.liquid's <head> (I use my actual user id and access token in my code) :    <script type="text/javascript" src="{{ 'instafeed.min.js' | asset_url }}"></script>     <script type="text/j...

0
Yesterday by lake
untitled

Hello,  Im new to the Ahopify API, here's my code: require 'shopify_api' require 'sinatra' require 'httparty' require 'dotenv' require 'rubygems' require 'meli' Dotenv.load class GiftBasket < Sinatra::Base   attr_reader :tokens   API_KEY = ENV['API_KEY']   API_SECRET = ENV['API_SECRET']   APP_URL = "bda17a6a.ngrok.io"   def initialize     @tokens = {}     super   e...

0
Jun 26 2017 by Jairo Olmedo
Using Webhook

Hi, Im new to the shopify api, I am developing in ruby, I have a wehbook that is trigger everytime a new product is created, I added another webhook that is trigger when a product is updated. the only webhook that is workingis the one when a new product is created. can someone help me, I dont understand why is only working one webhook.  

0
Jun 26 2017 by Jairo Olmedo
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....

0
Jun 26 2017 by Charles
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?

1
Jun 26 2017 by Chris
untitled

How can i make the "product sale cycle" specific for product of my choosing? for example show only the circle only for items with a specific tag.. theme: minimal And also how can I cange the word "sale" to something else? 

0
Jun 20 2017 by nir blum
Best solution for unique on-the-fly generated items with Buy Button

Hi, my business is selling throught a WP website unique food items that vary in weight and type. My plan was to implement the Buy button for sake of semplicity but now I stumbled on the problem that: 1) I need to add the product with some properties ( type, weight and price ) to shopify  2) Generate the Buy Button code to be embedded on the view item page Other informations are: a) The...

0
Jun 19 2017 by Fausto
Where do I insert this small piece of code ("lang" parameter) to make th...

Where do I insert this small piece of code ("lang" parameter) to make the 2checkout page into a default language? Been trying to find it for so long... Help is MUCH appreciated. Thanks in advance! The button which I think should have the code inside: https://prnt.sc/flokub Example purchase link using the “lang” parameter: https://www.2checkout.com/checkout/purchase?sid=XXXXXX&a...

0
Jun 19 2017 by Peter Premuzic
Website Search Bar Auto Refreshing

Hi, Hopefully someone can help me. I have added a couple new apps to my website, and now my search bar auto refreshes the page and goes back to the home screen. I cannot see anything obvious in the liquid file, and because it was working before, it is driving me mad! Unfortunately, I am not sure what the apps were that I installed that made it die on me. Thanks in advance. www.madey...

1
Jun 19 2017 by James McJury
Display the deposit in the basket.

  Hello, I would like to sell drinks. How can the deposit in the shopping cart / invoice be shown separately? Best jonas

1
Jun 19 2017 by Ciara G
Ability to apply a Discount Code to the cart via a script

Is it possible to do something like this? if Input.cart.discount_code.nil?   Input.cart.apply_discount_code("code") end Output.cart = Input.cart   If not, it would make life a lot easier.

2
Jun 15 2017 by Rasmus Larsen
'Add To Cart' Button displaying differently on IOS devices?

Hello all, I am having a spot of trouble with my website, The 'Add To Cart' button seems to be diplaying perfectly in grey on computers and other android devices, however as soon as I try and open it on an IOS device, such as iphone or ipad, it seems to be displaying in black, and on a grey background, makes the button very hard to see!  Has anyone come accross this problem before? It see...

1
Jun 12 2017 by Josh Sprakes
Adding javascript link on additional scripts in checkout page (order pro...

Hi good day, I just want to ask how can I be sure the code I put in here executed when the checkout page confirmation load. I put there a javascript link from our server. That javascript collects the checkout data sent by ajax request and put it on our shipping monitoring system. We have multiple clients using shopify and each of them I put the same script to collect the data. Sometimes w...

0
Jun 12 2017 by Terinah14
Appending text to shipping method in checkout via Script Editor Shopify ...

In configuring the FBA Shopify dropshipping integration I found that you need to use very specific shipping names in order for Amazon to translate them correctly when orders are received (Standard Shipping, Expedited Shipping, Priority Shipping). I'm attempting to keep these names as is, and via JS or this scripting app add a details hover or simple html tag to them to describe exactly what ...

0
Jun 9 2017 by a-aron
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...

1
Jun 3 2017 by Jason
Shipping scripts and Order properties

I have made a shipping script that changes the price of one of my shipping options (Based on cart size). Checkout works fine.  However, the order liquid variable shipping_price does not get updated.  As a result, the confirmation email sent to the customer has the original price for the shipping option selected (not the updated price set by the shipping script). Has nobody else run into t...

0
May 19 2017 by Crane & Canopy
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...

3
Apr 28 2017 by Jason
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?

1
Apr 28 2017 by Jason