Skip to content

Instantly share code, notes, and snippets.

@hidixit
hidixit / Module_news_Pagination.txt
Created March 21, 2018 17:12
module_data for Resources= Blogs
<!DOCTYPE HTML>
<html>
<head>
<title>webapp-pagination</title>
</head>
<body>
{% assign limit = 500 -%}
@hidixit
hidixit / Module_Pagination.txt
Last active March 22, 2018 06:09
Pagination to load Items with module_data
<!DOCTYPE HTML>
<html>
<head>
<title>news-perpage-bctest</title>
<meta name="robots" content="noindex" />
</head>
<body>
<h3>Showing items as per News Module</h3>
@hidixit
hidixit / netsedloop_popletimages.txt
Created October 16, 2017 08:14
netsedloop_popletimages
<!DOCTYPE HTML>
<html>
<head>
<title>mod-cat-list</title>
</head>
<body>
<h3> List Fetching URLs of Poplet Images from <code>module_data</code></h3>
@hidixit
hidixit / showRemoveLinkMediaDownload.txt
Created October 5, 2017 07:14
ExistingBugMediaDownload
{module_favorites filter="all" collection="myData2" template=""}
{% for item in myData2.items %}
{% if item.itemTypeId == "6" %}
{% for property in item %}
{% if property[1].isFavorite == true %}
@hidixit
hidixit / removalURL_favorites
Created September 27, 2017 16:19
favorites_products
{tag_addtofavorites,, collection="myData1"}
<p>{{this.name}}: <a href="{{myData1.removeUrl}}">Remove from favorites</a> </p>
@hidixit
hidixit / order_history.txt
Created September 14, 2017 05:31
view orders history on page
{module_order render="collection" filter="all" sortType="Alphabetical" collection="my_Order" template=""}
<p>Hello {{my_Order.items[0].ownerName}}, You may check the status of all orders placed by you below : </p>
<p>Total no. of items on page {{my_Order.items | size}}</p>
<table>
<thead>
<th>Order Date</th>
<th>Invoice Id</th>
<th>Amount Paid</th>
<th>Amount Pending</th>
@hidixit
hidixit / liquid_js_redirect.txt
Created July 24, 2017 11:00
event redirect using Liquid and JS
<script>
{% if {{globals.get.ID}} == "74287" %}
window.location = "https://www.bcfreetest.tk/bcapi-discovery-test";
{% endif %}
</script>
@hidixit
hidixit / conditional.txt
Last active July 17, 2017 19:32
Conditional statements
<!DOCTYPE HTML>
<html>
<head>
<title>secure-webapp</title>
</head>
<body>
{module_webapps id="37467" filter="all" collection="myData" template=""}
@hidixit
hidixit / diffDate.txt
Created July 11, 2017 20:35
Difference in dates
<!DOCTYPE HTML>
<html>
<head>
<title>render-webapp-item</title>
</head>
<body>
{module_webapps id="37467" filter="all" collection="myData" template=""}
@hidixit
hidixit / sub_cats.txt
Last active June 2, 2017 11:00
Dynamically Pass Ids of all Sub-Cats
<!DOCTYPE HTML>
<html>
<head>
<title>Auto-responder-test</title>
</head>
<body>
<div class="newsletter-form">
<h1 class="bc-test3">Dynamically pass IDs of Sub-Cats</h1> </div>