cart_type == 'cart') { $convertText = JText::_('CART_TO_WISHLIST'); $displayText = JText::_('DISPLAY_THE_CART'); $displayAllText = JText::_('DISPLAY_THE_CARTS'); $emptyText = JText::_('CART_EMPTY'); } else { $convertText = JText::_('WISHLIST_TO_CART'); $displayText = JText::_('DISPLAY_THE_WISHLIST'); $displayAllText = JText::_('DISPLAY_THE_WISHLISTS'); $emptyText = JText::_('WISHLIST_EMPTY'); } $desc = trim($this->params->get('msg')); if(empty($desc) && $desc != '0') { $this->params->set('msg', $emptyText); $desc = '








';//$emptyText; } if(empty($this->rows)) { if(!empty($desc) || $desc == '0') { echo $this->notice_html; ?>
setLayout('listing_price'); $this->params->set('show_quantity_field', 0); ?>



config->get('print_cart', 0) && JRequest::getVar('tmpl', '') != 'component' && $this->cart_type == 'cart') { ?> params->get('from','display') != 'module') { ?>
notice_html; $row_count = 0; if($this->params->get('small_cart')) { $this->row = $this->total; if($this->params->get('show_cart_quantity', 1)) { $qty = 0; $group = $this->config->get('group_options', 0); foreach($this->rows as $i => $row) { if(empty($row->cart_product_quantity) && $this->cart_type == 'cart') continue; if($group && $row->cart_product_option_parent_id) continue; $qty += $row->cart_product_quantity; } if($qty == 1 && JText::_('X_ITEM_FOR_X') != 'X_ITEM_FOR_X') { $text = JText::sprintf('X_ITEM_FOR_X', $qty, $this->loadTemplate()); } else { $text = JText::sprintf('X_ITEMS_FOR_X', $qty, $this->loadTemplate()); } } else { $text = JText::sprintf('TOTAL_IN_CART_X', $this->loadTemplate()); } if($this->cart_type == 'cart') { ?> params->get('show_cart_delete',1)) { $delete = hikashop_completeLink('product&task=cleancart'); $delete .= (strpos($delete, '?') ? '&' : '?'); ?> clean cart params->get('show_cart_proceed', 1) && $this->cart_type == 'cart' && $this->params->get('from','display') == 'module') { echo $this->cartHelper->displayButton(JText::_('PROCEED_TO_CHECKOUT'),'checkout',$this->params,$this->url_checkout,'this.disabled=true; window.location=\''.$this->url_checkout.'\';return false;'); } } else { ?> cart_type . '_form'; ?>
cart_product_price = true; $group = $this->config->get('group_options',0); $defaultParams = $this->config->get('default_params'); $image_height = $this->config->get('thumbnail_y'); $image_width = $this->config->get('thumbnail_x'); $image_options = array( 'default' => true, 'forcesize' => $this->config->get('image_force_size',true), 'scale' => $this->config->get('image_scale_mode','inside') ); // MON CAMION !! //Combien de produits dans le panier ? $test = 0; $poidtotal = 0; foreach($this->rows as $i => $row) { if(empty($row->cart_product_quantity)) continue; $test++; } //echo "Nombre de produits : ".$test; $ligne = ceil($test/3); //echo '
Lignes : '.$ligne; if($ligne > 2) $hauteur_totale = 410 + ( ($ligne-2) * 150 ); else $hauteur_totale = 410; //$hauteur_prixtotal = $hauteur_totale - 220; $hauteur_chargement = $ligne * 150; //echo '
Chargement : '.$hauteur_chargement; //echo '
Hauteur totale : '.$hauteur_totale; $top_chargement=$hauteur_totale-107-($hauteur_chargement); ?>
rows as $i => $row) { if(empty($row->cart_product_quantity) || @$row->hide == 1) continue; if($group && $row->cart_product_option_parent_id) continue; echo '
'; $this->productClass->addAlias($row); $input = ''; // IMAGE DU PRODUIT if(@$this->params->get('image_in_cart')) { $img = $this->image->getThumbnail(@$row->images[0]->file_path, array('width' => $image_width, 'height' => $image_height), $image_options); if($img->success) echo '
'.$this->escape(@$row->images[0]->file_name).'
'; // QUANTITÉ echo '
'; if(empty($session)) $session = new stdClass(); $session->cart_id = $this->app->getUserState( HIKASHOP_COMPONENT.'.'.$this->cart_type.'_id', 0, 'int' ); if($row->product_parent_id != 0 && isset($row->main_product_quantity_layout)) $row->product_quantity_layout = $row->main_product_quantity_layout; if($this->element->cart_id == $session->cart_id && $this->params->get('from','display') != 'module') { if($row->product_quantity_layout == 'show_select' || (empty($this->row->product_quantity_layout) && $this->config->get('product_quantity_display', '') == 'show_select')) { $min_quantity = $row->product_min_per_order; $max_quantity = $row->product_max_per_order; if($min_quantity == 0) $min_quantity = 1; if($max_quantity == 0) $max_quantity = (int)$min_quantity * 15; ?> product_quantity_layout == 'show_select' || (empty($row->product_quantity_layout) && $this->config->get('product_quantity_display', '') == 'show_select')) { $min_quantity = $row->product_min_per_order; $max_quantity = $row->product_max_per_order; if($min_quantity == 0) $min_quantity = 1; if($max_quantity == 0) $max_quantity = (int)$min_quantity * 15; ?> row->unitprice,2,strlen($this->row->unitprice)); //if ($unite == 'unité'){ $unite = 'unit.';} echo ' '.$unite; ?> params->get('show_delete',1) && $this->params->get('from','display') != 'module'){ ?> '; // BOUTON SUPPRIMER echo '
'; if($this->params->get('show_cart_delete', 1)) { ?> <?php echo JText::_('HIKA_DELETE'); ?> '; // PRIX DU PRODUIT echo '
'; if($this->params->get('show_price', 1)) { $this->row=&$row; $this->unit=false; echo $this->loadTemplate(); } echo '
'; $soustotal += $row->prices[0]->price_value; $poidtotal += intval($row->product_weight * $row->cart_product_quantity); // TESTS //echo $row->cart_product_quantity; //echo ' '.$row->prices[0]->price_value; //echo ' '.$row->product_weight; //FIN FOREACH } echo '
'; // DIV PALETTE $pos_top_palette = $pos_top + 133; $pos_left_palette = $pos_left + 8 ; echo '
'; if ($pos_left >= 150)$pos_left-=145; else { $pos_left = 295; $pos_top-=150; } $k = 1 - $k; } ?>
Sous total : € TTC
Poids total : kg
Livraison (plus d'infos): = 1 && $poidtotal <= 350) : echo '95,17 €'; $prixlivraison=95.17; break; case ($poidtotal > 350 && $poidtotal <= 700) : echo '150,48 €'; $prixlivraison=150.48; break; case ($poidtotal > 700 && $poidtotal <= 1400) : echo '242,72 €'; $prixlivraison=242.72; break; case ($poidtotal > 1400 && $poidtotal <= 2100) : echo '300,74 €'; $prixlivraison=300.74; break; case ($poidtotal > 2100 && $poidtotal <= 2800) : echo '347,56 €'; $prixlivraison=347.56; break; case ($poidtotal > 2800 && $poidtotal <= 3500) : echo '396,43 €'; $prixlivraison=396.43; break; case ($poidtotal > 3500 && $poidtotal <= 4200) : echo '453,77 €'; $prixlivraison=453.77; break; case ($poidtotal > 4200 && $poidtotal <= 4900) : echo '471,36 €'; $prixlivraison=471.36; break; case ($poidtotal > 4900 && $poidtotal <= 5600) : echo '484,85 €'; $prixlivraison=484.85; break; case ($poidtotal > 5600 && $poidtotal <= 6300) : echo '503,04 €'; $prixlivraison=503.04; break; case ($poidtotal > 6300 && $poidtotal <= 7000) : echo '521,98 €'; $prixlivraison=521.98; break; case ($poidtotal > 7000 && $poidtotal <= 7700) : echo '539,98 €'; $prixlivraison=539.98; break; case ($poidtotal > 7700 && $poidtotal <= 8400) : echo '557,98 €'; $prixlivraison=557.98; break; case ($poidtotal > 8400 && $poidtotal <= 9100) : echo '575,98 €'; $prixlivraison=575.98; break; case ($poidtotal > 9100 && $poidtotal <= 9800) : echo '593,98 €'; $prixlivraison=593.98; break; case ($poidtotal > 9800 && $poidtotal <= 10500) : echo '611,98 €'; $prixlivraison=611.98; break; case ($poidtotal > 10500 && $poidtotal <= 11200) : echo '629,98 €'; $prixlivraison=629.98; break; case ($poidtotal > 11200 && $poidtotal <= 11900) : echo '647,98 €'; $prixlivraison=647.98; break; case ($poidtotal > 11900 && $poidtotal <= 12600) : echo '665,98 €'; $prixlivraison=665.98; break; case ($poidtotal > 12600 && $poidtotal <= 13300) : echo '683,98 €'; $prixlivraison=683.98; break; case ($poidtotal > 13300 && $poidtotal <= 14000) : echo '701,98 €'; $prixlivraison=701.98; break; case ($poidtotal > 14000) : echo '
Le poids total de votre commande excède 14T.
Merci de nous contacter afin de trouver ensemble une solution adaptée à vos besoins
'; break; } } echo '
'; /*if(isset($this->value)) { echo 'test'.$this->value; } else { echo 'rer'; $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 'hummm'.$this->currencyHelper->format($shipping_price, $this->full_total->prices[0]->price_currency_id); } }*/ ?> params->get('show_shipping', 0) && !empty($this->element->shipping)) { $shipping_price = null; foreach($this->element->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(!$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; } } } $prixlivraison = $shipping_price; if($shipping_price !== null) { $shipping_price = $this->currencyClass->format($shipping_price, $this->total->prices[0]->price_currency_id); } if($shipping_price) { switch($row_count) { case 0: case 1: echo $shipping_price; break; default: $colspan = $row_count - 1; if($this->params->get('show_cart_delete', 1)) $colspan--; if($colspan > 0) { echo JText::_('HIKASHOP_SHIPPING'); } echo $shipping_price; if($this->params->get('show_cart_delete', 1)) { } break; } } }*/ $prixtotal = $soustotal + $prixlivraison; if ($poidtotal <= 14000) { echo '
Total : '.$prixtotal.' € TTC'; } ?>

params->get('show_cart_quantity', 1)) { ?> cart_type == 'cart' && $this->params->get('from', 'display') == 'module') { if($this->params->get('show_cart_proceed', 1) && $poidtotal <= 14000) echo $this->cartHelper->displayButton(JText::_('PROCEED_TO_CHECKOUT'), 'checkout', $this->params, $this->url_checkout, 'this.disabled = true;window.location.href = \''.$this->url_checkout.';return false;'); } else { ?>
params->get('from', 'display') != 'module') { echo $this->cartHelper->displayButton($convertText, 'wishlist', $this->params, hikashop_completeLink('cart&task=convert' . $this->url_itemid . '&cart_type='.$this->cart_type), 'window.location.href = \''.hikashop_completeLink('cart&task=convert'.$this->url_itemid . '&cart_type='.$this->cart_type).'\';return false;'); } else { echo $this->cartHelper->displayButton($displayText, 'wishlist', $this->params, hikashop_completeLink('cart&task=showcart&cart_id=' . $this->element->cart_id . $this->cart_itemid . '&cart_type='.$this->cart_type), 'window.location.href = \''.hikashop_completeLink('cart&task=showcart&cart_id='.$this->element->cart_id . $this->cart_itemid . '&cart_type='.$this->cart_type).'\';return false;'); } ?>
params->get('id', 0); }