2012-05-11 27 views
0

我正在使用shipworks进行装运,并从购物商店拉取订单数据。现在我想拉一个不受shipworks xml支持的新订单字段。可能是什么从购物商店拉出不支持的订单字段并将其显示在shipworks订单网格上的可能方式。 任何帮助如何将自定义参数拉到shipworks并在订单网格中显示

+0

我已经与Shipworks一起工作了一下Magento,并且我建议从编辑站点根目录下的shipworks3.php连接器开始。我发现Shipworks支持非常有帮助,因此可能值得用同样的问题给他们打电话。 – seanbreeden

回答

1

我们需要添加一些自定义的信息和shipworks是非常有益的,我们得到了它做。 如果你打开shipworks3.php文件,你会看到周围线路760

// Uncomment the following lines to include a custom product attribute in the downloaded data. 
     // These will appear as Order Item Attributes in ShipWorks. 
     //$product = Mage::getModel('catalog/product'); 
     //$productId = $product->getIdBySku($sku); 
     //$product->load($productId); 
     //$value = $product->getAttributeText("attribute_code_here"); 
     //if ($value) 
     //{ 
     //  // write the gift message as an attribute 
     //  writeStartTag("Attribute"); 
     //  writeElement("Name", "Attribute_title_here"); 
     //  writeelement("Value", $value); 
     //  writeCloseTag("Attribute"); 
     //} 

下面您可以使用属性或者调整它的顺序属性。 如果您让我知道您要导入的订单详情,我可以提供更多指导。

相关问题