Hi,
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 with 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 see the 1st error anymore.
About the second error message,
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) ?>
<?php
And replace it with this:
echo $this->currencyDisplay->createPriceDiv ('salesPrice', '', $this->cart->pricesUnformatted[$pkey], FALSE, FALSE, $prow->quantity);
(while replacing, make sure what you are deleting and what you are adding instead. Select exactly the same line as i mentioned here, and paste exactly what i am telling you here.)
If this doesn't solve the problems let me know. (i am sure the 1error will be gone but i still can't be sure about the 2nd. I might be related to Virtuemart itself, in that case i will have nothing to do with it...)
Regards.
Forum Support.