product custom field

  • Posts: 9
  • Thank you received: 0
13 years 9 months ago #8200

Hi,
I would like to create a category listing where for each product I would display as usually
- product image
- product name
- price and add to cart button
- and also 3 or 4 custom fields

I'd like to display all of those in a table, one product per row

Is this possible, how can it be done ?

Thanks,

Pascale

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 9 months ago #8201

Hi,

Custom item fields can only be displayed on the product page for the moment.

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

  • Posts: 9
  • Thank you received: 0
13 years 9 months ago #8205

Thanks !

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

  • Posts: 74
  • Thank you received: 1
13 years 8 months ago #10502

Is it possible to add the custom fields to the "views - front-end - listing_img_title" view ?

I can see where it goes, but when I copied the code from the "views - front-end - product - show" view it broke, of course.

Any ideas?

Thanks

Attachments:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 8 months ago #10512

You can try to put the code inside the form few lines below. But that will probably break too :)

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

  • Posts: 74
  • Thank you received: 1
13 years 8 months ago #10687

I think it will as there isn't provision in the code to pull in the variables, and Im not at a level to do this depth of customisation.

Would be really good to be able to show any of the product info in the products list or grid.

I have for example;


[ picture ]

Title of product
Artist
Year

Add to cart


Would be nice. ;)

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 8 months ago #10688

If you just want to DISPLAY custom product fields values in the listing, you can easily do so by adding something like this:

echo 'CUSTOM_FIELD_LABEL : '.$this->row->CUSTOM_FIELD_COLUMN_NAME;

Where you can replace the CUSTOM_FIELD_COLUMN_NAME and CUSTOM_FIELD_LABEL by the values of your custom product field.

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

  • Posts: 74
  • Thank you received: 1
13 years 8 months ago #10698

worked a treat!

thank you


Similar question, can I display the product code as well, what is the variable name for it , or is there a back end way to display the product code on the product detail page?

Thanks

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

  • Posts: 74
  • Thank you received: 1
13 years 8 months ago #10699

duh!

its product_code

thanks

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

Time to create page: 0.084 seconds
Powered by Kunena Forum