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.
 



       myfreeforum.org Forum Index -> Web page/template Editing
wee2john

VIRTUAL SHOP MOD PROBLEM!!!!

I did the virtual shop mod and it worked but in the HOWTODOIT there is a sort of guide on how to show your inventory. I did that and checked the link:


http://cooklikeapro.myfreeforum.org/inventory.html


The only problem is the items appear even if you haven't bought them yet.

The code in my inventory.html is:

Code:
{MYFF.SHOP mode="inventory"}



Could someone tell me why this isn't working and how to fix it.


Any more details just ask.
Symon

Stop typing your titles in caps .
admin (no pm's please)

double check the source code in the source view some times the quotes in "inventory" get messed up.
wee2john

what am I meantto be looking or if they are messed up and gow do i fix it??
admin (no pm's please)

If there is a problem you will see something like """ in the source view.
wee2john

no don't see that. I see a section in the page source for the whole shop thing:

Spoiler:

Code:
<script type="text/javascript">

//Options for Everyone:
MonetarySymbol        = '&pound;';
DisplayNotice         = 1;;
DisplayShippingColumn = 0;
DisplayShippingRow    = 0;
DisplayTaxRow         = true;
TaxRate               = 0.175;
TaxByRegion           = false;
TaxPrompt             = 'For tax purposes, please select if you are an Arizona resident before continuing';
TaxablePrompt         = 'Arizona Residents';
NonTaxablePrompt      = 'Other States';
MinimumOrder          = 1;
MinimumOrderPrompt    = 'Your order is below our minimum order, please order more before checking out.';

//Payment Processor Options:
PaymentProcessor      = 'virtual';

//Options for Programmers:
OutputItemId          = 'ID_';
OutputItemQuantity    = 'QUANTITY_';
OutputItemPrice       = 'PRICE_';
OutputItemName        = 'NAME_';
OutputItemShipping    = 'SHIPPING_';
OutputItemAddtlInfo   = 'ADDTLINFO_';
OutputOrderSubtotal   = 'SUBTOTAL';
OutputOrderShipping   = 'SHIPPING';
OutputOrderTax        = 'TAX';
OutputOrderTotal      = 'TOTAL';
AppendItemNumToOutput = true;
HiddenFieldsToCheckout = false;

function move()
{
window.location = "inventory.html?component=shop";
}

function confirmClearBasket()
{
   if (confirm("Are you sure you want to empty your shopping basket?"))
   {
      SetCookie ('NumberOrdered', 0, null, '/');
      setTimeout('move()',1);
         
   }
}

</script>

<script type="text/javascript" src="/cart/nopcart.js" ></script>

<table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline" align="center">
<!--BEGIN switch_shop_title -->
   <tr>
        <th colspan="1" width="100%" height="25" class="thTop" nowrap="nowrap"> Cooking Shop</th>
     </tr>
<!--END switch_shop_title -->     


<!-- inventory -->
<tr><td>
<table>

<tr><th>Name</th><th>image</th><th>description<th><th>Price</th>
<th>Buy back price</th>
<tr>
<!-- We loop through the rows and columns, but actually use a new row always --><tr>
<td >
Kitchen Knives</td>
<td><img src="http://cooklikeapro.myfreeforum.org/templates/myff_cooklikeapro1/images/G2951138_M30promomagneticsetwithoutbox.jpg"   width="100"  height="100"  alt="Kitchen Knives" /></td>
<td>
Global kitchen knives</td>
<td>

You own 1 of this item
</td>
<td>
&pound;4,700.00
</td>
<td>
&pound;3000</td>
</tr>
 <tr>
<td >
Pots and Pans</td>
<td><img src="http://cooklikeapro.myfreeforum.org/templates/myff_cooklikeapro1/images/calphaloncookwaresetvd4.jpg"   width="100"  height="100"  alt="Pots and Pans" /></td>
<td>
Cast Iron Pots and Pans.</td>

<td>
&nbsp;
</td>
<td>
&pound;3,525.00
</td>
<td>
&pound;2250</td>
</tr>
 </td>
</tr>
</table>
</td></tr>

<tr><td>

</td></tr>
</table>
</div>

admin (no pm's please)

The inventory page is in fact showing the inventory part of the template.

My guess is that you have not create xprofile fields for each item. Without which what is owned is not tracked.

       myfreeforum.org Forum Index -> Web page/template Editing
Page 1 of 1
Create your own free forum | Buy a domain to use with your forum