0 Пользователей и 1 Гость просматривают эту тему.
  • 3 Ответов
  • 1263 Просмотров
*

__romka_

  • Новичок
  • 22
  • 0 / 0
Joomla 2.5.6, VM 2.0.6., VM AIO 2.0.6

« Последнее редактирование: 28.04.2014, 21:30:23 от __romka_ »
*

jumlancerCom

  • Захожу иногда
  • 52
  • 2 / 1
Re: В корзине не отображается "ИТОГО"
« Ответ #1 : 20.05.2014, 22:33:26 »
Покажите свой components/com_virtuemart/views/cart/tmpl/default_pricelist.php
Разработка и доработка сайтов (HTML/CSS, JS/jQuery, PHP/MySQL, Joomla/Virtuemart)
*

__romka_

  • Новичок
  • 22
  • 0 / 0
Re: В корзине не отображается "ИТОГО"
« Ответ #2 : 23.05.2014, 20:23:19 »
Код
<?php defined('_JEXEC') or die('Restricted access');
/**
 *
 * Layout for the shopping cart
 *
 * @package VirtueMart
 * @subpackage Cart
 * @author Max Milbers
 * @author Patrick Kohl
 * @link http://www.virtuemart.net
 * @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved.
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
 * VirtueMart is free software. This version may have been modified pursuant
 * to the GNU General Public License, and as distributed it includes or
 * is derivative of works licensed under the GNU General Public License or
 * other free or open source software licenses.
 *
 */

// Check to ensure this file is included in Joomla!

// jimport( 'joomla.application.component.view');
// $viewEscape = new JView();
// $viewEscape->setEscape('htmlspecialchars');

?>
<div class="billto-shipto" style="display:none;">
<div class="width50 floatleft">

<span><span class="vmicon vm2-billto-icon"></span>
<?php echo JText::_('COM_VIRTUEMART_USER_FORM_BILLTO_LBL'); ?></span>
<?php // Output Bill To Address ?>
<div class="output-billto">
<?php

foreach($this->cart->BTaddress['fields'] as $item){
if(!empty($item['value'])){
if($item['name']==='agreed'){
$item['value'] =  ($item['value']===0)? JText::_('COM_VIRTUEMART_USER_FORM_BILLTO_TOS_NO'):JText::_('COM_VIRTUEMART_USER_FORM_BILLTO_TOS_YES');
}
?><!-- span class="titles"><?php echo $item['title'] ?></span -->
<span class="values vm2<?php echo '-'.$item['name'] ?>" ><?php echo $this->escape($item['value'])?></span>
<?php if ($item['name'] != 'title' and $item['name'] != 'first_name' and $item['name'] != 'middle_name' and $item['name'] != 'zip') { ?>
<br class="clear" />
<?php
}
}
} ?>
<div class="clear"></div>
</div>

<a class="details" href="<?php echo JRoute::_('index.php?option=com_virtuemart&view=user&task=editaddresscart&addrtype=BT',$this->useXHTML,$this->useSSL)?>">
<?php echo JText::_('COM_VIRTUEMART_USER_FORM_EDIT_BILLTO_LBL'); ?>
</a>

<input type="hidden" name="billto" value="<?php echo $this->cart->lists['billTo']; ?>"/>
</div>

<div class="width50 floatleft">

<span><span class="vmicon vm2-shipto-icon"></span>
<?php echo JText::_('COM_VIRTUEMART_USER_FORM_SHIPTO_LBL'); ?></span>
<?php // Output Bill To Address ?>
<div class="output-shipto">
<?php
if(empty($this->cart->STaddress['fields'])){
echo JText::sprintf('COM_VIRTUEMART_USER_FORM_EDIT_BILLTO_EXPLAIN',JText::_('COM_VIRTUEMART_USER_FORM_ADD_SHIPTO_LBL') );
} else {
if(!class_exists('VmHtml'))require(JPATH_VM_ADMINISTRATOR.DS.'helpers'.DS.'html.php');
echo JText::_('COM_VIRTUEMART_USER_FORM_ST_SAME_AS_BT'). VmHtml::checkbox('STsameAsBT',$this->cart->STsameAsBT).'<br />';
foreach($this->cart->STaddress['fields'] as $item){
if(!empty($item['value'])){ ?>
<!-- <span class="titles"><?php echo $item['title'] ?></span> -->
<?php
if ($item['name'] == 'first_name' || $item['name'] == 'middle_name' || $item['name'] == 'zip') { ?>
<span class="values<?php echo '-'.$item['name'] ?>" ><?php echo $this->escape($item['value'])?></span>
<?php } else { ?>
<span class="values" ><?php echo $this->escape($item['value'])?></span>
<br class="clear" />
<?php
}
}
}
}
  ?>
<div class="clear"></div>
</div>
<?php if(!isset($this->cart->lists['current_id'])) $this->cart->lists['current_id'] = 0; ?>
<a class="details" href="<?php echo JRoute::_('index.php?option=com_virtuemart&view=user&task=editaddresscart&addrtype=ST&cid[]='.$this->cart->lists['current_id'],$this->useXHTML,$this->useSSL)?>">
<?php echo JText::_('COM_VIRTUEMART_USER_FORM_ADD_SHIPTO_LBL'); ?>
</a>

</div>

<div class="clear"></div>
</div>

<fieldset>
<table
class="cart-summary"
cellspacing="0"
cellpadding="0"
border="0"
width="100%">
<tr>
<th align="left"><?php echo JText::_('COM_VIRTUEMART_CART_NAME')?></th>
<th align="left"><?php echo JText::_('COM_VIRTUEMART_CART_SKU')?></th>
<th
align="center"
width="60px"><?php echo JText::_('COM_VIRTUEMART_CART_PRICE')?></th>
<th
align="right"
width="140px"><?php// echo JText::_('COM_VIRTUEMART_CART_QUANTITY')?>
<?php// echo JText::_('COM_VIRTUEMART_CART_ACTION')?></th>


                                        <?php if ( VmConfig::get('show_tax')) { ?>
                                <th align="right" width="60px"><?php//    echo "<span  class='priceColor2'>".JText::_('COM_VIRTUEMART_CART_SUBTOTAL_TAX_AMOUNT')?></th>
<?php } ?>
                                <th align="right" width="60px"><?php // echo "<span  class='priceColor2'>".JText::_('COM_VIRTUEMART_CART_SUBTOTAL_DISCOUNT_AMOUNT')?></th>
<th align="right" width="70px"><?php echo JText::_('COM_VIRTUEMART_CART_TOTAL')?></th>
</tr>



<?php
$i=1;
// vmdebug('$this->cart->products',$this->cart->products);
foreach( $this->cart->products as $pkey =>$prow ) { ?>
<tr valign="top" class="sectiontableentry<?php echo $i ?>">
<td align="left" >
<?php if ( $prow->virtuemart_media_id) {  ?>
<span class="cart-images">
<?php
if(!empty($prow->image)) echo $prow->image->displayMediaThumb('',false);
?>
</span>
<?php } ?>
<?php echo JHTML::link($prow->url, $prow->product_name).$prow->customfields; ?>

</td>
<td align="left" ><?php  echo $prow->product_sku ?></td>
<td align="center" >
<?php
// vmdebug('$this->cart->pricesUnformatted[$pkey]',$this->cart->pricesUnformatted[$pkey]['priceBeforeTax']);
echo $this->currencyDisplay->createPriceDiv('basePrice','', $this->cart->pricesUnformatted[$pkey],false);
// echo $prow->salesPrice ;
?>
</td>
<td align="right" ><form action="<?php echo JRoute::_('index.php'); ?>" method="post" class="inline">
<input type="hidden" name="option" value="com_virtuemart" />
                                <input type="text" style="display:none;" title="<?php echo  JText::_('COM_VIRTUEMART_CART_UPDATE')?>" class="inputbox" size="3" maxlength="4" name="quantity" value="1<?php// echo $prow->quantity ?>" />
<input type="hidden" name="view" value="cart" />
<input type="hidden" name="task" value="update" />
<input type="hidden" name="cart_virtuemart_product_id" value="<?php echo $prow->cart_item_id  ?>" />
<input type="submit" style="display:none;" class="vmicon vm2-add_quantity_cart" name="update" title="<?php echo  JText::_('COM_VIRTUEMART_CART_UPDATE')?>" align="middle" value=" "/>
  </form>
<a class="vmicon vm2-remove_from_cart" title="<?php echo JText::_('COM_VIRTUEMART_CART_DELETE')?>" align="middle" href="<?php echo JRoute::_('index.php?option=com_virtuemart&view=cart&task=delete&cart_virtuemart_product_id='.$prow->cart_item_id  )?>"> </a>
</td>

<?php if ( VmConfig::get('show_tax')) { ?>
<td align="right"><?php echo "<span class='priceColor2'>".$this->currencyDisplay->createPriceDiv('taxAmount','', $this->cart->pricesUnformatted[$pkey],false,false,$prow->quantity)."</span>" ?></td>
                                <?php } ?>
<td align="right"><?php echo "<span class='priceColor2'>".$this->currencyDisplay->createPriceDiv('discountAmount','', $this->cart->pricesUnformatted[$pkey],false,false,$prow->quantity)."</span>" ?></td>
<td colspan="1" align="right">
<?php
if (VmConfig::get('checkout_show_origprice',1) && !empty($this->cart->pricesUnformatted[$pkey]['basePriceWithTax']) && $this->cart->pricesUnformatted[$pkey]['basePriceWithTax'] != $this->cart->pricesUnformatted[$pkey]['salesPrice'] ) {
echo '<span class="line-through">'.$this->currencyDisplay->createPriceDiv('basePriceWithTax','', $this->cart->pricesUnformatted[$pkey],true,false,$prow->quantity).'</span><br />' ;
}
echo $this->currencyDisplay->createPriceDiv('salesPrice','', $this->cart->pricesUnformatted[$pkey],false,false,$prow->quantity);
                               // echo $this->cart->pricesUnformatted[$pkey]['basePrice'];
                               
                                        ?>
                               
                                </td>
                               
                        </tr>
<?php
$i = 1 ? 2 : 1;
} ?>
<!--Begin of SubTotal, Tax, Shipment, Coupon Discount and Total listing -->
               


<?php
foreach($this->cart->cartData['DBTaxRulesBill'] as $rule){ ?>
<tr class="sectiontableentry<?php $i ?>">
<td colspan="4" align="right"><?php echo $rule['calc_name'] ?> </td>

                                   <?php if ( VmConfig::get('show_tax')) { ?>
<td align="right"> </td>
                                <?php } ?>
<td align="right"><?php echo $this->currencyDisplay->createPriceDiv($rule['virtuemart_calc_id'].'Diff','', $this->cart->pricesUnformatted[$rule['virtuemart_calc_id'].'Diff'],false); ?></td>
<td align="right"><?php echo $this->currencyDisplay->createPriceDiv($rule['virtuemart_calc_id'].'Diff','', $this->cart->pricesUnformatted[$rule['virtuemart_calc_id'].'Diff'],false); ?> </td>
</tr>
<?php
if($i) $i=1; else $i=0;
} ?>

<?php

foreach($this->cart->cartData['taxRulesBill'] as $rule){ ?>
<tr class="sectiontableentry<?php $i ?>">
<td colspan="4" align="right"><?php echo $rule['calc_name'] ?> </td>
<?php if ( VmConfig::get('show_tax')) { ?>
<td align="right"><?php echo $this->currencyDisplay->createPriceDiv($rule['virtuemart_calc_id'].'Diff','', $this->cart->pricesUnformatted[$rule['virtuemart_calc_id'].'Diff'],false); ?> </td>
<?php } ?>
<td align="right"><?php ?></td>
<td align="right"><?php echo $this->currencyDisplay->createPriceDiv($rule['virtuemart_calc_id'].'Diff','', $this->cart->pricesUnformatted[$rule['virtuemart_calc_id'].'Diff'],false); ?> </td>
</tr>
<?php
if($i) $i=1; else $i=0;
}

foreach($this->cart->cartData['DATaxRulesBill'] as $rule){ ?>
<tr class="sectiontableentry<?php $i ?>">
<td colspan="4" align="right"><?php echo   $rule['calc_name'] ?> </td>

                                     <?php if ( VmConfig::get('show_tax')) { ?>
<td align="right"> </td>

                                <?php } ?>
<td align="right"><?php echo $this->currencyDisplay->createPriceDiv($rule['virtuemart_calc_id'].'Diff','', $this->cart->pricesUnformatted[$rule['virtuemart_calc_id'].'Diff'],false); ?>  </td>
<td align="right"><?php echo $this->currencyDisplay->createPriceDiv($rule['virtuemart_calc_id'].'Diff','', $this->cart->pricesUnformatted[$rule['virtuemart_calc_id'].'Diff'],false); ?> </td>
</tr>
<?php
if($i) $i=1; else $i=0;
} ?>






  <tr class="sectiontableentry2">
<td colspan="4" align="right"><?php echo JText::_('COM_VIRTUEMART_CART_TOTAL')?>: </td>

                        <?php if ( VmConfig::get('show_tax')) { ?>
<td align="right"> <?php echo "<span  class='priceColor2'>".$this->currencyDisplay->createPriceDiv('billTaxAmount','', $this->cart->pricesUnformatted['billTaxAmount'],false)."</span>" ?> </td>
                        <?php } ?>
<td align="right"> <?php echo "<span  class='priceColor2'>".$this->currencyDisplay->createPriceDiv('billDiscountAmount','', $this->cart->pricesUnformatted['billDiscountAmount'],false)."</span>" ?> </td>
<td align="right"><strong><?php echo $this->currencyDisplay->createPriceDiv('billTotal','', $this->cart->pricesUnformatted['billTotal'],false); ?></strong></td>
  </tr>
    <?php
    if ( $this->totalInPaymentCurrency) {
?>

       <tr class="sectiontableentry2">
    <td colspan="4" align="right"><?php echo JText::_('COM_VIRTUEMART_CART_TOTAL_PAYMENT')?>: </td>

    <?php if ( VmConfig::get('show_tax')) { ?>
    <td align="right">  </td>
    <?php } ?>
    <td align="right">  </td>
    <td align="right"><strong><?php echo $this->totalInPaymentCurrency;   ?></strong></td>
      </tr>
      <?php
    }
    ?>


</table>
</fieldset>

*

jumlancerCom

  • Захожу иногда
  • 52
  • 2 / 1
Re: В корзине не отображается "ИТОГО"
« Ответ #3 : 23.05.2014, 23:05:12 »
Попробуйте в строке 242 поменять ->pricesUnformatted на ->cartPrices
Разработка и доработка сайтов (HTML/CSS, JS/jQuery, PHP/MySQL, Joomla/Virtuemart)
Чтобы оставить сообщение,
Вам необходимо Войти или Зарегистрироваться
 

Не отображается recaptca v2

Автор lexxbry

Ответов: 8
Просмотров: 178
Последний ответ 29.08.2018, 21:53:00
от ProtectYourSite
Как вывести в корзине

Автор nden

Ответов: 1
Просмотров: 241
Последний ответ 18.01.2018, 13:14:48
от ElenaD
Суммарный вес заказа в корзине VirtueMart 3

Автор lalalag

Ответов: 1
Просмотров: 387
Последний ответ 13.03.2017, 13:52:49
от WooSuuP
Вывод в карточке товаров - количество этого товара в корзине

Автор gartes

Ответов: 0
Просмотров: 642
Последний ответ 26.11.2016, 21:55:23
от gartes
Отображение выбранного изображения товара в корзине VirtueMart

Автор Skydriver

Ответов: 5
Просмотров: 1202
Последний ответ 22.03.2016, 12:15:08
от vdoffice