kevin-doselection / 951753258

0 stars 0 forks source link

[Walmart API] Product update "price,qty" via php #70

Closed kevin-doselection closed 7 years ago

kevin-doselection commented 7 years ago

Jess do you know php? We are working on Walmart API to sync our product qty and price in Magento. API document: https://developer.walmartapis.com/

Single Update Trigger Event: Save in product detail page image

Bulk Update Trigger Event: Update action in product list image

FTP Host: ltsport.com Username: ftp@ltsport.com Password: WrensPreysAftersWens27 Port: 21

Path: /ltsport.com/html/app/code/local/Walmart/Api/Model (for single product update) File: Observer.php

Path: /ltsport.com/html/app/code/local/Walmart/Api/Model/vendor (for single product update) File: bilal.php save_w.php

Path: /ltsport.com/html/app/code/local/Magentizer/Bulkupdate/controllers/Adminhtml (bulk update) File: BulkproductController.php

Web URL: https://www.ltsport.com/index.php/admin/ Username: walmartapi Password: walmart123

lihaolihao commented 7 years ago

I read it, so what should I do?

kevin-doselection commented 7 years ago

Objective is make update function working. For now, inventory update is working. However price is not. We need to find out why the price is not update via bulk function.

lihaolihao commented 7 years ago

ok,follow up.Are you sure inventory updates working?I'm update for single product,but site pages only appear number 12.Last,this problem has recently appeared or has been,pls tell me,thank!

lihaolihao commented 7 years ago

Prompt “Error on saving product walmart:”,connection problems.

kevin-doselection commented 7 years ago

Got it. If it shows 12, seems okay. However might just update the qty only not price.

Also, I opened an account for you to check the price and qty in Walmart.com system.

URL: seller.walmart.com Username: skykevin77@gmail.com Password: Walmart123! Path: ITEMS & INVENTORY > Manage Items > Filter "Full sku" (Partial won't work)

lihaolihao commented 7 years ago

no function of saveprice.The code looks a bit confusing.

kevin-doselection commented 7 years ago

no wonder. please backup first before editing. and try to add price into the code.

lihaolihao commented 7 years ago

Method does not work,can you see it?

kevin-doselection commented 7 years ago

did you saw the price still not change but qty did in seller.walmart.com?

I know that price not worked. but can you fix it?

lihaolihao commented 7 years ago

I know qty can worked but price not worked.I know that price method is missing,so I write the price mothod but it still not worked,I don't know what the problem is. /ltsport.com/html/app/code/local/Walmart/Api/Model/vendor/fillup/walmart-partner-api-sdk-php/src/Price.php File: Price.php This file is not price "update" method,you can check it.

kevin-doselection commented 7 years ago

I see. Did you check "uploadAction" event in BulkproductController.php at app/code/local/Magentizer/Bulkupdate/controllers/Adminhtml ? the price is missing, maybe it's the issue.

lihaolihao commented 7 years ago

I know there the price is missing,but the most fundamental reason is the lack of updateprice methods. look at /ltsport.com/html/app/code/local/Walmart/Api/Model/vendor/fillup/walmart-partner-api-sdk-php/src/Price.sample.php,You will find that there is a lack of "uploadAction" event,so website can't call WAL-MART API,the result is not updated price.You can compare the inventory method at /ltsport.com/html/app/code/local/Walmart/Api/Model/vendor/fillup/walmart-partner-api-sdk-php/src/inventory.php I tried many times but failed. Look at the following figure, this is my own added code, code comparison of the inventory method, and now the problem appears in the red circle where I do not know how to add, can not understand the original author's intention. So this is the problem to be solved. qq 20170105172235

kevin-doselection commented 7 years ago

Please try to check another way. Path: /ltsport.com/html/app/code/local/Magentizer/Bulkupdate They said single product update and bulk update are different.

lihaolihao commented 7 years ago

still not worked. qq 20170106175925

kevin-doselection commented 7 years ago

Pause this issue first