Hi - re problem 2 - it does appears on some installs this causes a problem -
can you try the following please
The line that generates problem (line 126th)
are not included by the default Virtuemart. We have put them there, just to hide "address field" if the user hasn't logged in or hasn't provided any address yet. Just to eliminate the unnecessary elements for simplification purposes.
You can eliminate this check, therefore the line 126th won't generate any more problem to you.
OKAY, retrieve your changes in this PHP file:
templates/TEMPLATENAME/html/com_virtuemart/cart/default_pricelist.php
Take the original php file that comes with our VM Template, but instead of replace it with yours (cause i am seeing you have made some modifications on it.)
With the original PHP,
Look at the 124th line and find these lines:
<?php
@$checkIfEmpty == "deneme";
foreach($this->cart->BTaddress['fields'] as $item){
@$checkIfEmpty .= $this->escape($item['value']);
}
if ($checkIfEmpty == "") { ?>
<? } else { ?>
Remove them.
Now look at the 255th lline;
Find this line:
</div>
<?php } ?>
<div id="checkoutbar" class="active"><?php echo JText::_('COM_VIRTUEMART_ORDER_INFO'); ?></div>
<div class="checkout-content-cart">
and change it to this:
</div>
<div id="checkoutbar" class="active"><?php echo JText::_('COM_VIRTUEMART_ORDER_INFO'); ?></div>
<div class="checkout-content-cart">
(basically delete only <?php } ?> )
Okay, now you should't see the invalid argument anymore.
Fatal error
I am not quite sure what might cause an error with that, because that line is also same in original Virtuemart as well. It is not something that we have implemented, but try this:
Find this Line:
echo $this->currencyDisplay->createPriceDiv('salesPrice','COM_VIRTUEMART_PRODUCT_SALESPRICE', $this->cart->pricesUnformatted[$pkey],false,false,$prow->quantity) ?>
And replace it with this:
echo $this->currencyDisplay->createPriceDiv ('salesPrice', '', $this->cart->pricesUnformatted[$pkey], FALSE, FALSE, $prow->quantity);
Please double check all your changes please
If this doesn't solve the problems let me know. (1st error will be gone but we still can't be sure about the 2nd. I might be related to Virtuemart itself, in that case it has nothing to do with our templates ...)
Cheers
The 3rd problem I really don't know what your asking
Cheers