UNDEFINED

  • Posts: 353
  • Thank you received: 10
  • Hikashop Business
2 days 14 hours ago #368400

-- Error-message(debug-mod must be tuned on) -- : UNDEFINED

Good morning Nicolas.
Many times I encounter an issue (I believe it usually happens after making some changes in the description or on the product page, although this is more of an assumption than a certainty): randomly, in the custom field of some feature, the word UNDEFINED appears, completely removing the original text that I had entered and that should normally be displayed.
I’m attaching two screenshots so you can see the original and the one showing the error.
Would you know why this happens or how to avoid it?

Attachments:

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

  • Posts: 84300
  • Thank you received: 13697
  • MODERATOR
2 days 9 hours ago #368403

Hi,

Could it be that you have a mass action which has this custom field configured somewhere ?
How is your custom field configured ? Could you provide a screenshot of its settings ?
Could it be that you're using a "WYSIWYG" type custom field ? Maybe the editor you're using was not able to load on the page and thus, when you saved, it couldn't provide the text and thus it returned "undefined" ? Try to switch to a textarea type custom field to see if you still have the issue. If you don't get the issue anymore, maybe switch to another editor, or event stick to the textarea type ?

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

  • Posts: 353
  • Thank you received: 10
  • Hikashop Business
2 days 9 hours ago #368405

Nicolas, by default I have the same configuration in all the custom fields. I’m sending you screenshots of one of the items that were affected, in case it helps. Please note that there is no bulk action configured for the custom fields.
If you need anything else, just let me know.
I look forward to your reply.
Best regards

Attachments:

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

  • Posts: 84300
  • Thank you received: 13697
  • MODERATOR
2 days 6 hours ago #368406

Hi,

Well, try to change the type of the field to "textarea" as I said. Then, continue using the website normally and see if you still have the problem or not.
If not, then what I described in my previous message is what is happening.
If you still have the problem, then the problem is not with the editor but with something else, like a mass action. But it could also be a plugin.

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

  • Posts: 353
  • Thank you received: 10
  • Hikashop Business
1 day 16 hours ago #368418

Hello.
Can you tell me how to change the type of the field to "textarea".
I don’t know how or where to do it. Can it be done from a point where the changes apply to all custom fields, or do I have to do it one by one?

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

  • Posts: 353
  • Thank you received: 10
  • Hikashop Business
1 day 16 hours ago #368419

Hello Nicolas, I think we are not talking about the same thing.
By custom fields, I’m not referring to HikaShop > Display > Custom Fields.
I mean that within the product page, in each characteristic, HikaShop allows you to include either a description or custom fields. It’s here, in the custom fields, where I specify promotions, dimensions, and additional information for each of the characteristics.
I’m not sure if I’m explaining myself clearly…

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

  • Posts: 84300
  • Thank you received: 13697
  • MODERATOR
1 day 12 hours ago #368421

Hi,

Go in the menu Display>Custom fields, edit that custom field, and change its "type" setting to "text area". Then, when you edit your products and variants, you'll have a simple text area, instead of the text editor for that custom field. That way, it will prevent issues with the editor not loading properly for that custom field when you edit a product or variant.

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

  • Posts: 353
  • Thank you received: 10
  • Hikashop Business
1 day 10 hours ago #368435

Hello Nicolas, I think we are not talking about the same thing.
By custom fields, I’m not referring to HikaShop > Display > Custom Fields.
I mean that within the product page, in each characteristic, HikaShop allows you to include either a description or custom fields. It’s here, in the custom fields, where I specify promotions, dimensions, and additional information for each of the characteristics.
I’m not sure if I’m explaining myself clearly…

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

  • Posts: 84300
  • Thank you received: 13697
  • MODERATOR
1 day 5 hours ago #368436

Hi,

I do understand what you're saying.
Again:
Go in the menu Display>Custom fields, edit the "promotions" custom field, and change its "type" setting to "text area". Then, when you edit your products and variants, you'll have a simple text area, instead of the text editor for that custom field. That way, it will prevent issues with the editor not loading properly for that custom field when you edit a product or variant and thus you should not loose the text for the variants / products in that custom field.

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

  • Posts: 353
  • Thank you received: 10
  • Hikashop Business
17 hours 14 minutes ago #368457

Hello Nicolas. There is no custom field called promotions. I’m just making use of the item configuration to provide additional information about each product variant.

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

  • Posts: 84300
  • Thank you received: 13697
  • MODERATOR
13 hours 25 minutes ago #368459

Hi,

Ok. Then, what are these screenshots about in this message of yours: www.hikashop.com/forum/install-update/90...ndefined.html#368405 ?
The screenshots indicate that you have the promotion text in an HTML editor in the "CAMPOS PERSONALIZADOS" area which is where the custom fields of the table "product" appear when you're editing a product or a variant.

Either:
- these are not real screenshots or not the screenshots you wanted to provide
- or you do have a custom product field where you specify your promotion text in each product or variant.
- or something else which I'm not aware of, and which prevents me from understanding the situation on your website properly.

Could you please clarify the situation ?

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

  • Posts: 353
  • Thank you received: 10
  • Hikashop Business
13 hours 9 minutes ago #368463

Nicolas, that section is within the configuration of all HikaShop products.
From the options you gave me, this is the one that most closely resembles (as I understand it) what I’m referring to.
"- or you do have a custom product field where you specify your promotion text in each product or variant"
If you need, I can give you access so that you can see in a specific product what I’m referring to…"

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

  • Posts: 84300
  • Thank you received: 13697
  • MODERATOR
9 hours ago #368464

Hi,

Then please do so via our contact form:
www.hikashop.com/support/contact-us.html

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

  • Posts: 353
  • Thank you received: 10
  • Hikashop Business
8 hours 54 minutes ago #368468

Submitted form

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

Time to create page: 0.079 seconds
Powered by Kunena Forum