Hello;

I am trying to copy the code that determines whether to show sale or list
price from the "item" screen to both the "search_results" and "Category"
(also known as "Departments") screens.  I want to use that code to display
the correct price on both of those screens.  I have copied the code itself .
And added an incluse for "item_functions",  what else do I need to add or
change to make this work?  Below is the code I am using.

Shawn

  for($index = 0; $index < count($Item["SKU"]["ID"]); $index++)
 if($Item["SKU"]["SalePrice"][$index] > 0)
 {
 print(" " . formatMoney($Item["SKU"]["SalePrice"][$index]));
 }
 else
 {
 print(" " .  formatMoney($Item["SKU"]["ListPrice"][$index]));
 }
 if($Item["SKU"]["Shipping"][$index] > 0)
 {
 print(" (" . formatMoney($Item["SKU"]["Shipping"][$index]) . ")");
 }



------------------------------------------------------------
To subscribe:    [EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Site:            http://www.working-dogs.com/freetrade/
Problems?:       [EMAIL PROTECTED]

Reply via email to