简体   繁体   English

可配置产品中的Magento属性排序顺序

[英]Magento Attribute Sort Order in Configurable Product

I need help with the following: 我需要以下帮助:

In Magento I have created a configurable product and assigned some simple products to it. 在Magento中,我创建了一个可配置的产品,并为其分配了一些简单的产品。 They have an individual attribute set with individual, numeric attributes that I have created. 它们具有由我创建的单个数字属性设置的单个属性。

One attribute is for example "length". 一种属性例如是“长度”。 This attribute has the following values: 3,4,5,6,7,8,9,10,12,14,16,18,20 此属性具有以下值:3,4,5,6,7,8,9,10,12,14,16,18,20

If I open the drop-down menu on the article details page, the values get displayed like that: 10,12,14,16,18,20,3,4,5,6,7,8,9 如果我在文章详细信息页面上打开下拉菜单,则值将显示为:10,12,14,16,18,20,3,4,5,6,7,8,9

Thus, it seems that the attributes are saved as text (alphanumerical?) and not as numbers (numerical)?! 因此,似乎属性被保存为文本(字母数字?)而不是数字(数字)?!

I need some advice on how I can change that. 我需要一些有关如何更改它的建议。 I have tried to work with "Input Validation for Store Owner" in "Manage Attributes", but that doesn't work. 我曾尝试在“管理属性”中使用“商店所有者的输入验证”,但这不起作用。 Is there fe any field in my database where I can simply switch the way my attributes are saved/displayed? 数据库中是否有任何字段可以简单地切换保存/显示属性的方式?

I have created many products and attributes, thus I don't want to re-create all of them again, if not necessary. 我创建了许多产品和属性,因此,如果不需要,我不想再次重新创建所有产品和属性。

Thanks for any reply. 感谢您的答复。

It has been a long time since you asked and might be you have already found a solution to it. 自您询问以来已经有很长时间了,也许您已经找到了解决方案。 I am just writing so that anyone coming on this page for the same problem does not have to go thru the same pain what i went thru. 我只是在写信,以便任何人在进入此页面时遇到相同的问题都不必经历我所经历的相同痛苦。

When you create the attribute(length), you would have created the options (like 3/4/5.. etc) create the sort of that options in the attribute section and they will sort as per your requirement. 当创建属性(长度)时,您已经创建了选项(例如3/4/5 ..等),并在属性部分中创建了该选项的种类,它们将根据您的要求进行排序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM