- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Can anyone help me to figure out the issue?
I am using $Prodcut->save(); this code to update product from code and the values are updating but "Use Default Values". Please see the attached screenshot also.
Thanks,
Rahul Y
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have fixed this issue with the following changes in my code.
$productIDs[] = $productID;
$productActionObject = $objectManager->get('Magento\Catalog\Model\Product\Action');
$productActionObject->updateAttributes($productIDs, array('price' => $v4['Price']), 0);
This is working. Please close this ticket.
Thanks & Regards
Rahul yadav
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: "Use Default Values" Checkbox Unchecked While Update Product Programatically
Can anyone help me to figure out this?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have fixed this issue with the following changes in my code.
$productIDs[] = $productID;
$productActionObject = $objectManager->get('Magento\Catalog\Model\Product\Action');
$productActionObject->updateAttributes($productIDs, array('price' => $v4['Price']), 0);
This is working. Please close this ticket.
Thanks & Regards
Rahul yadav
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: "Use Default Values" Checkbox Unchecked While Update Product Programatically
can you explain it in brief
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: "Use Default Values" Checkbox Unchecked While Update Product Programatically
I'm bit confused in How to use it in my code
please explain it in brief.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: "Use Default Values" Checkbox Unchecked While Update Product Programatically
I'm having the same issue. Looked this problem up and it seems that this is still a known issue in the codebase. Please verify if this is the suggested solution to this existing bug reported in the link below.