English 中文(简体)
添加现有可塑产品马根托的新特性
原标题:Add new attribute to existing configurable product magento

我有大约500种可塑产品,我需要添加新的特性。

例如,他们已经以科罗为属性。 我将如何把玉米添加到现有的可塑产品中?

最佳回答

Adding the attribute to the attribute set and then updating all the simple products attributes is not sufficient. Magento asks what configurable attributes to use when you initially create a configurable product; the new attribute will therefore not be applied to existing configurable product(s) and their child products. I ve tested the below DB workaround hack on CE 1.6.2 and it seems to be working:

  1. Create attribute
  2. Drag it to appropriate attribute set
  3. Go to phpmyadmin, table ‘catalog_eav_attribute’ and look at the last one, note the ‘attribute id’, also note the product id -> go to catalog_product_entity and look for the configurable product you want, and note entity_id -> this is the product_id
  4. Go to catalog_product_super_attribute and insert new record with product_id and attribute_id, note of the product_super_attribute_id
  5. Go to catalog_product_super_attribute_label and insert new record with product_super_attribute_id and the value of your new attribute, like ‘Color’ or ‘Size’ which you used when adding the attribute in the admin
  6. Go back to admin and click the configurable product, you will notice none of your child products is associated to your configurable product.
  7. Click one of the child products, and select appropriate attribute value, you may also change the sku.
  8. Export all child products and add the new attribute and sku values to it, import it back and you are done or you may have to manually change all in the admin without using the dataflow.

credit: http://www.magentocommerce.com/boards/viewthread/43288/#t330918

问题回答

You define this attribute in attribute set that is used and then update all products with dataflow

If size is an intended configurable attribute, I m not sure this will be so easy. Magento does not allow you to redefine the attributes upon which an item is configurable after creation time.

在设定属性并将其添加到属性后,你很可能需要打上数据库,使属性能够被证明。 这意味着,你的简单儿童产品也需要修改,以便具有规模特性。

Good luck. 确保回来,告诉我们,你做了什么工作。

Thanks, Joe

在编辑产品而不是管理辅助产品时添加归属感。

对我来说,这部汽车将自己添加到产品中。 硫酸盐以及该属性规定的所有其他产品。

www.un.org/Depts/DGACM/index_spanish.htm 实际上,现在没有任何麻烦的是利用管理辅助人员科增加新的属性。

开放可塑产品时选择重复、选择旧的和新的属性,在没有SKU的情况下复制,然后删除原始可塑产品和简单产品。 之后,你可以让同一个SKU重复。 然后,你才需要生产新的简单产品。

如果没有许多简单的产品,它就会迅速工作。





相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签