B2B shop

GK User
Wed Feb 11, 2015 9:01 pm
we are building a b2b shop. The regulation in Germany requires that you need to show the priceWithoutTax (with the suffix zzgl. Mehrwertsteuer) instead of the salesPrice. So we need to change the two prices like shown in the attached screenshot.
Further we need to replace the salesPrice with the priceWithoutTax in the category overview.

Any help is very much appreciated.

Thx Juergen
User avatar
Junior Boarder

GK User
Thu Feb 12, 2015 12:35 pm
Hello,

First of all - which version of VirtueMart and the StoreFront template are you using?
User avatar
Administrator

GK User
Thu Feb 12, 2015 2:00 pm
Hello dziudek,

thx for reply.

We are using Joomla!-Version 3.3.6 and VirtueMart 3.0.2. Not sure what the Template version is, in the template i found Gavern v.3.15 and we downloaded it on February 2nd.
Site is www.jds4fashion.com - not live, it's under construction.

Many thx in advance.

Juergen
User avatar
Junior Boarder

GK User
Thu Feb 12, 2015 10:29 pm
In this case you should edit two files inside the template directory:

html/com_virtuemat/productdetails/default.php - line:
Code: Select all
echo $this->currency->createPriceDiv ('salesPrice', 'COM_VIRTUEMART_PRODUCT_SALESPRICE', $this->product->prices);


should be changed to:

Code: Select all
echo $this->currency->createPriceDiv ('priceWithoutTax', 'YOUR TEXT', $this->product->prices);


and in file html/com_virtuemat/category/default.php line:

Code: Select all
echo $this->currency->createPriceDiv ('salesPrice', 'COM_VIRTUEMART_PRODUCT_SALESPRICE', $product->prices);


should be changed to:

Code: Select all
echo $this->currency->createPriceDiv ('priceWithoutTax', 'YOUR TEXT', $product->prices);
User avatar
Administrator

GK User
Sat Feb 14, 2015 10:13 am
Many thx dziudek,

I did the changes you described above and got the prices changed. However the formatting sticked to the types of prices. What do I do to make the current grey coloured 'Nettoreis..' in the bold red format and the current bold red coloured 'Bruttopreis..' in small grey format?

And a last question, where can I change the text 'with Shipment..' into German 'zzgl. Versand' ?

Many thx again.

Juergen
User avatar
Junior Boarder

GK User
Mon Feb 16, 2015 10:46 am
Text "With shipment" should be available to translate in the VirtueMart language file.

Regarding the other changes please try to use the following CSS code:

Code: Select all
.productDetails .PricepriceWithoutTax {
   color: #e81f00;
   font-size: 18px;
   font-weight: bold;
}
.productDetails .PricesalesPrice {
   color: #aaa;
   font-size: 12px;
   font-weight: normal;
}
User avatar
Administrator


cron