Hiding prices only in category overview?

  • Christoph
  • Topic Author
  • Offline
  • New Member
  • New Member
More
1 day 6 hours ago #176159 by Christoph
Hiding prices only in category overview? was created by Christoph
Hi!

I'm currently switching from the old file scheme to the new V5 scheme with small granulated files. It is much work but then it is much better with the small files. Good decision by you!

I want to show the prices only in article overviews. If I use the switch in the backend I only can switchoff ALL pricing.
Have I overlooked some switches?

If not: I think views/blocks/prices is the one I have to look for?

Here is the relevant part of it:
Code:
<div class="eshop-product-price">      <?php      if ($product->product_price_text != '')      {      ?>          <div class="product-price"><?php echo $product->product_price_text; ?></div>      <?php      }      else      {          if (EShopHelperShop::showPrice() && !$product->product_call_for_price)          {              echo EShopHtmlHelper::loadCommonLayout('blocks/product_price.php', [                  'product'           => $product,                  'tax'               => $tax,                  'currency'          => $currency,              ]);         ...

The switch for EShopHelperShop::showPrice() is the one in Configuration ->Layout->Category page->Show prices?
Because if I switch it off, nothing happens: the prices are still there.

Where is my fault?

Regards,
Christoph

Please Log in or Create an account to join the conversation.

Moderators: Giang Dinh Truong