Display Prices on Category Layout page

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Thu Oct 23, 2014 2:55 pm
Reply with quote
Report this post
How do we display the sales prices on the category layout page. Example here:
http://www.forecaststore.com/j25/fashio ... ayette-148

The description is appearing, but not price.

Thanks
User avatar
Fresh Boarder

teitbite
Sat Oct 25, 2014 1:11 pm
Reply with quote
Report this post
Hi

Template is displaying prices, but the type of the price "basePriceWithTax" is disabled. Try edit file /html/com_virtuemart/category/default.php and in line 200 replace "basePriceWithTax" with "salesPrice" or make the base price with tax accessible (this price is often 0 when tax is not included).
User avatar
Moderator

GK User
Wed May 20, 2015 9:07 pm
Reply with quote
Report this post
Hello
this is my site,
no operation
:(
Code: Select all
 <?php
                      if ($this->show_prices == '1') {
                         if ($product->prices['salesPrice']<=0 and VmConfig::get ('askprice', 1) and  !$product->images[0]->file_is_downloadable) {
                            echo JText::_ ('COM_VIRTUEMART_PRODUCT_ASKPRICE');
                         }
                     
                         $unitPriceDescription = JText::sprintf ('COM_VIRTUEMART_PRODUCT_UNITPRICE', $product->product_unit);
                         echo $this->currency->createPriceDiv ('unitPrice', $unitPriceDescription, $product->prices);
                         //todo add config settings
                         if ($this->showBasePrice) {
                            echo $this->currency->createPriceDiv ('basePrice', 'COM_VIRTUEMART_PRODUCT_BASEPRICE', $product->prices);
                            echo $this->currency->createPriceDiv ('basePriceVariant', 'COM_VIRTUEMART_PRODUCT_BASEPRICE_VARIANT', $product->prices);
                         }

                                     
                         echo $this->currency->createPriceDiv('salesPrice','',$product->prices);
                         echo $this->currency->createPriceDiv('discountAmount','COM_VIRTUEMART_PRODUCT_DISCOUNT_AMOUNT',$product->prices);
                         echo $this->currency->createPriceDiv('taxAmount','COM_VIRTUEMART_PRODUCT_TAX_AMOUNT',$product->prices);
                     
                     
                      }
                   ?>
User avatar
Junior Boarder

teitbite
Sat May 23, 2015 5:57 pm
Reply with quote
Report this post
Hi

What file is it ? Looks like not our orginal override in inStyle template. Anyway from this code looks like it's prepared to show a basePrice and not basePriceWithTax as in the case above Your post. Try check if using basePrice is enabled and if prices are set for a default shopper groups.
User avatar
Moderator


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.