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

  • Posts: 14
  • Thank you received: 0
13 years 7 months 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: 13 years 7 months ago by garzarath. Reason: Closing

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 7 months 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
13 years 7 months ago #12894

Thanks!!!

it worked.

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

Time to create page: 0.040 seconds
Powered by Kunena Forum