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

Can't show basePriceWithTax by createPriceDiv()

Started by user_id, June 19, 2018, 08:48:01 AM

Previous topic - Next topic

user_id

I have problem to show basePriceWithTax using createPriceDiv. I showed salesPrice without problems.
I use method this way:
echo $currency->createPriceDiv('basePriceWithTax', 'COM_VIRTUEMART_PRODUCT_BASEPRICE_WITHTAX', $product->prices);

When I print $product->prices array by foreach it list and there is basePriceWithTax:
Quotevirtuemart_product_price_id=>348
virtuemart_product_id=>404
virtuemart_shoppergroup_id=>0
product_price=>95
override=>1
product_override_price=>499
product_tax_id=>2
product_discount_id=>-1
product_currency=>47
product_price_publish_up=>0000-00-00 00:00:00
product_price_publish_down=>0000-00-00 00:00:00
price_quantity_start=>0
price_quantity_end=>0
created_on=>2018-06-18 09:39:41
created_by=>1222
modified_on=>2018-06-19 06:33:21
modified_by=>1222
locked_on=>0000-00-00 00:00:00
locked_by=>0
costPrice=>95
basePrice=>407.322
basePriceVariant=>407.322
basePriceWithTax=>501.00606
discountedPriceWithoutTax=>405.69106
priceBeforeTax=>407.322
salesPrice=>499
taxAmount=>93.30894
salesPriceWithDiscount=>0
salesPriceTemp=>501.00606
unitPrice=>0
priceWithoutTax=>407.69712
discountAmount=>-2.00606
variantModification=>0
DBTax=>Array
Tax=>Array
VatTax=>Array
DATax=>Array
Marge=>Array
salesPriceTt=>499
discountedPriceWithoutTaxTt=>405.69106
priceWithoutTaxTt=>407.69712
discountAmountTt=>-2.00606
taxAmountTt=>93.30894


Jörgen

Hello

If You can display the salesPrice next to this, there must be some typo that prevents it from working. if You can´t display the salesPrice either, then You might have to check if some model is missing.

regards

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

user_id

Quote from: Jörgen on June 19, 2018, 09:54:44 AM
If You can display the salesPrice next to this, there must be some typo that prevents it from working. if You can´t display the salesPrice either, then You might have to check if some model is missing.
I can display salesPrice. Also salesPriceTemp but I don't want to use "temp" price.

Do you know any documentation for createPriceDiv()? VM documentaiton looks more like manual. I can't find anything on their website and google. Only forums.
Maybe is there any docs where explain what mean COM_VIRTUEMART_PRODUCT_BASEPRICE_WITHTAX etc.?

GJC Web Design

public function createPriceDiv($name,$description,$product_price,$priceOnly=false,$switchSequel=false,$quantity = 1.0,$forceNoLabel=false, $force = false)

administrator\components\com_virtuemart\helpers\currencydisplay.php ~ line 311
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

Jörgen

Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.