Open microdesign opened 8 years ago
Is not a extend of any model. If you have configured the facade, you just need to call it as a static function of class Shop On Mar 25, 2016 5:04 AM, "Martin Tonev" notifications@github.com wrote:
I don't find a way to extend your 'placeOrder' method in my models or anywhere
— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/amsgames/laravel-shop/issues/46
I know this - I dont know how (I start work on one project where your package is used) and after this line '$order = Shop::placeOrder();' code dont throw error but is not executed.
So I try to do something after this method create order, but code just break without error on this line.
Is your cart filled? On Mar 25, 2016 8:11 AM, "Martin Tonev" notifications@github.com wrote:
I know this - I dont know how (I start work on one project where your package is used) and after this line '$order = Shop::placeOrder();' code dont throw error but is not executed.
So I try to do something after this method create order, but code just break without error on this line.
— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/amsgames/laravel-shop/issues/46#issuecomment-201297947
This is the peace of code
`Shop::setGateway('customPaypalExpress');
$cart = Cart::Current();
$cart_total = $cart->total;
$order = Shop::placeOrder();`
CustomPaypalExpress, is that your custom gateway? On Mar 25, 2016 8:16 AM, "Martin Tonev" notifications@github.com wrote:
This is the peace of code
`Shop::setGateway('customPaypalExpress');
$cart = Cart::Current(); $cart_total = $cart->total; $order = Shop::placeOrder();`
— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/amsgames/laravel-shop/issues/46#issuecomment-201301083
Yes - I found something else interesting. I was able to add coupon code which is more than the cart order and was able to try to pay which landed me to error.
Yep this '$cart->addCoupon($coupon);' allow me to add coupon code which is more that total of order and I get one negative value lie '-$100'
I don't find a way to extend your 'placeOrder' method in my models or anywhere