# Shopify Scripts

{% hint style="warning" %}
Shopify Plus Only
{% endhint %}

{% hint style="danger" %}
This is an advanced guide meant for developers that not is supported by the Inveterate team. You should ensure you have the appropriate development resources to implement before proceeding.&#x20;
{% endhint %}

{% hint style="info" %}
This guide requires the [Shopify Script Editor](https://apps.shopify.com/script-editor) app.
{% endhint %}

By default we utilize discount codes to provide free shipping to

Shopify Plus merchants have access to a Shopify built app called Script Editor. This app allows merchants to build custom discounting functionality that will apply to products in checkout. These scripts are written in Ruby and run on the backend before a customer's cart is displayed to them in checkout. This allows for a lot of extra discounting functionality that would normally not be possible by simply editing the front end code.

## Script Types

## Creating a Script

In your Shopify Script Editor app click the "Create script" button to open the script modal. Once opened, select the "Line Items", "Shipping rates" or "Payment gateways" tab, select "Blank template" and hit the "Create script" button.

![](https://231758148-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLjNbd2MWKOWi5A1HvQtH%2Fuploads%2F5hq8UDfDNHrHaALEr2rw%2FScreen%20Shot%202022-01-20%20at%2012.37.21%20PM.png?alt=media\&token=7346eaa3-d539-4ec2-8638-8249f5233dea)

In the "Code" section replace the default code with one of the following scripts.

## Shipping Scripts

{% content-ref url="shopify-scripts/free-shipping-script" %}
[free-shipping-script](https://help.inveterate.com/help-center/advanced-guides/shopify-scripts/free-shipping-script)
{% endcontent-ref %}

## Line Item Scripts

{% content-ref url="shopify-scripts/member-only-pricing" %}
[member-only-pricing](https://help.inveterate.com/help-center/advanced-guides/shopify-scripts/member-only-pricing)
{% endcontent-ref %}
