Discount Ninja includes a number of assets, some of which are dynamic and others that are periodically overwritten.

We advise excluding the following files from your version control system to avoid overwriting them:

Script file

If you've opted to have the script file installed as an asset, you can choose to include it in your version control system. When new versions of the app are released you may need to update the script file (this is done via the Settings > General > Assets module of the app). You'll then need to update the file in your version control system.

The name of the script's asset is: limoniapps-discountninja.js

If you've opted to have the script file downloaded as a Shopify script tag, there is no action required.

Building blocks

Some assets contain templates of building blocks. They are overwritten when the configuration of those building blocks is changed in the app. Therefore, adding them to your version control system may cause the content of these files to be out of sync with the configuration in the app. This may impact the look and feel of the building blocks.

The following assets contain building block templates:

  • limoniapps-discountninja-badge.liquid
  • limoniapps-discountninja-cartdiscountfield.liquid
  • limoniapps-discountninja-giftbox.liquid
  • limoniapps-discountninja-notification.liquid
  • limoniapps-discountninja-popup.liquid
  • limoniapps-discountninja-promotionsummary.liquid
  • limoniapps-discountninja-stickybar.liquid
  • limoniapps-discountninja-triggerbutton.liquid
  • limoniapps-discountninja-volumediscounts.liquid

It is not advised to store these files in a version control system.

Style sheet

The app dynamically builds a style sheet, based on the settings in the configured in the building blocks in the Settings modules as well as the configuration of each of the promotions.

This style sheet is stored in the asset: limoniapps-discountninja.css.liquid

It is not advised to store this file in a version control system.

Header and body

The content of the header and body assets is changed when:

  • the app is enabled or disabled (Settings > General > Status module)
  • the script modus is changed from script to asset or vice versa

The header is stored in the limoniapps-discountninja-header.liquid asset and the body in the limoniapps-discountninja-body.liquid asset.

These assets, when stored in a version control system can, therefore, override these settings, which can have important side-effects.

It is not advised to store these files in a version control system.

Flags

The app contains a number of flags that can be used to change the behavior of the app. Flags are rarely required and should typically not be changed. The flags are stored in the limoniapps-discountninja-context-flags.liquid asset.

This file can be included in a version control system.

Settings

The settings that are configured in the app are stored in an asset named limoniapps-discountninja-context-settings.liquid.

It is not advised to store these files in a version control system.

Context

The context asset limoniapps-discountninja-context.liquid contains static content.

This file can be included in a version control system.

Did this answer your question?