woocommerce / woocommerce/wc-api-python
unable to update a product
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Python
- Sterne
- 216
- Forks
- 108
- Ø Merge
- 6 Std. 34 Min.
- Gemergte PRs (30 T.)
- 1
Beschreibung
I am trying to update products in my store. But, the put/post methods do not work at all. The requests are executed but there are no changes in the product's properties.
I gave my homepage URL as the url param, and the permalink in the wordpress is set to something like https://my-website.co.il/year/month/day/sample-post/. below is the constructor defined
wcapi = API(
url=STORE,
consumer_key=DEV,
consumer_secret=SECRET,
wp_api=True,
version="wc/v2",
query_string_auth=True
)
and here is how I update a product
wcapi.put("products/4713", data={'price':'0.15'}).json()
and then it returns the product with old price.
Actually, the product is not updated and still it does not give an error.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, den Aufruf wcapi.put("products/4713", data={'price':'0.15'}) mit der gezeigten API-Konfiguration zu reproduzieren, und untersuche die zurückgegebene Antwort sowie den Produktstatus. Verfolge den Anfragepfad durch den Python-Wrapper und das Verhalten der WooCommerce API; abgeschlossen ist die Untersuchung, wenn die Ursache dafür identifiziert ist, dass das Produkt unverändert bleibt und kein Fehler auftritt, und das Aktualisierungsverhalten überprüft wurde.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python, wordpress
- Bereich
- api, backend
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 30/100