-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
shipperhq_shipping_group attribute issue on save #30
Comments
You shouldnt be manipulating this field in the magento admin, its synchronised automatically with ShipperHQ via the extension and is connected to the data from the ShipperHQ server. If you are re-saving it we couldnt be certain at all how Magento would handle it. If you look at https://github.com/shipperhq/module-shipper/blob/master/src/Setup/InstallData.php it shows how this attribute should be setup. source_model -> Magento\Eav\Model\Entity\Attribute\Source\Table This is what you need to get it back to. If you are struggling to do this let us know and we can assist over email. Closing issue. |
Hi @wsakaren! Is there some way for you guys to prevent shop owners from saving these special product attributes? In our case, it's these attributes:
If it wouldn't be possible to save those attributes from the Magento backend, it would prevent this from happening and that would be a nice addition to your extension. Thanks! |
Hey @hostep Unfortunately that's outside the control of our module. They're just regular Magento attributes. If you do find a way, it would be great if you can submit a PR and we will merge it into the main code base. |
Thanks @wsajosh Hmm, I'm wondering though why the |
Hey @hostep It's a very weird scenario and not one that we're able to reproduce on our own local installs, but have seen it on a handful of customer sites. It usually affects a lot of attributes rather than just our ones also which is another reason we've not dug into this deeply. It appears to be a Magento issue, there's various articles on stack overflow or similar sites with the same issue. |
Thanks for the comment @wsajosh. |
Hello,
We've noticed an issue with shipperhq_shipping_group product's attribute.
When trying to re-save it (in our case new options were added) from admin (Stores -> Attributes -> Product) it changes its configuration
From:
backend_type -> text
attribute_model -> null
source_model -> null
To:
backend_type -> varchar
attribute_model -> Magento\Catalog\Model\ResourceModel\Eav\Attribute
source_model -> Magento\Eav\Model\Entity\Attribute\Source\Table
As the result, shipperhq group can't be updated for existing products (which uses "text" backend type).
Magento version - EE 2.1.4
Thanks
The text was updated successfully, but these errors were encountered: