0
A
回答
0
Magento的EAV系統在幾個文件中相當串聯,所以你不會找到一個能夠完成你想要的功能。如果你確實去找它並改變它,你也會改變Magento中大多數其他對象所使用的保存方法,這可能不是你想要的。
要做您想做的事情,請嘗試設置目錄產品在保存時使用的事件的觀察者/偵聽器,即catalog_product_save_before
或catalog_product_save_after
。這樣,你不必破解框架。
希望有幫助!
謝謝, 喬
0
http://www.magentocommerce.com/wiki/doc/webservices-api/api/catalog_product#catalog_product.create怎麼樣?
+0
以及那不會退出我正在尋找即時通訊尋找找到「法師」裏面的核心功能,當我添加一個產品從後端插入產品到數據庫中。 – jarus 2010-07-30 08:44:39
1
$client = new SoapClient('http://www.magentolocal.it/api/?wsdl');
$session = $client->login('productloader', '1234567890');
$sku = "123456";
$attrs['name'] = "Template #1";
$attrs['description'] = "This is the first template.";
$attrs['short_description'] = "This is the short description of the template";
$attrs['websites'] = array('1');
$attrs['price'] = "11.53";
$attrs['categories'] = array('35');
$attrs['images'] = array()
$result = $client->call($session, 'catalog_product.create', array('simple', '63', $sku, $attrs));
echo $result;
$client->endSession($session);
相關問題
- 1. Magento產品插入方法
- 2. Magento產品插入錯誤
- 3. 插件產品與功能產品
- 4. 不能爲產品Magento 1.9
- 5. 點產品功能
- 6. magento rest加入stockitems產品
- 7. magento促銷產品導入?
- 8. Magento Reindex產品
- 9. 產品在Magento
- 10. 產品的兩個功能
- 11. Tycho的產品和功能
- 12. itertools的產品功能
- 13. jQuery產品過濾功能
- 14. 產品過濾功能
- 15. 的功能/強調產品
- 16. 產品頁面上的Magento折扣優惠券功能
- 17. Magento - 具有許多屬性的產品平面功能
- 18. Magento - 按產品編號排序產品
- 19. Magento產品排序產品分類
- 20. Magento捆綁產品從產品ID
- 21. Magento Bundle產品 - 選擇產品變體
- 22. Magento的1.7產品圖像導入未分配圖像產品
- 23. 加入產品對比magento使用產品屬性(類別)
- 24. Magento在可配置產品中導入未分配產品
- 25. 將Magento產品列表導入xml產品列表
- 26. Magento - 導入所有產品/進口產品庫存的區別?
- 27. Magento如何將產品組鍵入數據庫中的產品
- 28. Woocommerce,插入多個產品
- 29. PrestaShop - 插入產品腳本
- 30. 產品在magento中成功導入時調用函數
哪些產品?哪個選項?哪個數據庫? – Manjoor 2010-07-30 06:32:27
我只需要找到簡單產品的插入功能。 – jarus 2010-07-30 07:30:22
你已經說過了。請明確說明。 – whiskeysierra 2010-07-30 07:49:12