VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product pricing => Topic started by: Broadside on December 05, 2014, 16:55:14 PM

Title: Baseprice not shown on checkout
Post by: Broadside on December 05, 2014, 16:55:14 PM
I am having an issue with the baseprice of articles not showing on checkout. I've selected all the applicable options in the Virtuemart prices menu. Taxes, discounts, final price and totals are correctly shown but base price isn't shown.

Any idea how I could fix this?

VM version: 2.6.12.2
Joomla version: 2.5.27
Live site link: www.goodfoodandmore.nl
Title: Re: Baseprice not shown on checkout
Post by: jenkinhill on December 05, 2014, 17:16:05 PM
Most likely a template problem. Switch the template to Beez and see if the prices display there. If they show there then the problem lies within your template overrides.
Title: Re: Baseprice not shown on checkout
Post by: Broadside on December 07, 2014, 14:36:20 PM
I tried switching to Beez but the issue persists even in this default template.
Title: Re: Baseprice not shown on checkout
Post by: jenkinhill on December 07, 2014, 15:08:17 PM
Just realised that you are not yet using VM3. Do you mean the base price before tax is not showing? On 2.6.x that one is unfortunately only visible on the FE to a logged in admin, and hidden from "normal" shoppers. The base price with tax should be displayed, though.

The base price does display in VM3.0.2 which I am currently using.
Title: Re: Baseprice not shown on checkout
Post by: rickkh on December 07, 2014, 17:29:13 PM
 VM3.0.2 on J3.3.6 (Updated from 2.9.5 to 3.0.0 then 3.0.2 after seeing it is working for you!):

Base price is not showing even without template override!

[attachment cleanup by admin]
Title: Re: Baseprice not shown on checkout
Post by: jenkinhill on December 07, 2014, 18:12:00 PM
See pic for base price showing.

[attachment cleanup by admin]
Title: Re: Baseprice not shown on checkout
Post by: rickkh on December 07, 2014, 19:56:29 PM
This is the base price in the products page/details... I was looking for the unit price in the cart...
Title: Re: Baseprice not shown on checkout
Post by: rickkh on December 07, 2014, 20:52:59 PM
By looking at default_pricelist.php, I came to understand the rules of displaying the unit price, most notably this part:

<td align="center">
                <?php
                
if (VmConfig::get ('checkout_show_origprice'1) && $prow->prices['discountedPriceWithoutTax'] != $prow->prices['priceWithoutTax']) {
                        echo 
'<span class="line-through">' $this->currencyDisplay->createPriceDiv ('basePriceVariant'''$prow->pricesTRUEFALSE) . '</span><br />';
                }   

                if (
$prow->prices['discountedPriceWithoutTax']) {
                        echo 
$this->currencyDisplay->createPriceDiv ('discountedPriceWithoutTax'''$prow->pricesFALSEFALSE);
                } else {
                        echo 
$this->currencyDisplay->createPriceDiv ('basePriceVariant'''$prow->pricesFALSEFALSE);
                }   
                
?>

        </td>




SOLUTION: "Discounted Price without tax" or one of the alternatives in the condition above must be selected on the shopper group level and not in the configuration prices.