Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend #46

Open
microdesign opened this issue Mar 25, 2016 · 7 comments
Open

Extend #46

microdesign opened this issue Mar 25, 2016 · 7 comments

Comments

@microdesign
Copy link

I don't find a way to extend your 'placeOrder' method in my models or anywhere

@amsgames
Copy link
Owner

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" [email protected] 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
#46

@microdesign
Copy link
Author

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.

@amostajo
Copy link
Collaborator

Is your cart filled?
On Mar 25, 2016 8:11 AM, "Martin Tonev" [email protected] 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
#46 (comment)

@microdesign
Copy link
Author

This is the peace of code

`Shop::setGateway('customPaypalExpress');

    $cart = Cart::Current();
    $cart_total = $cart->total;

    $order = Shop::placeOrder();`

@amsgames
Copy link
Owner

CustomPaypalExpress, is that your custom gateway?
On Mar 25, 2016 8:16 AM, "Martin Tonev" [email protected] 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
#46 (comment)

@microdesign
Copy link
Author

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.

@microdesign
Copy link
Author

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants