Custom Fields

  • Posts: 120
  • Thank you received: 1
11 years 8 months ago #61367

Hello,

I do not know whether it is a bug or my blind eyes.
If it is not a bug, please help me to set it up properly.

I have several Custom Fields. But some of them do not sho up on some products, while they are shown on the neighboutring products in the SAME category.

Below are screenshots.


Custom Field Options:




Field selection in product editor:




Frontend resulting view, but this Custom Field is not shown:




Frontend, neighbouring product in the same category:

Attachments:

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

  • Posts: 120
  • Thank you received: 1
11 years 8 months ago #61468

I have already identified the issue by myself.
Those custom fields are not transparent when working together with Charecteristics.
If you look at full product page, HikaShop takes Specifications (also price, image and description) from each individual page of Characteristics (Manage Variants).

However, when you make product comparison at frontend, it takes Specifications from the main product page (not from Characteristics).
It seems in such a case I have to always duplicate data from Characteristics to main product page.

:whistle:

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

  • Posts: 81568
  • Thank you received: 13078
  • MODERATOR
11 years 8 months ago #61491

Hi,

Can you try to add the line:
if(empty($this->element->$fieldName) && !empty($this->element->main->$fieldName))$this->element->$fieldName = $this->element->main->$fieldName;

before the line:
if(isset($this->element->$fieldName))

in the file "show_block_custom_main" of the view "product" via the menu Display>Views ?

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

Time to create page: 0.082 seconds
Powered by Kunena Forum