Hi Andy,
first - what has changed? As you say it was all working fine... code can't rewrite its-self so something has changed -
2nd .
the warning
it is this foreach($this->cart->BTaddress as $item){ which is just checking for a bill to address
to get rid of the warning you can just add
error_reporting(E_ERROR); to the top of the file to get rid of it.
But I am confused as if you did the changes in
www.flexiblewebdesign.com/forum-virtuemart-2-template-puremart-support/636-error-with-createpricediv-defaultpricelistphp then that foreach doesn't exist anymore!
What have you changed? Why have the line numbers increased if you are supposed to have deleted lines?
the fatal error
the boss - as he explained - is surprised by this as it is std. VM code - nothing is changed in our template in this area.
He asked that guy to try removing the 2nd argument. But you say this didn't work..
Can you echo out some o the objects to see if they are missing? e.g. before your line 286
print 'Debug Line '.__LINE__.' arg3 <pre>'; print_r ($this->cart->pricesUnformatted[$pkey]); print "</pre><br />\n";
print 'Debug Line '.__LINE__.' arg6 <pre>'; print_r ($prow->quantity); print "</pre><br />\n";
to see if there is an object missing