Follow along with the video below to see how to install our site as a web app on your home screen.
Примечание: This feature may not be available in some browsers.
<?php if ( VmConfig::get('show_tax')) { $colspan=3; } else { $colspan=2; } ?>
<tr>
<td colspan="4"> </td>
<td colspan="<?php echo $colspan ?>"><hr /></td>
</tr>
<tr class="sectiontableentry1">
<td colspan="4" align="right"><?php echo JText::_('COM_VIRTUEMART_ORDER_PRINT_PRODUCT_PRICES_TOTAL'); ?></td>
<?php if ( VmConfig::get('show_tax')) { ?>
<td align="right"><?php echo "<span style='color:gray'>".$this->cart->prices['taxAmount']."</span>" ?></td>
<?php } ?>
<td align="right"><?php echo "<span style='color:gray'>".$this->cart->prices['discountAmount']."</span>" ?></td>
<td align="right"><?php echo $this->cart->prices['salesPrice'] ?></td>
</tr>
<?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->cart->prices[$rule['virtuemart_calc_id'].'Diff']; ?> </td>
<td align="right"><?php echo $this->cart->prices[$rule['virtuemart_calc_id'].'Diff']; ?> </td>
</tr>
<?php
if($i) $i=1; else $i=0;
} ?>
<?php
if (VmConfig::get('coupons_enable')) {
?>
<tr class="sectiontableentry2">
<td colspan="4" align="left">
<?php if(!empty($this->layoutName) && $this->layoutName=='default') {
// echo JHTML::_('link', JRoute::_('index.php?view=cart&task=edit_coupon',$this->useXHTML,$this->useSSL), JText::_('COM_VIRTUEMART_CART_EDIT_COUPON'));
echo $this->loadTemplate('coupon');
}
?>
<?php if (!empty($this->cart->cartData['couponCode'])) { ?>
<?php
echo $this->cart->cartData['couponCode'] ;
echo $this->cart->cartData['couponDescr'] ? (' (' . $this->cart->cartData['couponDescr'] . ')' ): '';
?>
</td>
<?php if ( VmConfig::get('show_tax')) { ?>
<td align="right"><?php echo $this->cart->prices['couponTax']; ?> </td>
<?php } ?>
<td align="right"> </td>
<td align="right"><?php echo $this->cart->prices['salesPriceCoupon']; ?> </td>
<?php } else { ?>
<td colspan="6" align="left"> </td>
<?php }
?>
</tr>
<?php } ?>
<tr class="sectiontableentry1">
<?php if (!$this->cart->automaticSelectedShipment) { ?>
<?php /* <td colspan="2" align="right"><?php echo JText::_('COM_VIRTUEMART_ORDER_PRINT_SHIPPING'); ?> </td> */?>
<td colspan="4" align="left">
<?php echo $this->cart->cartData['shipmentName']; ?>
<br />
<?php
if(!empty($this->layoutName) && $this->layoutName=='default' && !$this->cart->automaticSelectedShipment )
echo JHTML::_('link', JRoute::_('index.php?view=cart&task=edit_shipment',$this->useXHTML,$this->useSSL), $this->select_shipment_text,'class=""');
else {
JText::_('COM_VIRTUEMART_CART_SHIPPING');
}
} else { ?>
<td colspan="4" align="left">
<?php echo $this->cart->cartData['shipmentName']; ?>
</td>
<?php } ?>
<?php if ( VmConfig::get('show_tax')) { ?>
<td align="right"><?php echo "<span style='color:gray'>".$this->cart->prices['shipmentTax']."</span>"; ?> </td>
<?php } ?>
<td></td>
<td align="right"><?php echo $this->cart->prices['salesPriceShipment']; ?> </td>
</tr>
<tr class="sectiontableentry1">
<?php if (!$this->cart->automaticSelectedPayment) { ?>
<td colspan="4" align="left">
<?php echo $this->cart->cartData['paymentName']; ?>
<br />
<?php if(!empty($this->layoutName) && $this->layoutName=='default') echo JHTML::_('link', JRoute::_('index.php?view=cart&task=editpayment',$this->useXHTML,$this->useSSL), $this->select_payment_text,'class=""'); else JText::_('COM_VIRTUEMART_CART_PAYMENT'); ?> </td>
</td>
<?php } else { ?>
<td colspan="4" align="left"><?php echo $this->cart->cartData['paymentName']; ?> </td>
<?php } ?>
<?php if ( VmConfig::get('show_tax')) { ?>
<td align="right"><?php echo "<span style='color:gray'>".$this->cart->prices['paymentTax']."</span>"; ?> </td>
<?php } ?>
<td align="right"><?php //echo "<span style='color:gray'>".$this->cart->prices['paymentDiscount']."</span>"; ?></td>
<td align="right"><?php echo $this->cart->prices['salesPricePayment']; ?> </td>
</tr>
- столкнулся с такой же проблемой на ВМ 2.0.10, но ваш вариант уже не подходит. Будьте добры подскажите решение, если оно естьРешение достаточно несложное, нужно в файлах components\com_virtuemart\views\cart\tmpl\default_pricelist.php также components\com_virtuemart\views\cart\tmpl\default.php убрать следующий код: ...
1.Назначить в настройках выбор способов оплаты и доставки по умолчанию.- столкнулся с такой же проблемой на ВМ 2.0.10, но ваш вариант уже не подходит. Будьте добры подскажите решение, если оно есть
Пардонс за прямоту.... А в каком именно файле?То, что Вас интересует находится в папке components\com_virtuemart\views\invoice\tmpl\