Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. $product = $productRepo->get($_sku);
  2. $product->setStockData(['qty'=>$new_qty,'is_in_stock'=>($new_qty > 0 ? true : false)]);
  3. $product->save();
  4.  
  5. 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