Prices not showing on category 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 Apr 25, 2013 1:33 am
Reply with quote
Report this post
Hi,
On website ribbonprint.com.au when on the category page for each product its showing the tax only. If you go to the product page then it shows price and tax.
If i change the template from storebox to boutique then the prices apear on the category page.
I have been thru and compared all the virtuemart pages in the quickstart and made the settings on my page built with the template not quickstart the same.

Any ideas?

Aaron
User avatar
Fresh Boarder

GK User
Thu Apr 25, 2013 8:50 am
Reply with quote
Report this post
Can you please check following setting.

Joomla Admin > Components > Virtuemart
Virtuemart > Configuration > Pricing.

As this depends on the way you have done your pricing so you can go ahead and tick all of them and see if template shows the pricing, if it does then you can untick 1 by 1 until pricing still shows.

In my testing following option displays both prices "Baseprice with Tax, but without discounts".

Let us know how you get on.

See you around...
User avatar
Platinum Boarder

GK User
Thu Apr 25, 2013 11:47 am
Reply with quote
Report this post
Hi and thanks for your response,
I have tried having every option ticked, and only Baseprice with Tax, but without discounts no difference.
In both scenarios i still only get the tax showing.
Its got something to do with the template, if i change to another template it displays the price?
Thanks

Aaron
User avatar
Fresh Boarder

GK User
Thu Apr 25, 2013 6:36 pm
Reply with quote
Report this post
Can you please send an admin access and ftp access details to my email normanuk[at]live.co.uk and I ll take a look at your setup.


Please include this topic link in your email.

See you around...
User avatar
Platinum Boarder

GK User
Fri Apr 26, 2013 11:08 am
Reply with quote
Report this post
I've got your details and checking your website.
User avatar
Platinum Boarder

GK User
Fri Apr 26, 2013 12:07 pm
Reply with quote
Report this post
Fixed for now. As I've suggested this is related with the way your setup is calculating prices and for some reason it is not displaying usual price field. So I have added extra pricing fields and it is displaying price now. So check price calculations for now if you have set up rules to make sure it is showing correct prices.

For future reference please edit following in case you update your template.

File: templates/gk_storebox/html/com_virtuemart/category/default.php
Lines: 188 -197 which is below
Code: Select all
               <div class="catProductPrice" id="productPrice<?php echo $product->virtuemart_product_id ?>">
               <?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');
                     }                  
                     echo $this->currency->createPriceDiv('basePriceWithTax', '', $product->prices);
                     echo $this->currency->createPriceDiv('taxAmount','TPL_GK_LANG_VM_INC_TAX', $product->prices);
                  } ?>
               </div>

With this code.
Code: Select all
               <div class="catProductPrice" id="productPrice<?php echo $product->virtuemart_product_id ?>">
               <?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);
                  
                  
                  }
               ?>
               </div>


I have also made few css changes which makes your images centered as well as title and prices. They are added in template settings > advanced settings > Custom Css.

Code: Select all
.product img, .category-view .category img { margin-left:auto;margin-right: auto; display:block;}
.catProductTitle, .catProductPrice { text-align:center;}


See you around...
User avatar
Platinum Boarder

GK User
Fri May 03, 2013 10:47 pm
Reply with quote
Report this post
A belated thanks Norman

Aaron
User avatar
Fresh Boarder

GK User
Mon May 06, 2013 2:31 am
Reply with quote
Report this post
No problem at all, see you around...
User avatar
Platinum Boarder

GK User
Tue May 07, 2013 2:21 am
Reply with quote
Report this post
Hi,

I had same problem when using StoreBox template with VM. Prices were not displaying on Category page. Followed advice of NormanUK and it worked.

Thanks,
Costa
User avatar
Fresh Boarder

GK User
Wed May 08, 2013 2:51 am
Reply with quote
Report this post
No problem at all, see you around...
User avatar
Platinum Boarder

GK User
Fri May 10, 2013 2:59 am
Reply with quote
Report this post
Hi Norm,

I am experiencing the same problem, but when I add to code that you suggest, the product name dissapears.

Can you please check out my site?

Thanks.
User avatar
Junior Boarder

GK User
Fri May 10, 2013 7:03 am
Reply with quote
Report this post
Sure I will do so in few hours when I get to my office. See you around...
User avatar
Platinum Boarder

GK User
Fri May 10, 2013 4:34 pm
Reply with quote
Report this post
Thank you Norman! :-)
User avatar
Junior Boarder

GK User
Sun May 12, 2013 8:06 am
Reply with quote
Report this post
@mperazac,, Please check your site as this is fixed temporarily. Prices are now showing but there is a problem with your "Personalización2" plugin which adds 16.00 extra to final price. I have deleted them for now to check it if you wanted it like that then please redo your custom field.

See you around...
User avatar
Platinum Boarder

GK User
Sun May 12, 2013 8:23 am
Reply with quote
Report this post
Norman, I can see it now. No problem deleting that plugins since I am still doing some tests. So, thank you very much for your help!

Have a good day!
User avatar
Junior Boarder

GK User
Sun May 12, 2013 8:25 am
Reply with quote
Report this post
No problem at all, see you around...
User avatar
Platinum Boarder


cron