Archive for myfreeforum.org Before posting please check the "stickies" in the support forums. Please ask questions in real English and not "txt". You will get a better response. Please do not ask support questions via PMs.
as far as i,m aware i,m using the default template. i know i wasnt but copied a working copy back into it.
Spoiler:
<script src="/language-en.js"></script>
<script>
//Options for Everyone:
MonetarySymbol = '{SHOP_CURRENCYSYMBOL}';
DisplayNotice = {SHOP_ALERTONADD};;
DisplayShippingColumn = {SHOP_ENABLESHIPPING};
DisplayShippingRow = {SHOP_ENABLESHIPPING};
DisplayTaxRow = {SHOP_TAX};
TaxRate = {SHOP_TAXRATE};
TaxByRegion = false;
TaxPrompt = 'For tax purposes, please select if you are an Non Uk resident before continuing';
TaxablePrompt = 'Non Uk';
NonTaxablePrompt = 'Uk';
MinimumOrder = {SHOP_MINIMUMORDER};
MinimumOrderPrompt = 'Your order is below our minimum order, please order more before checking out.';
function move()
{
window.location = "{U_SHOP_ACTION}";
}
function confirmClearBasket()
{
if (confirm("Are you sure you want to empty your shopping basket?"))
{
SetCookie ('NumberOrdered', 0, null, '/');
setTimeout('move()',1);
<!-- IF SHOP_S_MODE == 1 or SHOP_S_MODE == 0 -->
<!-- Individual Item or many items -->
<tr>
<td>{SHOP_DESCRIPTION}</td>
</tr>
<!-- IF SHOP_VIRTUAL == 1 -->
<!-- IF USER_ID > 0 -->
<tr><td>You have {SHOP_CURRENCYSYMBOL}{SHOP_AVAILABLEFUNDS} available funds</td></tr>
<!-- ELSE -->
<tr><td>You will have to login to use the virtual shop</td></tr>
<!-- ENDIF -->
<!-- ENDIF -->
<tr>
<td>
<!-- IF SHOP_BUYBACKMODE == 1 -->
<tr><td>
You are selling back to the shop
</td></tr>
<!-- ENDIF -->
<!-- IF SHOP_S_MODE == 1 -->
<!-- many items -->
<table>
<!-- BEGIN shop_row -->
<tr>
<!-- BEGIN shop_column -->
<td valign="top" >
<h3>{shop_row.shop_column.NAME}</h3>
<br />
<a href="{shop_row.shop_column.IMAGE_URL}"><img src="{shop_row.shop_column.THUMBNAIL_IMG}" {SHOP_SIZE} /></a>
<br />
{shop_row.shop_column.DESCRIPTION}
<br />
<!-- IF shop_row.shop_column.TAX > 0 -->
{SHOP_CURRENCYSYMBOL}{shop_row.shop_column.TAXEDPRICE} (Includes {SHOP_CURRENCYSYMBOL}{shop_row.shop_column.TAX} sales tax)
<!-- ELSE -->
{SHOP_CURRENCYSYMBOL}{shop_row.shop_column.PRICE}
<!-- ENDIF -->
<br />
<!-- IF shop_row.shop_column.OWNED > 0 -->
You own {shop_row.shop_column.OWNED} of this item
<!-- ELSE -->
<!-- ENDIF -->
<br />
<!-- IF SHOP_LIVE > 0 -->
<br />
<form name="order" method="post" action="{U_SHOP_ACTION}&mode=viewcart" onSubmit="AddToCart(this);">
Quantity: <input type="text" size="2" maxlength="3" name="QUANTITY" onChange='this.value=CKquantity(this.value)' value="1">
<!-- IF SHOP_BUYBACKMODE == 1 -->
<input type="image" src="/shop/images/buynow.gif" border=0 value="Add to Cart" align=top>
<!-- ELSE -->
<!-- IF SHOP_BUYBACKMODE == 1 -->
This shop will buy back the following items:
<!-- ELSE -->
The items listed below are currently in your shopping cart:
<!-- ENDIF -->
<!-- confirm.siml -->
</td></tr>
<tr><td><table>
<tr><td>
<form ACTION="{U_SHOP_ACTION}&mode=checkout" NAME="form" METHOD="post" onsubmit="return ValidateCart(this)">
<script>
ManageCart();
</script>
</td>
</tr>
<tr>
<td align=center>
<!-- IF SHOP_S_MODE == 3 -->
<!-- Order Page -->
<!-- IF SHOP_VIRTUAL == 0 -->
<script>
function CheckForm( theform )
{
var bMissingFields = false;
var strFields = "";
<!-- IF SHOP_BUYBACKMODE == 0 && SHOP_BUYBACKALLOWED == 1 -->
<a href="{U_SHOP_ACTION}&buybackmode=1"><img src="/shop/images/sellback.png" border="0"></a>
<!-- ELSEIF SHOP_BUYBACKMODE == 1 -->
<a href="{U_SHOP_ACTION}&sell=1">Switch to buying mode (basket will be emptied)</a>
<!-- ENDIF -->
<!-- ENDIF -->
</td></tr>
</table>
admin (no pm's please)
No sign of "inventory" in that template!
Symon
Seems my cms_shop.tpl was a little screwy my fault have been playing with it.
Anyway i have copied another working one and inventory is now showing.
admin (no pm's please)
I have to thank you as ever for taking the strain of playing with bleeding edge portals.
it seems inevitable that for the first week or so, anything you build is liable to get trashed as new ideas change the ball game.
The inventory is a case in point it was not something I had thought of and a backwards incompatible change had to be made to keep things "right". In a few months time the change would have to have been made less brutally, but for now I have to take the opportunity to make things the best they can be for the future.
Symon
Your welcome.
I have to play around with them to fine tune the guides i write but this one has been fun but at same time hair pulling, got to say one of the longest time consuming guides i have written.