Kereskedelmi és bolt bővítmények

Virtuemart - Hogyan írható ki a kedvezményes ár a legegyszerűbben?

Több
3 éve 10 hónapja #15913 Írta: trektomy
akkor most így néz ki <?php
/**
*
* Show the product prices
*
* @package VirtueMart
* @subpackage
* @author Max Milbers, Valerie Isaksen
* @link virtuemart.net
* @copyright Copyright (c) 2004 - 2014 VirtueMart Team. All rights reserved.
* @license 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.
* @version $Id: default_showprices.php 8024 2014-06-12 15:08:59Z Milbo $
*/
// Check to ensure this file is included in Joomla!
defined ('_JEXEC') or die('Restricted access');
$product = $viewData;
$currency = $viewData;

?>
<div class="product-price" id="productPrice<?php echo $product->virtuemart_product_id ?>" data-vm="product-prices">
<?php
if (!empty($product->prices)) {
//echo '<div class="vm-cart-price">' . vmText::_ ('COM_VIRTUEMART_CART_PRICE') . '</div>';
}

if ($product->prices<=0 and VmConfig::get ('askprice', 1) and isset($product->images[0]) and !$product->images[0]->file_is_downloadable) {
$askquestion_url = JRoute::_('index.php?option=com_virtuemart&view=productdetails&task=askquestion&virtuemart_product_id=' . $product->virtuemart_product_id . '&virtuemart_category_id=' . $product->virtuemart_category_id . '&tmpl=component', FALSE);
?>
<a class="ask-a-question bold" href="<?php echo $askquestion_url ?>" rel="nofollow" ><?php echo vmText::_ ('COM_VIRTUEMART_PRODUCT_ASKPRICE') ?></a>
<?php
} else {
//if ($showBasePrice) {
echo $currency->createPriceDiv ('basePrice', 'COM_VIRTUEMART_PRODUCT_BASEPRICE', $product->prices);
//if (round($product->prices,$currency->_priceConfig[1]) != $product->prices) {
echo $currency->createPriceDiv ('basePriceVariant', 'COM_VIRTUEMART_PRODUCT_BASEPRICE_VARIANT', $product->prices);
//}

//}
echo $currency->createPriceDiv ('variantModification', 'COM_VIRTUEMART_PRODUCT_VARIANT_MOD', $product->prices);
if (round($product->prices,$currency->_priceConfig[1]) != round($product->prices,$currency->_priceConfig[1])) {
echo '<span class="price-crossed" >' . $currency->createPriceDiv ('basePriceWithTax', 'COM_VIRTUEMART_PRODUCT_BASEPRICE_WITHTAX', $product->prices) . "</span>";
}
if (abs($product->prices["discountAmount"]) > 0) {
echo '<span class="price-crossed" >' . $currency->createPriceDiv ('basePriceWithTax', 'COM_VIRTUEMART_PRODUCT_BASEPRICE_WITHTAX', $product->prices) . "</span>";
}

echo $currency->createPriceDiv ('salesPrice', 'COM_VIRTUEMART_PRODUCT_SALESPRICE', $product->prices);
echo $currency->createPriceDiv ('salesPriceTt', 'COM_VIRTUEMART_PRODUCT_SALESPRICE_TT', $product->prices);
$infotax = vmConfig::get('vm_prices_info_tax', 0);
$infodelivery = vmConfig::get('vm_prices_info_delivery', 0);
if ($infotax == 0 or $infodelivery == 1) { ?>
<div class="vm-prices-info">
<?php
if ($infotax == 1) {
if ($product->prices == $product->prices) {
$taxclusive = 'COM_VM_TAX_EXCLUSIVE';
} else {
$taxclusive = 'COM_VM_TAX_INCLUSIVE';
}
echo vmText::_($taxclusive);
}
if ($infotax == 1 and $infodelivery == 1) {
echo vmText::_('COM_VM_PRICES_INFO_DIVIDER');
}
if ($infodelivery == 1) {
echo vmText::_('COM_VM_PRICES_INFO_DELIVERY');
} ?>
</div>
<?php
}
//echo $currency->createPriceDiv ('salesPrice', 'COM_VIRTUEMART_PRODUCT_SALESPRICE', $product->prices);
//echo $currency->createPriceDiv ('salesPriceQu', 'COM_VIRTUEMART_PRODUCT_SALESPRICE', $product->prices);
if ($product->prices != $product->prices) {
echo $currency->createPriceDiv ('discountedPriceWithoutTax', 'COM_VIRTUEMART_PRODUCT_SALESPRICE_WITHOUT_TAX', $product->prices);
echo $currency->createPriceDiv ('discountedPriceWithoutTaxTt', 'COM_VIRTUEMART_PRODUCT_SALESPRICE_WITHOUT_TAX_TT', $product->prices);
} else {
echo $currency->createPriceDiv ('priceWithoutTax', 'COM_VIRTUEMART_PRODUCT_SALESPRICE_WITHOUT_TAX', $product->prices);
echo $currency->createPriceDiv ('priceWithoutTaxTt', 'COM_VIRTUEMART_PRODUCT_SALESPRICE_WITHOUT_TAX_TT', $product->prices);
}
echo $currency->createPriceDiv ('discountAmount', 'COM_VIRTUEMART_PRODUCT_DISCOUNT_AMOUNT', $product->prices);
echo $currency->createPriceDiv ('discountAmountTt', 'COM_VIRTUEMART_PRODUCT_DISCOUNT_AMOUNT_TT', $product->prices);
echo $currency->createPriceDiv ('taxAmount', 'COM_VIRTUEMART_PRODUCT_TAX_AMOUNT', $product->prices);
echo $currency->createPriceDiv ('taxAmountTt', 'COM_VIRTUEMART_PRODUCT_TAX_AMOUNT_TT', $product->prices);
$unitPriceDescription = vmText::sprintf ('COM_VIRTUEMART_PRODUCT_UNITPRICE', vmText::_('COM_VIRTUEMART_UNIT_SYMBOL_'.strtoupper($product->product_unit)));
echo $currency->createPriceDiv ('unitPrice', $unitPriceDescription, $product->prices);
}
?>
</div>

Jelentkezz be, hogy te is részt vehess beszélgetésben!

Több
3 éve 10 hónapja #15914 Írta: kovacshazi
kovacshazi válaszolt a következő témában: Virtuemart - Hogyan írható ki a kedvezményes ár a legegyszerűbben?
Azt hiszem jó lesz

Segítség Joomla és VirtueMart webáruház készítéséhez, problémák megoldásában
www.webprogramok.hu

Joomladay2013 - Budapest, Hungary
www.joomladay.hu

Jelentkezz be, hogy te is részt vehess beszélgetésben!

Több
3 éve 10 hónapja #15915 Írta: trektomy
nem változott semmi

Jelentkezz be, hogy te is részt vehess beszélgetésben!

Több
3 éve 10 hónapja #15916 Írta: kovacshazi
kovacshazi válaszolt a következő témában: Virtuemart - Hogyan írható ki a kedvezményes ár a legegyszerűbben?
Böngésző és oldal gyorsítótár törlés

Segítség Joomla és VirtueMart webáruház készítéséhez, problémák megoldásában
www.webprogramok.hu

Joomladay2013 - Budapest, Hungary
www.joomladay.hu

Jelentkezz be, hogy te is részt vehess beszélgetésben!

Több
3 éve 10 hónapja #15917 Írta: trektomy
persze ürítettem másik böngészőbe néztem....

Jelentkezz be, hogy te is részt vehess beszélgetésben!

Több
3 éve 10 hónapja #15918 Írta: kovacshazi
kovacshazi válaszolt a következő témában: Virtuemart - Hogyan írható ki a kedvezményes ár a legegyszerűbben?
A Joomla sablonban módosítottad a fájlt?

Segítség Joomla és VirtueMart webáruház készítéséhez, problémák megoldásában
www.webprogramok.hu

Joomladay2013 - Budapest, Hungary
www.joomladay.hu

Jelentkezz be, hogy te is részt vehess beszélgetésben!