(Solved) How to query custom field on show.php

  • Posts: 14
  • Thank you received: 0
14 years 1 month ago #12878

Hi,

I have a product custom fiels named 'semana' that I need to query in the show.php file.

I also have product variants.

I try to use:

$this->element->semana

to query this value but It always give me the child value no the main product (parent) value.

I don´t want my customer to fill the value to 'semana' in each child because they will alway have the same value than the main product.

How can I refer to the parent?

Thanks

Last edit: 14 years 1 month ago by garzarath. Reason: Closing

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

  • Posts: 83777
  • Thank you received: 13561
  • MODERATOR
14 years 1 month ago #12888

Hi,

it should be: $this->element->main->semana

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

  • Posts: 14
  • Thank you received: 0
14 years 1 month ago #12894

Thanks!!!

it worked.

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

Time to create page: 0.057 seconds
Powered by Kunena Forum