base price not showed in product details page

GK User
Thu Oct 23, 2014 6:32 pm
I found an issue in product details page.

I need to show this prices informations together:

-> Base price
-> discount amount
-> Final price

My product details page dont show together the base price and final price.

I set the config of specific product in this way:
Image

The configuration of virtuemart in this way:
Image

and the frontend product details page:
Image

Can someone suggest me how show base price with discounted price and discount amount?

Thanks in advance

Frankie
User avatar
Fresh Boarder

GK User
Sat Oct 25, 2014 11:06 am
I need to show:

basePriceWithTax
discountAmount
salesPrice

All prices configurations dont show this price together. It show or basePriceWithTax or discount salesPrice, depending of i set override final price....

Help me please. Thanks you
User avatar
Fresh Boarder

teitbite
Tue Oct 28, 2014 1:23 pm
Hi

If You know the names of prices try to but them directly to /html/com_virtuemart/productdetails/default.php

something like:

Code: Select all
echo $this->currency->createPriceDiv ('basePriceWithTax', 'COM_VIRTUEMART_PRODUCT_BASEPRICE_WITHTAX', $this->product->prices);
echo $this->currency->createPriceDiv ( 'discountAmount', 'COM_VIRTUEMART_PRODUCT_DISCOUNT_AMOUNT', $this->product->prices );
echo $this->currency->createPriceDiv ('salesPriceWithDiscount', 'COM_VIRTUEMART_PRODUCT_SALESPRICE_WITH_DISCOUNT', $this->product->prices);
User avatar
Moderator

GK User
Tue Oct 28, 2014 6:06 pm
hi Teitbite
before your reply i did some test without results.

First i edited the file templates/gk_storefront/html/com_virtuemart/productdetails/default adding the code like the next image:
Image

This is the result:
Image

this is the price in the product admin page.
Image

Its' strange see in html that div "basePriceWithTax" is "display:none"!!!
Image

If i change the code to "display:block" i can see only the label of basePriceWithTax not the value.
Image

Can you suggest something to solve?

Thanks in advance!!

Frankie
User avatar
Fresh Boarder

teitbite
Thu Oct 30, 2014 8:41 am
Hi

Do You mean to show "basePriceWithTax" ?? I think it's not showing when tax is not attached. Please try add at least tax 0% to it for tests.
User avatar
Moderator


cron