Show product details in product list items

  • Posts: 29
  • Thank you received: 1
11 years 6 months ago #144730

-- url of the page with the problem -- : pharmacyshop.eu
-- HikaShop version -- : 2.2.3
-- Joomla version -- : 2.5.18

Hi,
Is it possible to show product details in product listing? I mean the 'Add to cart' button with the +/- signs and the amount text input and the custom fields,
Here is an example on what my customer wants to see in the product list as an item:
pharmacyshop.eu/index.php/kategoria/prod...ategory_pathway-3324
So we don't need the product details view, but we would like to see the details directly in the list.

Thanks

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

  • Posts: 2334
  • Thank you received: 403
11 years 6 months ago #144778

Hi there,

You'll find an answer on this topic: www.hikashop.com/forum/4-how-to/24521-ho...product-listing.html
It involves adding few lines of code though.

The following user(s) said Thank You: bendegoose

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

  • Posts: 29
  • Thank you received: 1
11 years 6 months ago #144791

Ok, thanks, I am going to check that topic.

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

  • Posts: 29
  • Thank you received: 1
11 years 6 months ago #145029

Hi,

I have checked the topic mentioned above and I could include the +/- sign and the amount input field, so thanks again. But if you check the link above in my first comment you can see there are additional elements I would show in the product list: custom fields and charcteristics. Can you help me in includinf them also in list view?
I did some experiment and modified listing_div.php where I replaced the reference to listing_img_title with the reference to show_default. I have also added the next line: $this->element = & $this->row;
It worked partly, so I could see a part of show_default view but it seems like the row object doesn't contain every data I need. Is there a method available at this point I can use for creating a proper element object, for example by $this->row->product_id?


Thanks.

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

  • Posts: 84243
  • Thank you received: 13689
  • MODERATOR
11 years 6 months ago #145067

Hi,

To display the custom product field in the listing, you an add such code in the listing_img_title view file of the product file:
<?php echo $this->row->FIELD; ?>
where FIELD is the column name of the custom product field.
There is however not possibility to add the characteristic on the listing unless you heavily modify the code of the view as there is a lot of data loading and processing and display modifications to do in order to be able to do that. We won't be able to provide a solution for that.

The following user(s) said Thank You: bendegoose

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

  • Posts: 29
  • Thank you received: 1
11 years 6 months ago #145134

Ok, thank you.

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

Time to create page: 0.074 seconds
Powered by Kunena Forum