2015-01-02 40 views

回答

4

是的。該值限制爲65,535個字符,與MySQL TEXT列相同。 鍵限制爲30個字符,名稱空間限制爲20個字符。

https://groups.google.com/forum/#!msg/shopify-app-discuss/os_Ll7PChGg/jpQgOKwSANEJ http://docs.shopify.com/api/metafield#create

+0

明白了,謝謝兄弟。 – Sark

+1

作爲參考,metafield描述字段限制爲255個字符。如果您嘗試保存更大的內容,則會出現此錯誤:{'description':['太長(最多255個字符)']} – sansjoe

3

The key is limited to 30 characters, and the namespace has a maximum of 20 characters

關於值的長度,see here

The current implementation of a metafield value field is a MySQL TEXT column... a TEXT column has a maximum length of 65535 (2^16 - 1) characters. I’m not encouraging you to start storing enormous blobs, but the limit is pretty big.

此外,還有你能有多少metafields沒有限制(見herehere)。

+0

感謝您的詳細解釋。 – Sark