Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Template - FashionMart (SKU# FLEX-00008)

TOPIC: Problem with Prices in templates

Problem with Prices in templates 9 years 6 months ago #4555

Hi

i have problem to undestand wich prices is visible in fashion mart template
For example product details page with all price enablend in configuration:

without the fashin mart:
i have brutto, netto, tax


with fashion mart
i have brutto (without label) and tax with label


in category view i have this same problem
how to edit template to get netto price ?
Last Edit: 9 years 6 months ago by Łukasz Kozubek.
The administrator has disabled public write access.

Problem with Prices in templates 9 years 6 months ago #4564

Hi Lukasz,

You need to uncomment this to show netto

templates/YOUR_TEMPLATE/html/com_virtuemart/productdetails/default.php line 298
 
//echo $this->currency->createPriceDiv('priceWithoutTax', 'COM_VIRTUEMART_PRODUCT_SALESPRICE_WITHOUT_TAX', $this->product->prices);
 

and to get the label back add the language constant for the label to line 302
 
echo $this->currency->createPriceDiv('salesPrice', 'ADD_YOUR_LANG_VAR_HERE', $this->product->prices);
 

you also can change the order of these calls to get the order you want

Cheers
Last Edit: 9 years 6 months ago by John.
The administrator has disabled public write access.

Problem with Prices in templates 9 years 6 months ago #4576

Great thx

Trying to do the same in categories view, but it seems that it works differently ?

i uncomment this same in templates/TEMPLATE-NAME/html/com_virtuemart/category/defaultlist.php
(this i have selected in vm global configuration)

and also uncomment in

default.php
flexv2.php
flexv2list.php

but nothing changes in category view
Last Edit: 9 years 6 months ago by Łukasz Kozubek.
The administrator has disabled public write access.
Time to create page: 0.093 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo