shuup.core.shortcuts package¶
Module contents¶
-
shuup.core.shortcuts.
update_order_line_from_product
(pricing_context, order_line, product, quantity=1, supplier=None)[source]¶ Update OrderLine data from a product.
This is a convenience method for simple applications.
Parameters: pricing_context (shuup.core.pricing.PricingContextable|None) – Pricing context to use for pricing the line. If None is given, the line will get zero price and zero discount amount.