config->get('group_options',0);
$defaultParams = $this->config->get('default_params');
$productClass = hikashop_get('class.product');
$quantityDisplayType = hikashop_get('type.quantitydisplay');
foreach($this->rows as $i => $row){
if(empty($row->cart_product_quantity)) continue;
if($group && $row->cart_product_option_parent_id) continue;
$productClass->addAlias($row);
?>
params->get('show_cart_image')){ ?>
config->get('thumbnail_x');
$height = $this->config->get('thumbnail_y');
if(!empty($row->images)){
$image = reset($row->images);
$this->image->checkSize($width,$height,$image);
}else{
$image = null;
}
if($image && !$this->config->get('thumbnail')){
echo '';
}else{ ?>
true,'forcesize'=>$this->config->get('image_force_size',true),'scale'=>$this->config->get('image_scale_mode','inside'));
$img = $this->image->getThumbnail(@$image->file_path, array('width' => $width, 'height' => $height), $image_options);
if($img->success) {
echo ' ';
}
?>
|
config->get('checkout_itemid');
if(!empty($checkout_itemid )){
$Itemid = $checkout_itemid ;
}
$url_itemid='';
if(!empty($Itemid)){
$url_itemid='&Itemid='.$Itemid;
} ?>
product_name; ?>
config->get('show_code')) { ?>
product_code; ?>
rows as $j => $optionElement){
if($optionElement->cart_product_option_parent_id != $row->cart_product_id) continue;
if(!empty($optionElement->prices[0])){
$display_item_price = true;
}
}
if($display_item_price){
$this->row=&$row;
$this->unit=true;
echo ' '.strip_tags($this->loadTemplate()).'';
}
}
?>
extraFields['item'])){
foreach($this->extraFields['item'] as $field){
$namekey = $field->field_namekey;
if(empty($row->$namekey) || !strlen($row->$namekey)) continue;
echo ''.$this->fieldsClass->getFieldName($field).': '.$this->fieldsClass->show($field,$row->$namekey).' ';
}
}
$input='';
if($group){
foreach($this->rows as $j => $optionElement){
if($optionElement->cart_product_option_parent_id != $row->cart_product_id) continue;
if(!empty($optionElement->prices[0])){
if(!isset($row->prices[0])){
$row->prices[0] = new stdClass();
$row->prices[0]->price_value=0;
$row->prices[0]->price_value_with_tax=0;
$row->prices[0]->price_currency_id = hikashop_getCurrency();
}
foreach(get_object_vars($row->prices[0]) as $key => $value){
if(is_object($value)){
foreach(get_object_vars($value) as $key2 => $var2){
if(strpos($key2,'price_value')!==false) $row->prices[0]->$key->$key2 +=@$optionElement->prices[0]->$key->$key2;
}
}else{
if(strpos($key,'price_value')!==false) $row->prices[0]->$key+=@$optionElement->prices[0]->$key;
}
}
}
echo ''.$optionElement->product_name;
if(@$optionElement->prices[0]->price_value_with_tax>0){
echo ' ( + ';
$this->row=&$optionElement;
$this->unit=true;
echo strip_tags($this->loadTemplate()).' )';
}
echo ' ';
$input .='document.getElementById(\'product_option_'.$optionElement->cart_product_id.'\').value=qty_field.value;';
if(empty($this->disable_modifications)) echo '';
}
}
$html = ob_get_clean();
if(!empty($html)){
echo ''.$html.' ';
}
?>
|
characteristics as $c){
echo $c->characteristic_name; }
?>
|
row=&$row;
$this->unit=true;
echo $this->loadTemplate();
?>
|
disable_modifications)){
if($row->product_parent_id != 0 && isset($row->main_product_quantity_layout)){
$row->product_quantity_layout = $row->main_product_quantity_layout;
}
if($row->product_quantity_layout == 'show_select' || (empty($row->product_quantity_layout) && $this->config->get('product_quantity_display', '') == 'show_select')){
$min_quantity = $this->row->product_min_per_order;
$max_quantity = $this->row->product_max_per_order;
if($min_quantity == 0)
$min_quantity = 1;
if($max_quantity == 0)
$max_quantity = (int)$min_quantity * 15;
?>
params->get('show_delete',1)){ ?>
cart_product_quantity;
}
?>
|
row=&$row;
$this->unit=false;
echo $this->loadTemplate();
?>
|
params->get('show_cart_image'))
$td = '';
else
$td = '';
$taxes = round($this->full_total->prices[0]->price_value_with_tax-$this->full_total->prices[0]->price_value,$this->currencyHelper->getRounding($this->full_total->prices[0]->price_currency_id));
if(!empty($this->coupon) || !empty($this->shipping) || !empty($this->additional) || bccomp($taxes,0,5)) {
?>
| |
|
params->get('price_with_tax')){
echo $this->currencyHelper->format(@$this->total->prices[0]->price_value_with_tax,@$this->total->prices[0]->price_currency_id);
}else{
echo $this->currencyHelper->format(@$this->total->prices[0]->price_value,@$this->total->prices[0]->price_currency_id);
}
?>
|
coupon)) {
?>
|
params->get('price_with_tax')){
echo $this->currencyHelper->format(@$this->coupon->discount_value_without_tax*-1,@$this->coupon->discount_currency_id);
}else{
echo $this->currencyHelper->format(@$this->coupon->discount_value*-1,@$this->coupon->discount_currency_id);
}
?>
|
shipping)) {
?>
|
value)) {
echo $this->value;
} else {
$shipping_price = null;
foreach($this->shipping as $shipping) {
if(!isset($shipping->shipping_price) && isset($shipping->shipping_price_with_tax) ) {
$shipping->shipping_price = $shipping->shipping_price_with_tax;
}
if(isset($shipping->shipping_price)) {
if($shipping_price === null)
$shipping_price = 0.0;
if(bccomp($taxes,0,5)==0 || !$this->params->get('price_with_tax') || !isset($shipping->shipping_price_with_tax)) {
$shipping_price += $shipping->shipping_price;
} else {
$shipping_price += $shipping->shipping_price_with_tax;
}
}
}
if($shipping_price !== null) {
echo $this->currencyHelper->format($shipping_price, $this->full_total->prices[0]->price_currency_id);
}
}
?>
|
additional)) {
$exclude_additionnal = explode(',', $this->config->get('order_additional_hide', ''));
foreach($this->additional as $k => $additional) {
if(in_array($additional->name, $exclude_additionnal))
continue;
?>
name);
?> |
price_value) || empty($additional->value)) {
if(bccomp($taxes,0,5)==0 || !$this->params->get('price_with_tax')){
echo $this->currencyHelper->format(@$additional->price_value,$additional->price_currency_id);
}else{
echo $this->currencyHelper->format(@$additional->price_value_with_tax,$additional->price_currency_id);
}
} else {
echo $additional->value;
}
?>
|
config->get('detailed_tax_display') && isset($this->full_total->prices[0]->taxes)) {
foreach($this->full_total->prices[0]->taxes as $tax) {
?>
|
currencyHelper->format($tax->tax_amount,$this->full_total->prices[0]->price_currency_id);
?>
|
|
currencyHelper->format($taxes,$this->full_total->prices[0]->price_currency_id);
?>
|
payment) && $this->payment->payment_price != 0) {
?>
|
payment->payment_price) && isset($this->payment->payment_price_with_tax) ) {
if(isset($this->value)) {
echo $this->value;
} else {
$this->payment->payment_price = 0.0;
$this->payment->payment_price_with_tax = 0.0;
}
}
if(isset($this->payment->payment_price)) {
if(bccomp($taxes,0,5)==0 || !$this->params->get('price_with_tax') || !isset($this->payment->payment_price_with_tax) ){
echo $this->currencyHelper->format(@$this->payment->payment_price,$this->full_total->prices[0]->price_currency_id);
}else{
echo $this->currencyHelper->format(@$this->payment->payment_price_with_tax,$this->full_total->prices[0]->price_currency_id);
}
}
?>
|
|
currencyHelper->format($this->full_total->prices[0]->price_value_with_tax,$this->full_total->prices[0]->price_currency_id);
?>
|