Hi,
I was hoping that someone could help me understand Placeholders. I’ve read some documentation on them, and as far as I’m aware, though I could be wrong, Placeholders have to be set up within Snippets?
I’m working with the original Shopkeeper files, and within the file chunk_shopCart.tpl there are an awful lot of placeholders, and I don’t understand where there set up.
This is the file:
<div id="shopCart" class="shop-cart">
<div class="shop-cart-head"><b>Shopping cart</b></div>
<div id="cartInner" class="empty">
<div id="cartEmpty" align="center">Empty</div>
</div>
</div>
<!--tpl_separator-->
<div id="shopCart" class="shop-cart">
<div class="shop-cart-head"><b>Shopping cart</b></div>
<div id="cartInner" class="full">
<div align="right">
<a href="[+this_page_url+]?shk_action=empty" id="butEmptyCart">Empty cart</a>
</div>
<table width="100%">
<tbody>
[+inner+]
</tbody>
</table>
<div align="right">Total: <b>[+price_total+]</b> [+currency+]</div>
<noscript>
<input type="submit" name="shk_recount" value="Calculate" />
</noscript>
<div class="cart-order">
<a href="[+order_page_url+]" id="butOrder">Checkout</a>
</div>
</div>
</div>
<!--tpl_separator-->
<div id="shopCart" class="shop-cart">
<div class="shop-cart-head"><b>Shopping cart</b></div>
<div id="cartInner" class="full">
<div align="right">
<a href="[+this_page_url+]?shk_action=empty" id="butEmptyCart">Empty cart</a>
</div>
<div class="shop-cart-body">You have chosen: <b>[+total_items+]</b> [+plural+]</div>
<div align="right">Total: <b>[+price_total+]</b> [+currency+]
</div>
<div class="cart-order">
<a href="[+order_page_url+]" id="butOrder">Checkout</a>
</div>
</div>
</div>
And to reach this particular file the original line is from a template name Checkout
[!Shopkeeper? &lang=`english` ¤cy=`GBP` &cartTpl=`@FILE:assets/snippets/shopkeeper/chunks/en/chunk_shopCart.tpl` &orderFormPage=`31` &gotoid=`32` &inventory=`inventory`!]
Sorry if this is a basic question - but I’m really confused!! Hopefully someone can help!
Thanks
Hollie