Displaying quantity on the product listing page

  • Posts: 32
  • Thank you received: 1
11 years 10 months ago #118811

Hi,

I am a new hikashop user and need help to display the product quantity on the product listing page. As of now, I can only see the product picture, description, price and add to cart button. If I click on the product image, it takes me to the product page wherein the user can add the quantity. However, I want to avoid this as it is just an extra click for the user. I have browsed through the forums and I saw suggestions to tweak the code of the file listing_img_title.php by adding the code:
$this->params->set('show_quantity_field', 1);
at the beginning after the first <?php tag.

I have tried doing this but not working! Also I am using the correct template file. Any help will be much appreciated!
Thanks
Shivali

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

  • Posts: 12953
  • Thank you received: 1778
11 years 10 months ago #118817

Hi,

I just tested it and it seems to be working fine, did you edit the good view's file of the good front-end template ?

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

  • Posts: 32
  • Thank you received: 1
11 years 10 months ago #118819

Hi there,

Yes am absolutely sure of editing " the good view's file of the good front-end template" ? Attaching a screenshot for your reference. Thanks a lot for your reply.

Shivali

Attachments:

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

  • Posts: 12953
  • Thank you received: 1778
11 years 10 months ago #118824

The good file to edit is the listing_img_title file of the product views (and not category) of your front-end template :).

Last edit: 11 years 10 months ago by Mohamed Thelji.

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

  • Posts: 32
  • Thank you received: 1
11 years 10 months ago #118828

Hi Mohamed,

Thanks for your reply. I made the change to the product views but this still does not reflect on the front :( Please see atatched screenshot. Help!

Thanks
Shivali

Attachments:

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

  • Posts: 26253
  • Thank you received: 4040
  • MODERATOR
11 years 10 months ago #118842

Hi,

Are you editing the view for your front-end template ?
As you can see in this documentation, you can edit a view for the "front-end" or the "back-end". And in the second column, there is the name of the template that you want to create an override.
www.hikashop.com/support/documentation/1...-display.html#layout

You can use the filters at the top right in order to just display your front-end template. It will unsure you that you will edit the view for the good template.

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.
Last edit: 11 years 10 months ago by Jerome.

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

  • Posts: 32
  • Thank you received: 1
11 years 10 months ago #118844

Hi,

Yes it is the front end template. Wonder what I am missing?

Thanks.

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

  • Posts: 83989
  • Thank you received: 13604
  • MODERATOR
11 years 10 months ago #118947

Hi,

You're editing the view file listing_img_title but this view file doesn't display the description of the product which you said that your listing was displaying. So I guess that you aren't using the default item box layout "image and title" but the "image and description" one. In that case, you of course need to do the modification in the listing_img_desc view file instead of the listing_img_title view file.

The following user(s) said Thank You: shivali

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

  • Posts: 32
  • Thank you received: 1
11 years 10 months ago #118979

Thanks!! That works perfectly!

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

  • Posts: 32
  • Thank you received: 1
11 years 10 months ago #118995

Hi Nikolas,

Another question.

I am trying to list all products (around 20 in number) in one category on the same page in a list format i.e first product at top row, second below, third after that and so on....With each product I want the display to show the product name, the product description, the qty, the characteristics options and add to cart button. Can you help me with this please? Totally going nuts! Thanks!!

Shivali

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

  • Posts: 26253
  • Thank you received: 4040
  • MODERATOR
11 years 10 months ago #119065

Hi,

I am not Nicolas but I guess I can answer to that question.

You can use a product listing with the table layout, as in our demo website :
demo.hikashop.com/index.php?option=com_h...ng&Itemid=70&lang=en
You can override the view "product | listing_table" in order to customize the columns you want to display

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.
The following user(s) said Thank You: shivali

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

Time to create page: 0.090 seconds
Powered by Kunena Forum