News:

Support the VirtueMart project and become a member

Main Menu

[FIXED] Undefined variable

Started by mauri, December 02, 2008, 22:22:00 PM

Previous topic - Next topic

mauri

Nightly build 1.1.2 revision 1574. Joomla 1.5.8.
My server log is full of these.
QuoteUndefined variable: discount_word in /administrator/components/com_virtuemart/html/ro_basket.php on line 271
Undefined variable: payment_discount_display in /administrator/components/com_virtuemart/html/ro_basket.php on line 274
They come when shopper select Payment Method in checkout and paymentmethod have no payment_discount or fee.

Fix, define these variables before:
If you add two rows after /* DISCOUNT */ in:
/administrator/components/com_virtuemart/html/ro_basket.php
162   /* DISCOUNT */
163 $discount_word = ' ';
164 $payment_discount_display = '0';
VirtueMart,(Joomla-phpShop, mambo-phpShop) since 2004-03-11


mauri

Error reporting is only in developing server.
I'm a developer and would like to see all the warnings, errors and notifies so that I can make the site most pure.  ;D
VirtueMart,(Joomla-phpShop, mambo-phpShop) since 2004-03-11