VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: fanny0 on June 30, 2014, 23:39:01 PM

Title: prices
Post by: fanny0 on June 30, 2014, 23:39:01 PM
I do not understand why the prices without VAT and other published when I have just set up the final sales price displayed

It's the same...in Beez template

http://gancisplay.cl/v2/el-nuevo-conductor

(http://gancisplay.cl/price.png)

(http://gancisplay.cl/price2.png)
Title: Re: prices
Post by: jenkinhill on July 01, 2014, 12:42:01 PM
Does look like a template issue, so edit the productdetails/default_showprices.php override file you are using and remove or comment out the display of PricediscountedPriceWithoutTax  and  PricepriceWithoutTax
Title: Re: prices
Post by: fanny0 on July 01, 2014, 18:04:02 PM
Hi,

delete them and still appears

(http://gancisplay.cl/v2/price-03.png)




<?php

/**

 *

 * Show the product details page

 *

 * @package    VirtueMart

 * @subpackage

 * @author Max Milbers, Valerie Isaksen

 * @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.

 * @version $Id: default_showprices.php 6556 2012-10-17 18:15:30Z kkmediaproduction $

 */

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

defined ('_JEXEC') or die('Restricted access');

?>


<div class="product-price" id="productPrice<?php echo $this->product->virtuemart_product_id ?>">

<?php

if (!empty(
$this->product->prices['salesPrice'])) {

echo "<strong>" JText::('COM_VIRTUEMART_CART_PRICE') . "</strong>";

}

//vmdebug('view productdetails layout default show prices, prices',$this->product);

if ($this->product->prices['salesPrice']<=and VmConfig::get ('askprice'1) and isset($this->product->images[0]) and !$this->product->images[0]->file_is_downloadable) {

?>


<a class="ask-a-question bold" href="<?php echo $this->askquestion_url ?>" rel="nofollow" ><?php echo JText::('COM_VIRTUEMART_PRODUCT_ASKPRICE'?></a>

<?php

} else {

if ($this->showBasePrice) {

echo $this->currency->createPriceDiv ('basePrice''COM_VIRTUEMART_PRODUCT_BASEPRICE'$this->product->prices);

if (round($this->product->prices['basePrice'],$this->currency->_priceConfig['basePriceVariant'][1]) != $this->product->prices['basePriceVariant']) {

echo $this->currency->createPriceDiv ('basePriceVariant''COM_VIRTUEMART_PRODUCT_BASEPRICE_VARIANT'$this->product->prices);

}



 "</span>";



?>


</div>
Title: Re: prices
Post by: jenkinhill on July 01, 2014, 18:30:02 PM
Did you edit the correct file? It will be the one in your commercial Joomla template html directory.
Title: Re: prices
Post by: fanny0 on July 03, 2014, 17:57:42 PM
Hi,
The template shows me only this route

html/com_virtuemart/productdetails/default.php

not :default_showprices.php

should modify default.php????

http://gancisplay.cl/codigo-deafult-gancis.txt

the code did not fall in the forum so I put it in a txt and got on the web, please see
Title: Re: prices
Post by: GJC Web Design on July 03, 2014, 23:25:52 PM
not sure what you posted as the txt file but the price display IS in that txt file - it isn't calling default_showprices.php

Title: Re: prices
Post by: fanny0 on July 07, 2014, 05:07:57 AM
That's what I just said, there is no such file in the template

there is no file called default_showprices.php

only deafult

(http://gancisplay.cl/show-price.jpg)
Title: Re: prices
Post by: GJC Web Design on July 07, 2014, 10:01:09 AM
and as I said it isn't using the default_showprices.php - so just edit the default.php
Title: Re: prices
Post by: fanny0 on July 07, 2014, 15:02:50 PM
not really that I have to edit there, I do not understand