Custom WYSIWYG field does not always show up

  • Posts: 38
  • Thank you received: 0
10 years 2 months ago #206693

-- url of the page with the problem -- : initiativeready.com
-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.1
-- PHP version -- : 5.4.42
-- Browser(s) name and version -- : Chrome 43.0.2357.130 m
-- Error-message(debug-mod must be tuned on) -- : N/A

I created a two custom product fields:

  1. Text: "Author(s)"
  2. WYSIWYG: "Related Links Product Information"
If you look at these two pages you will see that the WYSIWYG information does not show up (even though the record contains data).
  1. https://initiativeready.com/index.php/home/bk-pub-mnu/product/34-ccpm-goldratt (shows field)
  2. https://initiativeready.com/index.php/home/bk-pub-mnu/product/80-agile-project-management-with-scrum (does not show field)
I have included two screenshots of the back-end data, which you can correlate to the above links by the author name and one of the setup of the custom field.

I should add that the custom field is restricted to a set of categories that these two each belong to.

Any idea what is going on?


Cheers,
Todd
Attachments:
Last edit: 10 years 2 months ago by williamstdd.

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

  • Posts: 38
  • Thank you received: 0
10 years 2 months ago #206694

Okay, This has to do with variants. It appears that when you have a custom WYSIWYG product field and you have variants that three characters (tabs?) that are placed in the variant copy of the field. Deleting those three characters fixes the issue.

The variant window or editing is also in HTML mode and will not toggle back.

Can someone else verify this? If it is an issue for others I will log a bug.


Cheers,
Todd
Last edit: 10 years 2 months ago by williamstdd.

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

  • Posts: 26274
  • Thank you received: 4045
  • MODERATOR
10 years 2 months ago #206935

Hi,

Thanks for the report and sorry for the delay.
You should be able to re-download HikaShop 2.5.0 in order to get the patch.
Otherwise, you can apply it manually by editing the view "backend | your-backend-template | product | variant" and replacing

foreach($this->fields as $fieldName => $oneExtraField) {
By
$this->fieldsClass->prefix = 'variant_'.time().'_';
foreach($this->fields as $fieldName => $oneExtraField) {
Because the patch will be in the next release, you can otherwise directly edit the view file "administrator/components/com_hikashop/views/product/tmpl/variant.php" ; so you wouldn't have to remove the view next time you will update.

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.

  • Posts: 38
  • Thank you received: 0
10 years 2 months ago #206944

Thank you . That seems to have done it.


Cheers,
Todd

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

Time to create page: 0.058 seconds
Powered by Kunena Forum