craftcms / shopify

Synchronize and extend product data from your Shopify storefront.
MIT License
44 stars 25 forks source link

Request: Increase max character limit on input field #25

Closed idawgik closed 1 year ago

idawgik commented 3 years ago

We have a client using this fieldtype to add Shopify products to their blog posts. However, they are running into an error selecting products where it says "[FIELDNAME] should contain at most 255 characters.".

There aren't any settings in the plugin to adjust that. Some of their products have a lot of variants, so the name with the skus appended gets pretty long. This is causing them not able to add the products they want.

Is there a way to increase this limit? Or add an option to control what this limit is such as with a standard text input fieldtype?

nmaier95 commented 3 years ago

Seems to me like some limitation by your database field settings. You might have to increase that If possible. Else you might need to think of some different sort of saving your "bigger" load of data (or fetch it async on page load or something...?). This plugin doesn't restrict you on how/where to save your product data.

idawgik commented 3 years ago

Well, in Craft CMS for the default plain text fields, there's an option to change what database field type is used under the advanced section of the field settings. That doesn't exist for this plugin, so outside of modifying it directly in MySql, there isn't a way to change it.

Ideally the plugin could be updated to provide the same option to update the database field type from the admin, same as the Plain Text fieldtype in native Craft CMS.

nmaier95 commented 3 years ago

Oh ok, didn't know. Feel free to create a PR to modify field settings.

AugustMiller commented 1 year ago

Hi, all!

Now that the plugin is under Pixel & Tonic’s wing, we've released version 3.0 which includes a number of fixes.

The updated field type uses Craft’s native relations system, so there are no more limitations on the number of products you can attach.