Custom specification in product layout listing

  • Posts: 16
  • Thank you received: 1
9 years 10 months ago #214420

-- url of the page with the problem -- : www.bikkowebshop.be/hobbydoelen
-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.4

I want to try to get the custom specifications of my product in the product layout listing.
Is this possible?

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

  • Posts: 84079
  • Thank you received: 13636
  • MODERATOR
9 years 10 months ago #214425

Hi,

Sure. There is no option for that, but you can do it with a small modification.
Edit the file "listing_img_title" of the view "product" via the menu Display>Views and add such code:
<?php echo $this->row->field; ?>
where field is the column name of your field.

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

  • Posts: 16
  • Thank you received: 1
9 years 10 months ago #214484

Do i put it in a specific place in that file?
And is this correct. <?php echo $this->row-> afmetingen; ?>

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

  • Posts: 12953
  • Thank you received: 1778
9 years 9 months ago #214488

Hello,
You'll have to adapt the place where you'll place it in the file regarding how you exactly want it be displayed through your product listing.
Just keep in mind that if you want to place it inside PHP tags you'll just have to use that code echo $this->row-> afmetingen;

The following user(s) said Thank You: janic

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

  • Posts: 16
  • Thank you received: 1
9 years 9 months ago #214622

Okay this works.
But is it possible to ad the item name to it.
So that i have Afmetingen: result

Is it possible to add all specifications like this
Product specifications

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

  • Posts: 26256
  • Thank you received: 4041
  • MODERATOR
9 years 9 months ago #214625

Hi,

If you want to display a text or label before displaying the custom field value, for sure you can.
You can customize the display as you want.

Now in the product page, there is already some code to load and display the custom field.
You can use such kind of code in the product listing too ; it requires some PHP/Development skills but it is possible yes.

www.hikashop.com/support/support/documen...ize-the-display.html

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.

Time to create page: 0.062 seconds
Powered by Kunena Forum