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

unit price not showing in checkout page / missing config option?

Started by Lexiboy, October 18, 2014, 01:04:55 AM

Previous topic - Next topic

Lexiboy

I am using VM 2.6.10 and Jooma 2.5.27.

On the checkout page, for each product unit price is not listed in the price column, only the discount and total column have values.
In confirmation mails however, the product price is mentioned.

When I check the default_pricelist.php, in the part where the unit price should be displayed I see the following code:
if (VmConfig::get ('checkout_show_origprice', 1) ... etc.

However, in the configuration I cannot find such an option at all.
Can this cause my unit price to not show? Or could there be another problem?

Any help is very welcome.

Ps, actualy, I think this unit price was never displayed on the checkout page, I am using the default template of VM, not an override.
With kind regards,
Alex Stienstra

GJC Web Design

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

Lexiboy

Nothing at all.

This is the code, when put the echos of all the ifs outside of the if, if and if else also nothing happens.



<?php
 if (VmConfig::get ('checkout_show_origprice'1) && $this->cart->pricesUnformatted[$pkey]['discountedPriceWithoutTax'] != $this->cart->pricesUnformatted[$pkey]['priceWithoutTax']) {
echo '<span class="line-through">' $this->currencyDisplay->createPriceDiv ('basePriceVariant'''$this->cart->pricesUnformatted[$pkey], TRUEFALSE) . '</span><br />';
 }
if ($this->cart->pricesUnformatted[$pkey]['discountedPriceWithoutTax']) {
echo $this->currencyDisplay->createPriceDiv ('discountedPriceWithoutTax'''$this->cart->pricesUnformatted[$pkey], FALSEFALSE);
} else {
echo $this->currencyDisplay->createPriceDiv ('basePriceVariant'''$this->cart->pricesUnformatted[$pkey], FALSEFALSE);
}

        
        
//  echo $prow->salesPrice ;

With kind regards,
Alex Stienstra

GJC Web Design

you need to echo out $this->cart to see what prices are available in the cart - then work from there

print 'Debug Line '.__LINE__.' $this->cart <pre>'; print_r ($this->cart); print "</pre><br />\n";
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

Lexiboy

With kind regards,
Alex Stienstra