News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Show custom price with tax in VM 2.0.14

Started by pixelatumente, December 01, 2012, 00:24:18 AM

Previous topic - Next topic

pixelatumente

I have this web:
http://www.pixelatumente.es/ecopav/ofertas-y-precios/kits-ecopav-level/kit-ecopav-level-8m2-detalle

I need show custom fields with tax. When I choose the variables shown include VAT in the car. In 2.0.6 works but not in 2.0.14?


I've seen this solution but does not work:

administrator/components/com_virtuemart/models/customfields.php
Line 864

Use this code, changing * 1.19 for your own tax value.

if ((float)$productCustom->custom_price) {
                  //ORIGINAL: $price = strip_tags ($currency->priceDisplay ($calculator->calculateCustomPriceWithTax ($productCustom->custom_price)));
                  $price = strip_tags ($currency->priceDisplay ($calculator->calculateCustomPriceWithTax ($productCustom->custom_price * 1.19)));
               }

pixelatumente

I tried everything and it does not work. even replace the file with the version 2.0.8

pixelatumente

I think the solution is between 966-969 lines... ???

      if ((float)$customPrice) {
         $price = strip_tags ($currency->priceDisplay ($calculator->calculateCustomPriceWithTax ($customPrice)));
         if ($customPrice >0) {
            $price ="+".$price;