Author Topic: How do I remove "Current Stock Level" graphic and text in the category view?  (Read 13407 times)

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27669
  • Always on vacation
    • Jenkin Hill Internet
The "Show the Ask a question link?" switch works in all my 4 J2.5.1/VM2.0.2 test sites. I dont use stock so have removed it from the templates with override.

And yes, you will initially trigger the forum anti-spam measures, which are needed.
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.6.11.10291 on Joomla 3.9.16 PHP 7.0.33

mexicanoo

  • Beginner
  • *
  • Posts: 3
Code: [Select]
<?php if (!VmConfig::get('use_as_catalog') && (VmConfig::get 'display_stock')) ){?>
<div class="paddingtop8">
<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 }?>

how to change "Current Stock Level" in "Out of stock" text in category view when a product is out of stock?

[attachment cleanup by admin]

changlee

  • Beginner
  • *
  • Posts: 41
    • Web design BLB.gr
views/category/tmpl/default.php

Do you mean

/public_html/administrator/components/com_virtuemart/views/category/tmpl

OR

/public_html/components/com_virtuemart/views/category/tmpl ?

how to change "Current Stock Level" in "Out of stock" text in category view when a product is out of stock?

Did you tried the language overrides?
Free SMTP Newsletter at https://www.emailbat.com and my complete SEO services at http://www.blb.gr

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27669
  • Always on vacation
    • Jenkin Hill Internet
Why are you replying to a 1-2 year old thread about out of date versions?
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.6.11.10291 on Joomla 3.9.16 PHP 7.0.33