프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$order | The order repository instance. |
메소드 | 설명 | |
---|---|---|
__construct ( |
Create a new controller instance. | |
addToOrder ( string $destination, integer $productId, Illuminate\Http\Request $request ) : Response | Adds the selected product to the BASE cart. | |
addToOrderById ( [type] $orderId, [type] $productId, Illuminate\Http\Request $request ) | Allows adding products to a specific order and create new wish lists. | |
cancel ( $orderId, Illuminate\Http\Request $request ) : Response | cancels one of the user orders. | |
checkOut ( ) : Response | Starts the checkout process. | |
checkOutResume ( integer $addressId ) : Response | Starts the checkout process. | |
closeOrder ( $order_id ) | Changes the status of an order to close, so the user can now check if received. | |
commentOrder ( $order_id ) : App\Http\Controllers\json | function to action to deliver virtual products. | |
createWishList ( ) : view | Show the create wish list form. | |
deliveryVirtualProduct ( $orderId, $productId, Illuminate\Http\Request $request, $ajax = true ) : App\Http\Controllers\json | function to action to deliver virtual products. | |
destroy ( integer $order_id, string $type ) : void | Remove the specified resource from storage. | |
fromGuestToUser ( $ordersController ) | fromGuestToUser This method is able to transfer all the guest shopping cart user to an user cart order. | |
mailtest ( ) | ||
modalDetailsProductCart ( ) : view | function, to lift the Modal to display the details product in the card (Only this seller). | |
moveFromOrder ( integer $origin, integer $destination, integer $productId ) : Redirects | Removes the selected item from the cart, and stores it back in the Later Cart. | |
placeOrder ( $type ) : Response | Starts the checkout process. | |
rateOrder ( $order_id ) | function to action to rate both the order and its content. | |
rateProduct ( Illuminate\Http\Request $request ) | ||
rateSeller ( Illuminate\Http\Request $request ) | ||
removeFromOrder ( string $orderName, integer $productId, $idOrder = '' ) : Redirects | Removes the selected item from the cart. | |
reports ( $type, $filter ) | ||
sendOrder ( $order_id ) | Changes the status of an order to pending, so the process can start. | |
showCart ( ) : view | Show the contents of the user Cart. | |
showDetailsProductCart ( $id, Illuminate\Http\Request $request ) : App\Http\Controllers\json | get keys registered (Only this seller). | |
showOrder ( $id ) : view | ||
showSellerOrder ( integer $id ) : Response | Display the specified resource. | |
showWishList ( $id = '' ) : view | Show the contents of a wish list. | |
startOrder ( $order_id ) | Changes the status of an order to pending, so the process can start. | |
storeComment ( Illuminate\Http\Request $request ) : App\Http\Controllers\json | function to action to deliver virtual products. | |
storeWishList ( Illuminate\Http\Request $request ) : Response | Create the new wishList with a description. | |
updateQuantity ( $orderId, $orderDetailId, $newValue ) : Response | this method is able to update the quantities values in the shopping cart. | |
usersOrders ( Illuminate\Http\Request $request ) : view | Shows the seller wich orders he/she has pending. | |
wishListDirectory ( ) : view | wish list directory. |
메소드 | 설명 | |
---|---|---|
addToCartVirtualsProduct ( $product, $email, $orderId, $quantity ) : view |
public __construct ( |
||
$order | ||
리턴 | void |
public addToOrder ( string $destination, integer $productId, Illuminate\Http\Request $request ) : Response | ||
$destination | string | type or order ('cart','later',etc) |
$productId | integer | The id of the product to be added |
$request | Illuminate\Http\Request | |
리턴 | Response |
public addToOrderById ( [type] $orderId, [type] $productId, Illuminate\Http\Request $request ) | ||
$orderId | [type] | |
$productId | [type] | |
$request | Illuminate\Http\Request | [laravel object] |
public cancel ( $orderId, Illuminate\Http\Request $request ) : Response | ||
$request | Illuminate\Http\Request | |
리턴 | Response |
public checkOutResume ( integer $addressId ) : Response | ||
$addressId | integer | The address id selected to be copied |
리턴 | Response |
public closeOrder ( $order_id ) |
public commentOrder ( $order_id ) : App\Http\Controllers\json | ||
리턴 | App\Http\Controllers\json | message error or message success |
public createWishList ( ) : view | ||
리턴 | view | for orders.cart |
public deliveryVirtualProduct ( $orderId, $productId, Illuminate\Http\Request $request, $ajax = true ) : App\Http\Controllers\json | ||
$productId | int|string id product @param $request Request object to validate the type of request @return json message error or message success | |
$request | Illuminate\Http\Request | |
리턴 | App\Http\Controllers\json |
public static fromGuestToUser ( $ordersController ) |
public rateProduct ( Illuminate\Http\Request $request ) | ||
$request | Illuminate\Http\Request |
public rateSeller ( Illuminate\Http\Request $request ) | ||
$request | Illuminate\Http\Request |
public removeFromOrder ( string $orderName, integer $productId, $idOrder = '' ) : Redirects | ||
$orderName | string | type or order ('cart','later',etc) |
$productId | integer | Product id to be removed from the order |
리턴 | Redirects | back to de cart |
public sendOrder ( $order_id ) |
public showCart ( ) : view | ||
리턴 | view | for orders.cart |
public showDetailsProductCart ( $id, Illuminate\Http\Request $request ) : App\Http\Controllers\json | ||
$request | Illuminate\Http\Request | Request object to validate the type of request @return json |
리턴 | App\Http\Controllers\json |
public showSellerOrder ( integer $id ) : Response | ||
$id | integer | |
리턴 | Response |
public showWishList ( $id = '' ) : view | ||
리턴 | view | for orders.wish |
public startOrder ( $order_id ) |
public storeComment ( Illuminate\Http\Request $request ) : App\Http\Controllers\json | ||
$request | Illuminate\Http\Request | |
리턴 | App\Http\Controllers\json | message error or message success |
public storeWishList ( Illuminate\Http\Request $request ) : Response | ||
$request | Illuminate\Http\Request | |
리턴 | Response | JSON |
public updateQuantity ( $orderId, $orderDetailId, $newValue ) : Response | ||
$orderId | is the shopping cart order id | |
$orderDetailId | is the shopping cart order details | |
$newValue | is new quantity to be used in the update | |
리턴 | Response |
public usersOrders ( Illuminate\Http\Request $request ) : view | ||
$request | Illuminate\Http\Request | |
리턴 | view |
public wishListDirectory ( ) : view | ||
리턴 | view | for orders.cart |