Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $product = $productRepo->get($_sku);
- $product->setStockData(['qty'=>$new_qty,'is_in_stock'=>($new_qty > 0 ? true : false)]);
- $product->save();
- CONCAT(LOWER(REPLACE(remove_non_alphanum_char_f(TRIM(`Description`)), ' ', '-')), '-', `Internal ID`,FLOOR(10000 + RAND() * 89999)) AS url_key
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement