diff --git a/templates/index.liquid b/templates/index.liquid
index a55954f..edb0222 100644
--- a/templates/index.liquid
+++ b/templates/index.liquid
@@ -44,7 +44,12 @@ File: index.liquid
{% endif %}
{{ product.name }}
-
{{ product.price_with_currency }}
+ {% if current_user.is_wholesale? == true %}
+ {% assign product_price_with_currency = product.wholesale_price_with_currency %}
+ {% else %}
+ {% assign product_price_with_currency = product.price_with_currency %}
+ {% endif %}
+
{{ product_price_with_currency }}
diff --git a/templates/show.liquid b/templates/show.liquid
index 2a01db0..40eec59 100644
--- a/templates/show.liquid
+++ b/templates/show.liquid
@@ -144,9 +144,14 @@ File: show.liquid
// (needs to be in a liquid file)
{% if product.has_variants? %}
{% for variant in product_variants %}
+ {% if current_user.is_wholesale? == true %}
+ {% assign variant_price = variant.wholesale_price %}
+ {% else %}
+ {% assign variant_price = variant.price %}
+ {% endif %}
{% capture first_index %}{{ forloop.index0 }}{% endcapture %}
window.product_variants[{{ first_index }}] = {
- "price": "{{ variant.price }}",
+ "price": "{{ variant_price }}",
"options_text": "{{ variant.options_text }}",
"image": "{{ variant.featured_image.src }}"
};