Hide stock quantity in the main page

  • Posts: 16
  • Thank you received: 2
7 years 10 months ago #272335

-- HikaShop version -- : 3.1.1.
-- Joomla version -- : 3.7.2
-- PHP version -- : 5.6.29
-- Browser(s) name and version -- : Firefox updated

Good afternoon:

I am trying to hide the “stock quantity” on my whole page but I can't.

Of course I have disabled every tab related with showing the stock quantity (Quantity field on 'Add to cart' button: NO, ), and in the associated module of the main page (Quantity field:NO), but they stock quantity remains there.

It seems that I will have to modify the css or modify the code… :-(

¿Could you please help me?. Thanks in advanced for your help.

Jose

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

  • Posts: 26233
  • Thank you received: 4036
  • MODERATOR
7 years 10 months ago #272384

Hello,

Without more details it will be difficult to tell you.
But for sure if you want to hide something, you can use some CSS or a view override if really necessary.
www.hikashop.com/support/documentation/1...the-display.html#css

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 16
  • Thank you received: 2
7 years 10 months ago #272477

Hi Jerome, good morning:

Sorry for being so short in my explanation. I thought maybe it will be easier and without writing the css.

Sometimes I have modified the css using the Mozilla Firefox firebug, but in this case I don't know what to modify to hide stock quantity.

I attach some screenshots and the quantity_legacy.php in a text file. Could you please tell me what I should do to hide stock quantity??. :unsure: :unsure:

Thank you!.

File Attachment:

File Name: Quantity-legacy.rtf
File Size:10 KB


Attachments:
Last edit: 7 years 10 months ago by Galle43.

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

  • Posts: 4820
  • Thank you received: 654
  • MODERATOR
7 years 10 months ago #272507

Hello,

You can use some Css code in order to hide this part, use your navigator inspector tool to get the class.
something like this :

STOCK_SELECTOR_CLASS {
    display: none;
}
Note : You can learn how to proceed in this tutorial .
Hope this will help you to achieved what you needs.

Regards

Last edit: 7 years 10 months ago by Philip.

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

Time to create page: 0.064 seconds
Powered by Kunena Forum