VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: mark R on November 19, 2014, 22:42:48 PM

Title: Multiple Prices - ordering
Post by: mark R on November 19, 2014, 22:42:48 PM
Hi All,

I am trying to set up a sales price which is only valid to a specific date.

I have set this up on my localhost (dev platform),but when i try to set up my host(live) it doesnt work the same.

I have noticed the following errors in the admin log :- could this be related

Undefined offset: 0 in /administrator/components/com_virtuemart/models/product.php on line 1682
Undefined offset: 0 in /administrator/components/com_virtuemart/models/product.php on line 1683
Undefined offset: 0 in /administrator/components/com_virtuemart/models/product.php on line 1684
Undefined offset: 0 in /administrator/components/com_virtuemart/models/product.php on line 1685
Undefined offset: 0 in /administrator/components/com_virtuemart/models/product.php on line 1686

product.php
line 1682 $pricesToStore['override'] = (int)$data['mprices']['override'][$k];
line 1683 $pricesToStore['virtuemart_shoppergroup_id'] = (int)$data['mprices']['virtuemart_shoppergroup_id'][$k];
line 1684 $pricesToStore['product_tax_id'] = (int)$data['mprices']['product_tax_id'][$k];
line 1685 $pricesToStore['product_discount_id'] = (int)$data['mprices']['product_discount_id'][$k];
line 1686 $pricesToStore['product_currency'] = (int)$data['mprices']['product_currency'][$k];

Any ideas would be much appreciated.

Many thanks
Mark
Title: Re: Multiple Prices - ordering
Post by: mark R on November 20, 2014, 21:02:44 PM
Sorry forgot to mention I am running VM 2.6.6 (php 5.3.29)
Title: Re: Multiple Prices - ordering
Post by: Milbo on November 23, 2014, 13:17:33 PM
update to most recent vm2.6