Display pricing 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
Mon Apr 27, 2015 5:40 pm
Reply with quote
Report this post
Hello,

I am wondering if someone can help please?

I know that on the category page, we can show the price of the product. However, due to the amount of information that I have added to the override.css, I am not too sure how to display this now (as in I think that something I put in the override.css file is preventing this).

My website is http://www.kankotri.co.uk. On the homepage, as I am using a module, the pricing information shows fine. It is when we click on the 'Kankotri' category at the top, when the products are displayed, it currently doesn't show the pricing (see attached).

I would like to show the 'Sales price' (not any taxes or anything) - the same pricing information as what the homepage and the product page are currently showing.

Would anyone be able to help please?

Thanks in advance,

Prit
User avatar
Gold Boarder

teitbite
Fri May 01, 2015 12:47 pm
Reply with quote
Report this post
Hi

Please take a look into this thread: https://www.gavick.com/forums/instyle-j ... ry#p226014
User avatar
Moderator

GK User
Sat May 02, 2015 5:59 pm
Reply with quote
Report this post
Hello,

Thank you for your reply. I'm just a bit confused. On the demo page for Shop and Buy - https://demo.gavick.com/joomla25/shop_a ... ory-layout - it looks as though the pricing on the category page should be showing as standard?

I am not sure if I have added a line to the override.css file to not show the category page pricing. If I have, I would like to potentially remove it so the pricing shows.

Any ideas?

Thanks in advance,

Prit
User avatar
Gold Boarder

teitbite
Tue May 05, 2015 8:33 am
Reply with quote
Report this post
Hi

Demo page is on joomla 2.5 and the price was removed in vm from newer version. Anyway code is still there, just had to be uncommented.
User avatar
Moderator

GK User
Sat May 09, 2015 7:54 pm
Reply with quote
Report this post
Hello,

I'm just a bit confused now. This is the code that displays in my file /html/com_virtuemart/catrgory/default.php file:

Code: Select all
    <h3 class="catProductTitle"><?php echo JHTML::link($product->link, $product->product_name); ?></h3>
                   
                   <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>
                   
                   <?php if ( VmConfig::get ('display_stock', 1)) : ?>
                   <div class="stockLavel"> <span class="vmicon vm2-<?php echo $product->stock->stock_level ?>" title="<?php echo $product->stock->stock_tip ?>"></span> <span class="stock-level"><?php echo JText::_('COM_VIRTUEMART_STOCK_LEVEL_DISPLAY_TITLE_TIP') ?></span> </div>
                   <?php endif; ?>


Would someone be able to let me know exactly what needs to be done for the pricing to be displayed please?

Thanks in advance.

Prit
User avatar
Gold Boarder

teitbite
Mon May 11, 2015 11:43 am
Reply with quote
Report this post
Hi

Is it from Shop&Buy ? The version I have is a little different. Are You sure price is allowed in VM configuration or the default shopper group is allowed to see it ? Please send me an access to ftp, so I'll check what is wrong.
User avatar
Moderator

GK User
Tue May 19, 2015 2:00 pm
Reply with quote
Report this post
Hello,

I have attached the 'Pricing' screenshot from the admin section.

I think everything looks OK - can you please let me know?

I have also created you an ftp account for the website and will create an account to log in to the admin section too (I am not sure if I am missing something).

Thanks,

Prit
User avatar
Gold Boarder

teitbite
Tue May 19, 2015 7:53 pm
Reply with quote
Report this post
Hi

I think prices are not attached to shopper groups or there is no tax included. There is a part of the code visible in each product:

Code: Select all
<div class="PricebasePriceWithTax" style="display : none;">
<span class="PricebasePriceWithTax"></span>
</div>
<div class="PricetaxAmount" style="display : none;">
inc. tax:
<span class="PricetaxAmount"></span>
</div>


and as You can see prices are not included, so it's not coming out from VM. Please try check taxes and shopper groups settings and if You will have problems please contact VM support. I'm afraid I'm not an expert in this component.
User avatar
Moderator

GK User
Wed May 20, 2015 2:41 pm
Reply with quote
Report this post
Hello,

Thank you very much for your help. I set the taxes to 0% and enabled in configuration.

The prices are now coming through on the category display page.

Thanks again!

Prit
User avatar
Gold Boarder

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

This is some VM bug I think. A price with tax when tax in not configured is always 0. Good that 0% tax is not changing anything.
User avatar
Moderator


cron