How to extend the limitation of character in the attribute code on M2.2.x?

Created by Jane D, Modified on Mon, 31 Aug 2020 at 02:50 PM by Jane D

QUESTION: 

I use Bss_DependentCustomOption v1.0.9 on our Magento 2.2.4. I created attributes code more than 30 characters but it doesn't work. 

Can you help me?


ANSWER:

On Magento 2.2.x, the attributes code limits in 30 characters, however, on Magento 2.3.x, the attribute code's limitation is 60 characters.


In case you would like to extend the attribute code limitation, please edit the files as below:


+ app/code/Bss/DependentCustomOption/Block/Render/DependentControl.php


+ app/code/Bss/DependentCustomOption/Setup/Uninstall.php


+ app/code/Bss/DependentCustomOption/Setup/UpgradeData.php


Or download the files attached below and overwrite the current files on your site.


If there is anything else we might help you, please do not hesitate to contact us. We'd be happy to support.



Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article