Comments (4)
Please provide the request details you made and response gotten / expected response
from woodroid.
Thank you for your prompt response.
This is the product i want to update
I followed your examples
In ViewModel:
public WooLiveData updateProduct(int id, Product product) {
return productRepository.update(id, product);
}
and the ProductRepository
public WooLiveData update(int id, Product product) {
final WooLiveData callBack = new WooLiveData();
woocommerce.ProductRepository().update(id, product).enqueue(callBack);
return callBack;
}
As you can see, the attributes are gone. When I check it on the woocommerce site, there is no attribute associated with it again but the Attributes are still listed in the Attribute page on the admin site
from woodroid.
I am not able to fix this at the moment, but I do believe the issue is because of the field productAttributes in the Product class, needs to have an attribute
@SerializedName("attributes")
lateinit var productAttributes: ArrayList<ProductAttribute>
from woodroid.
I finally found the solution.
The attributes in the Product object to be updated has its visible and variable properties set to false and the option property set to null.
So, I have to correct those and it worked.
Thank you for your time sir
from woodroid.
Related Issues (20)
- How to check coupon code valid or not? HOT 1
- Cart Respositiory Issue HOT 7
- Sign in through customer credentials HOT 6
- 401 Unauthorized HOT 5
- how to get user_meta_data and product_meta_data HOT 4
- Some type me.gilo.woodroid.xxx.xxx is defined multple times HOT 2
- how to request products using java ?? HOT 1
- ActivityManager: Invalid packageName: me.gilo.woodroid.app
- Pro-Guard
- Orders Pojo class fields mismatch
- How to apply filtering
- What if we want to retrieve values one by one?
- update the serialized name of shipping_address to shipping in Order.java
- woocommerce_api_authentication_error after change server's dns
- Please update model variables HOT 1
- Unable to create customer, without password
- Security Concern on saving secret in app
- CartRepository Not Working @Deprecated
- Order webhook
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from woodroid.