News:

Support the VirtueMart project and become a member

Main Menu

prices

Started by fanny0, June 30, 2014, 23:39:01 PM

Previous topic - Next topic

fanny0

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




jenkinhill

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
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

fanny0

Hi,

delete them and still appears






<?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>

jenkinhill

Did you edit the correct file? It will be the one in your commercial Joomla template html directory.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

fanny0

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

GJC Web Design

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

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

fanny0

That's what I just said, there is no such file in the template

there is no file called default_showprices.php

only deafult


GJC Web Design

and as I said it isn't using the default_showprices.php - so just edit the default.php
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

fanny0

not really that I have to edit there, I do not understand