When I try to add any kind of discount, I get this error:
Parse error: syntax error, unexpected T_VARIABLE in /homepages/9/d320511903/htdocs/administrator/components/com_hikashop/classes/discount.php on line 265
This is line 265:
$coupon2 = clone $coupon1;
And to put it in context:
$totalprice += $totaldiscount;
$totalprice_with_tax += $totaldiscount_with_tax;
$coupon2 = clone $coupon1;
$coupon2->total = clone $coupon1->total;
$coupon2->total->prices = $this->copyStandardPrices($coupon1->total->prices);
switch ($discountmode) {
case 2:
$coupon2->total->prices[0]->price_value_with_tax = $totalprice_with_tax;
$coupon2->total->prices[0]->price_value = $totalprice;
$currency->addCoupon($coupon2->total,$coupon2);
$coupon2->total->prices[0]->price_value_without_discount_with_tax -= $totaldiscount_with_tax;
$coupon2->total->prices[0]->price_value_without_discount -= $totaldiscount;
$coupon2->discount_percent_amount_calculated_without_tax -= $totaldiscount;
$coupon2->discount_value_without_tax -= $totaldiscount;
$coupon2->discount_percent_amount_calculated -= $totaldiscount;
$coupon2->discount_value -= $totaldiscount;
$coupon2->discount_flat_amount = $coupon2->discount_value;
break;
default:
$coupon2->total->prices[0]->price_value_with_tax = $totalnondiscount_with_tax;
$coupon2->total->prices[0]->price_value = $totalnondiscount;
$currency->addCoupon($coupon2->total,$coupon2);
break;
}
The cart works pretty well otherwise. When I first set it up, I was getting parse errors due to SEF URL issues. I followed directions found on the forum and got it working. In Joomla Global Configuration, I have SEF URLs on and Apache mod_rewrite on; in Hikashop I have short URLs on. I experiemented in turning these off and it didn't change anything. I also tried removing some custom language terms and that didn't help either. (Kind of grasping at straws…)
Is this likely to be related to the SEF URL issue? Or is it something else? I've been able to add products, and the shop is nearly finished.