The repo for Purrform's main BigCommerce store.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: hide rewards from TNC customer group (#10)

authored by

Rogerio Romao and committed by
GitHub
96be2c51 b97952d7

+12 -2
+1 -1
config.json
··· 1 1 { 2 - "name": "trader credit frontend v2", 2 + "name": "tnc trader group hide rewards", 3 3 "version": "6.10.0", 4 4 "template_engine": "handlebars_v4", 5 5 "meta": {
+11 -1
templates/pages/account/inbox.html
··· 24 24 <div class="account account--fixed"> 25 25 <div class="account-body"> 26 26 <section class="account-content"> 27 + {{#if customer_group_name '===' 'Trade TNC'}} 28 + <div class="reward-section"> 29 + <p> 30 + No rewards available for your customer group at this time. 31 + </p> 32 + </div> 33 + {{/if}} 27 34 {{#if customer_group_name '===' 'Trade'}} 28 35 <div class="reward-section"> 29 36 <p> ··· 33 40 </div> 34 41 {{/if}} 35 42 {{#unless customer_group_name '===' 'Trade'}} 43 + {{#unless customer_group_name '===' 'Trade TNC'}} 36 44 <div class="reward-section"> 37 45 <h2>Loyalty points</h2> 38 46 <p>Purchase goods to earn points for discounts!</p> 39 47 <p id="loyalty-points-balance">No balance found.</p> 40 48 </div> 41 - {{/unless}} {{#if customer_group_name '===' 'Personal'}} 49 + {{/unless}} 50 + {{/unless}} 51 + {{#if customer_group_name '===' 'Personal'}} 42 52 <div class="reward-section"> 43 53 <h2>Birthday gift</h2> 44 54 <p>Register your cat to receive a 10% discount voucher when it's their birthday! The purrfect gift!</p>