Created
June 28, 2022 01:55
-
-
Save robertainslie/10103a77bd1493a2f6da62718d1feb74 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% set example_contact = 801 %} | |
{% set example_industry = "Hospitality" %} | |
{% set example_fee_range = "$100,000-$250,000" %} | |
<!-- contact.franchise_budget contact.industry--> | |
{% set associated_recommended_franchises = crm_associations(contact.hs_object_id,'USER_DEFINED','36','','franchise_name,industry,initiation_fee',true) %} | |
{% for franchise in associated_recommended_franchises.results %} | |
<p style="background-color:#B2D1E7;padding:10px;margin:10px"> | |
<strong>{{franchise.franchise_name}}</strong> is in industry <strong>{{franchise.industry}}</strong> and has an initiation fee of <strong>${{franchise.initiation_fee}}</strong> | |
<br><br> | |
<a hre="http://21988369.hs-sites.com/boss.you-franchise-recommendation?industry={{franchise.industry}}&fee={{franchise.initiation_fee}}"> | |
<button style="margin:5px;padding:5px 10px;background-color:#00497D;color:#ffffff;border:none"> | |
Learn more | |
</button> | |
</a> | |
</p> | |
{% endfor %} | |
Recommendations in your industry of choice ({{contact.industry}}) but in a different price range: | |
{% set query = 'fee_range__neq='~contact.franchise_budget~'&industry='~contact.industry|lower %} | |
{% set queried_recommended_franchises = crm_objects('p21988369_franchises',query,'franchise_name,industry,initiation_fee,fee_range',true) %} | |
{% for franchise in queried_recommended_franchises.results %} | |
<p style="background-color:#FFDBC1;padding:10px;margin:10px"> | |
<strong>{{franchise.franchise_name}}</strong> is in industry <strong>{{franchise.industry}}</strong> and has an initiation fee of <strong>${{franchise.initiation_fee}}</strong> | |
<br><br> | |
<a hre="http://21988369.hs-sites.com/boss.you-franchise-recommendation?industry={{franchise.industry}}&fee={{franchise.initiation_fee}}"> | |
<button style="margin:5px;padding:5px 10px;background-color:#00497D;color:#ffffff;border:none"> | |
Learn more | |
</button> | |
</a> | |
</p> | |
{% endfor %} | |
<p> | |
<strong> Returned Data for Associated Franchises:</strong><br> | |
{{associated_recommended_franchises}} | |
</p> | |
<br> | |
<p> | |
<strong>Returned Data Queried Franchises:</strong><br> | |
query: {{query}} | |
<br> | |
{{queried_recommended_franchises}} | |
</p> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment