Remove (stock level) from product listing

  • Posts: 45
  • Thank you received: 0
13 years 8 months ago #26054

Hi,

is there somewhere in the manual / online help which describes what each of the views (under "Display -> Views") relates to?
Im trying to locate and hide the part of a product listing which lists how many items are left in stock because we just dont want clients to see this.
Kinda not got my head around the configuration of views yet but have been searching. The shop Im working on is shown here with red over the bit Im trying to locate / hide

.

A test item showing the bit Im trying to locate code for is at...
adventurefest.co.uk/tickets/product/1-3r.../category_pathway-12

Any guide to where views are described would be much appreciated.

K

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

  • Posts: 83933
  • Thank you received: 13588
  • MODERATOR
13 years 8 months ago #26055

There is no manual describing all the views. There are just too many of them.

When you want to change some text, the best is often to just override by editing your language file as explained there:
www.hikashop.com/en/download/languages.html#modify

That's what you should do there.

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

  • Posts: 45
  • Thank you received: 0
13 years 8 months ago #26056

Hi thanks for the speedy response, I dont so much want to edit the words relating to stock so much as hide them completely :/

Is there somewhere I can find the css linked to the <span class="hikashop_product_stock_count"> element just so I can hide it via css? I only ask as I cant seem to find how to hide any mention of stock levels.

Appreciate any assistance / thoughts

Kate

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

  • Posts: 83933
  • Thank you received: 13588
  • MODERATOR
13 years 8 months ago #26057

If you remove the words in the language file, it won't display... The result will be the same.

You can indeed also do it with css by adding the CSS below in the front end CSS file that you can edit via the interface in the Display tab of the config:
.hikashop_product_stock_count{ display:none; }

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

  • Posts: 45
  • Thank you received: 0
13 years 8 months ago #26071

Sorry Im only asking as Ive spent days on an off trying to work this out.
If I start off with a hikashop menu item which brings up a
category listing (in divs)
Showing Image and description...
then which of these views would I edit to adjust the product view?

If I go into Views and select Category - Image and Description (have attached shot) I can edit the Category listing,
but Product Image and Description doesnt take me to the right piece of code to change the view.

I really cant see the "stock level" specifically mentioned.

Should the URL of the page give me an idea which "view" I need to change?

Attachments:
Last edit: 13 years 8 months ago by k8fisher. Reason: added image to illustrate where Im looking

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

  • Posts: 83933
  • Thank you received: 13588
  • MODERATOR
13 years 8 months ago #26083

If you want to edit the display of the product information on products listings, it's one of the files "listing_img_*" of the view "product" that you need to edit.

If you want to edit the display of the product information on products page, it's the file show of the view 'product that you need to edit.

When SEF is turned off, you can see: &ctrl=XXX&task=XXX
if the task is not in the URL, it means that the task is "listing".
The ctrl part defines the view name and the task part defines the file name in the menu Display->Views.

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

  • Posts: 218
  • Thank you received: 6
13 years 4 months ago #37150

Seems a bit of an awkward way to customise the different views. Even though i don't like alot of things about Redshop, one thing that i really liked was the easy ability to style their templates for each view. Have a look at redshop and maybe consider revising how you do the views/templates for hika :)

It does seem like you cannot style the different pages easily and so all hikashop installations end up looking identical :(

Last edit: 13 years 4 months ago by woonydanny.

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

  • Posts: 83933
  • Thank you received: 13588
  • MODERATOR
13 years 4 months ago #37270

The views of HikaShop are like real views of Joomla. RedShop views use tags so that it's easy to move around for you. On the other end, it gives you less possibilities when you really want to customize it profoundly. I'm sure that having code directly instead of tags in our views is really good for people knowing at least a bit of PHP/HTML because then you can really do what you want and are not limited to only the things that we thought of when designing it.
Our goal is that you don't even need to see the views code for most uses by just changing the layout options in HikaShop and also by simplifying them into small bits.
If you look at the listing_* views, we improved them since that thread started and now it's quite easy to know how to move the different parts of these views around. We're moving towards that end for the product page too with the latest version.

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

Time to create page: 0.078 seconds
Powered by Kunena Forum