Method: Workarea::Orderbot::ChildProduct#process

Defined in:
app/services/workarea/orderbot/child_product.rb

#processObject



14
15
16
17
18
19
20
21
22
# File 'app/services/workarea/orderbot/child_product.rb', line 14

def process
  raise ChildProductImportError, "Blank Sku for #{product_id}" if sku.blank?
  raise NoParentProductImportError, "No product found for #{product_id}" if product.blank?

  save_variant
  save_price
  save_shipping_sku
  set_product_filters
end