osCommerce / oscommerce2

osCommerce Online Merchant v2.x
http://www.oscommerce.com
MIT License
281 stars 222 forks source link

Order total shipping class errors when product are virtuals #660

Open tgely opened 4 years ago

tgely commented 4 years ago

https://github.com/osCommerce/oscommerce2/blob/de0e97d15d43ac6a9a6cfb2847134a82a0148f2b/catalog/includes/modules/order_total/ot_shipping.php#L48-L65

PHP Notice:  Undefined offset: 1 in \includes\modules\order_total\ot_shipping.php on line 60
PHP Stack trace:
PHP   1. {main}() \checkout_confirmation.php:0
PHP   2. order_total->process() \checkout_confirmation.php:96
PHP   3. ot_shipping->process() \includes\classes\order_total.php:54
PHP Notice:  Undefined index:  in \includes\modules\order_total\ot_shipping.php on line 62
PHP Stack trace:
PHP   1. {main}() \website\checkout_confirmation.php:0
PHP   2. order_total->process() \website\checkout_confirmation.php:96
PHP   3. ot_shipping->process() \website\includes\classes\order_total.php:54