Skip to content

Instantly share code, notes, and snippets.

@essmahr
Created February 5, 2018 18:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save essmahr/e863d3373ab8d7bf72a4cb688b5779ca to your computer and use it in GitHub Desktop.
Save essmahr/e863d3373ab8d7bf72a4cb688b5779ca to your computer and use it in GitHub Desktop.
Before using any of the variables below, add this line, once per file
{% include 'buyx-price-min' with product %}
The following blocks are original code, if exist, and replacement code.
Note that instead of product.price, there might be variations like item.price, or product-block.price etc.
====
product.available
== replace with ==>
buyx_product_available
====
product.price
product.price_min
== replace with ==>
buyx_price_min
====
{% if product.price_varies %}
== replace with ==>
{% if product.price_max > buyx_price_min %}
====
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment