Created
February 6, 2013 09:55
-
-
Save snetty/4721536 to your computer and use it in GitHub Desktop.
set default shipping and payment methods in lemonstand
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function extend_order_model($order){ | |
if($order->is_new_record()){ | |
$order->shipping_method = Shop_ShippingOption::create()->find_by_ls_api_code('no_shipping_required'); | |
$order->payment_method = Shop_PaymentMethod::create()->find_by_ls_api_code('default'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment