Skip to main content

Custom WYSIWYG field does not always show up

More
11 years 3 months ago - 11 years 3 months ago #206693 by williamstdd
-- 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. [url] initiativeready.com/index.php/home/bk-pu...uct/34-ccpm-goldratt [/url] (shows field)
  2. [url] initiativeready.com/index.php/home/bk-pu...anagement-with-scrum [/url] (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
Last edit: 11 years 3 months ago by williamstdd.

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

More
11 years 3 months ago - 11 years 3 months ago #206694 by williamstdd
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: 11 years 3 months ago by williamstdd.

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

More
11 years 3 months ago #206935 by Jerome
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
Code:
foreach($this->fields as $fieldName => $oneExtraField) {
By
Code:
$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.

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

More
11 years 3 months ago #206944 by williamstdd
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.208 seconds
Powered by Kunena Forum