sarga/packages/Webkul/API/Http/Controllers/Shop/CheckoutController.php

208 lines
5.4 KiB
PHP
Raw Normal View History

2019-05-07 11:36:21 +00:00
<?php
namespace Webkul\API\Http\Controllers\Shop;
use Illuminate\Support\Facades\Event;
use Webkul\Checkout\Repositories\CartRepository;
use Webkul\Checkout\Repositories\CartItemRepository;
use Webkul\Shipping\Facades\Shipping;
use Webkul\Payment\Facades\Payment;
use Webkul\API\Http\Resources\Checkout\Cart as CartResource;
use Webkul\API\Http\Resources\Checkout\CartShippingRate as CartShippingRateResource;
use Webkul\API\Http\Resources\Sales\Order as OrderResource;
use Webkul\Checkout\Http\Requests\CustomerAddressForm;
use Webkul\Sales\Repositories\OrderRepository;
2020-01-21 09:43:01 +00:00
use Illuminate\Support\Str;
2019-05-07 11:36:21 +00:00
use Cart;
Bagisto to HB Update (#23) * Bump symfony/http-foundation from 4.4.5 to 4.4.7 Bumps [symfony/http-foundation](https://github.com/symfony/http-foundation) from 4.4.5 to 4.4.7. - [Release notes](https://github.com/symfony/http-foundation/releases) - [Changelog](https://github.com/symfony/http-foundation/blob/master/CHANGELOG.md) - [Commits](https://github.com/symfony/http-foundation/compare/v4.4.5...v4.4.7) Signed-off-by: dependabot[bot] <support@github.com> * remove line * #2808 * #2785 * checkout page margin added * {git commit -m * checkout page issue * modal view update * bundled assets * remove irrelevant css * #2775 * remove irrelevant xhr * revert back changes in format price * category call get products method * customer options click issue resolved * customer panel accordian view and file picker view * customer accordian design update * Issue #2812 * compare page update height after loading images * api changes * code changed for api * #2329 * issue #2792 resolved * margin added between wishlist icon and compare icon * checkout page email validation * #2834 * Issue #2713 fixed * Issue #2851 fixed * Issue #2847 * Issue #2851 fixed * Issue #2768 fixed * #2691 * Issue #2794 * #2849 * #2856 * Changelog updated * subcategory visibility issue in responsive * #2790 * Issue #2793 * Issue #2846 fixed * Changelog updated * Fixed date icon issue * Translate mass-update for review status in admin grid * Fix save-category btn translation for langs with noun case * Added more view_render_events in the customer account views * Added view_render_event to admin order view * Created new view_render_events for admin order and invoice view * #2866 * calculate height on change value of dropdown * #2876 * Issue #2784 fixed * Updated changelog * Issue #2871 fixed * Issue #2543 fixed * subcategory issue resolved * Updated changelog * #2875 * Issue #2890 * 2875 update * remove channel from tax category * introduce channel and channel inventory source factories * Issue #2895 * removed dd * Issue #2893 * add unified address-table and handling for models * Issue #2884 * Issue #2863 fixed * fix address_type at many places; add tests for address relations * Issue #2793 * Issue #2721 * fix address-constrains; fix address global scopes * variant products images update issue resolved * rename address types * responsive cart count update * #2915 * fix typo in address migration * update * update * add option to OrderItemFactory to use existing product * Added new events to customer update and checkou, fixed some view render events and pt_BR grammar * Add Japanese translation * Moved command to packages * Updated composer lock file * Bump symfony/http-foundation from 4.4.5 to 4.4.7 Bumps [symfony/http-foundation](https://github.com/symfony/http-foundation) from 4.4.5 to 4.4.7. - [Release notes](https://github.com/symfony/http-foundation/releases) - [Changelog](https://github.com/symfony/http-foundation/blob/master/CHANGELOG.md) - [Commits](https://github.com/symfony/http-foundation/compare/v4.4.5...v4.4.7) Signed-off-by: dependabot[bot] <support@github.com> * #2908 * customer sidebar menu issue resolved * removed layered navigation in searchproducts page * #2919 * content header path update * add check if view exists * [Updated: getBaseImage() method updated for configurable product.] * Cancel feature added in customer order * Installer fixes * resolved issue with product images carousel * change file name from views to Views * Auto exchange rate feature added * fix category issue and change country,state order * max price issue in category * Updated change log file * Updated change log file * fix translation in add attribute button fix add button not translated to other language. * Issue #2954 fixed * Removed unnecessary code from CartController * Issue #2954 fixed * Issue #2945 fixed * Updated change log file * Updated change log file * Version updated in env files * add CartRuleCest * introduce channel and customer group filter for cart rule grid * fix calulation helper in test * Issue #2949 and #2950 * resolve issue 2964 * localization error message added in velocity theme * type hint changed * refactoring, variable renamed * Issue #2942 * Issue #2942 * configuration added for favicon in admin * Issue #2969 * #2974 * favicon for admin login * fix randomly failing tax cest * remove unnecessary use statements * fix GuestCheckoutCest * remove newline * set price faker in Laravel5Helper to 2 decimals, fix rounding in CartTaxesCest too * Added missing space for configurable/grouped product price. * responsive product gallery issue resolved * Issue #2987 * Issue #2987 * Product multiple image select feature added * Order comment feature added * process checkout if user not logged in * Order comment email sent to customer Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Shubham Mehrotra <shubh0896m@gmail.com> Co-authored-by: Jitendra Singh <39991107+jitendra-webkul@users.noreply.github.com> Co-authored-by: rahulshukla-home <rahulcs0082@gmail.com> Co-authored-by: Herbert Maschke <thyseus@gmail.com> Co-authored-by: shivam kumar <shivam.kumar174@webkul.com> Co-authored-by: Shivam kumar <50355852+shivam-webkul@users.noreply.github.com> Co-authored-by: hexu <hexu.garfield@gmail.com> Co-authored-by: Pranshu Tomar <pranshutomar@Pranshus-MacBook-Air.local> Co-authored-by: VaD1ke <vl.slesarenko@gmail.com> Co-authored-by: Carlos Augusto Gartner <contato@carlosgartner.com.br> Co-authored-by: Florian Bosdorff <florian.bosdorff@haendlerbund.de> Co-authored-by: José María Campaña <chemisax@gmail.com> Co-authored-by: Vivek <viveksh047@webkul.com> Co-authored-by: namvarii <50305913+namvarii@users.noreply.github.com> Co-authored-by: Steffen Mahler <steffen.mahler@haendlerbund.de> Co-authored-by: Herbert Maschke <thyseus@pm.me> Co-authored-by: SteffenMahler <57138594+SteffenMahler@users.noreply.github.com> Co-authored-by: Matt April <matthew.japril@gmail.com>
2020-05-07 12:05:48 +00:00
use Exception;
use Webkul\Shop\Http\Controllers\OnepageController;
2019-05-07 11:36:21 +00:00
class CheckoutController extends Controller
{
/**
* Contains current guard
*
* @var array
*/
protected $guard;
/**
* CartRepository object
*
2020-03-05 05:34:57 +00:00
* @var \Webkul\Checkout\Repositories\CartRepository
2019-05-07 11:36:21 +00:00
*/
protected $cartRepository;
/**
* CartItemRepository object
*
2020-03-05 05:34:57 +00:00
* @var \Webkul\Checkout\Repositories\CartItemRepository
2019-05-07 11:36:21 +00:00
*/
protected $cartItemRepository;
/**
* Controller instance
*
2020-03-05 14:19:14 +00:00
* @param \Webkul\Checkout\Repositories\CartRepository $cartRepository
2020-03-05 05:34:57 +00:00
* @param \Webkul\Checkout\Repositories\CartItemRepository $cartItemRepository
2020-03-05 14:19:14 +00:00
* @param \Webkul\Sales\Repositories\OrderRepository $orderRepository
2019-05-07 11:36:21 +00:00
*/
public function __construct(
CartRepository $cartRepository,
CartItemRepository $cartItemRepository,
OrderRepository $orderRepository
)
{
$this->guard = request()->has('token') ? 'api' : 'customer';
auth()->setDefaultDriver($this->guard);
// $this->middleware('auth:' . $this->guard);
2020-01-21 09:43:01 +00:00
2019-05-07 11:36:21 +00:00
$this->_config = request('_config');
$this->cartRepository = $cartRepository;
$this->cartItemRepository = $cartItemRepository;
$this->orderRepository = $orderRepository;
}
/**
* Saves customer address.
*
* @param \Webkul\Checkout\Http\Requests\CustomerAddressForm $request
* @return \Illuminate\Http\Response
*/
public function saveAddress(CustomerAddressForm $request)
{
$data = request()->all();
$data['billing']['address1'] = implode(PHP_EOL, array_filter($data['billing']['address1']));
2020-02-19 11:24:04 +00:00
2019-05-07 11:36:21 +00:00
$data['shipping']['address1'] = implode(PHP_EOL, array_filter($data['shipping']['address1']));
if (isset($data['billing']['id']) && str_contains($data['billing']['id'], 'address_')) {
unset($data['billing']['id']);
unset($data['billing']['address_id']);
}
2020-01-21 09:43:01 +00:00
if (isset($data['shipping']['id']) && Str::contains($data['shipping']['id'], 'address_')) {
2019-05-07 11:36:21 +00:00
unset($data['shipping']['id']);
unset($data['shipping']['address_id']);
}
2020-02-19 11:24:04 +00:00
if (Cart::hasError() || ! Cart::saveCustomerAddress($data) || ! Shipping::collectRates()) {
2019-05-07 11:36:21 +00:00
abort(400);
2020-02-19 11:24:04 +00:00
}
2019-05-07 11:36:21 +00:00
$rates = [];
foreach (Shipping::getGroupedAllShippingRates() as $code => $shippingMethod) {
$rates[] = [
'carrier_title' => $shippingMethod['carrier_title'],
2020-03-04 06:32:53 +00:00
'rates' => CartShippingRateResource::collection(collect($shippingMethod['rates'])),
2019-05-07 11:36:21 +00:00
];
}
Cart::collectTotals();
return response()->json([
'data' => [
'rates' => $rates,
2020-03-04 06:32:53 +00:00
'cart' => new CartResource(Cart::getCart()),
2019-05-07 11:36:21 +00:00
]
]);
}
/**
* Saves shipping method.
*
* @return \Illuminate\Http\Response
*/
public function saveShipping()
{
$shippingMethod = request()->get('shipping_method');
2020-02-28 10:25:53 +00:00
if (Cart::hasError()
|| !$shippingMethod
|| ! Cart::saveShippingMethod($shippingMethod)
) {
2019-05-07 11:36:21 +00:00
abort(400);
2020-02-19 11:24:04 +00:00
}
2019-05-07 11:36:21 +00:00
Cart::collectTotals();
return response()->json([
'data' => [
'methods' => Payment::getPaymentMethods(),
2020-03-04 06:32:53 +00:00
'cart' => new CartResource(Cart::getCart()),
2019-05-07 11:36:21 +00:00
]
]);
}
/**
* Saves payment method.
*
* @return \Illuminate\Http\Response
*/
public function savePayment()
{
$payment = request()->get('payment');
2020-02-19 11:24:04 +00:00
if (Cart::hasError() || ! $payment || ! Cart::savePaymentMethod($payment)) {
2019-05-07 11:36:21 +00:00
abort(400);
2020-02-19 11:24:04 +00:00
}
2019-05-07 11:36:21 +00:00
return response()->json([
'data' => [
2020-03-04 06:32:53 +00:00
'cart' => new CartResource(Cart::getCart()),
2019-05-07 11:36:21 +00:00
]
]);
}
/**
* Saves order.
*
* @return \Illuminate\Http\Response
*/
public function saveOrder()
{
2020-02-19 11:24:04 +00:00
if (Cart::hasError()) {
2019-05-07 11:36:21 +00:00
abort(400);
2020-02-19 11:24:04 +00:00
}
2019-05-07 11:36:21 +00:00
Cart::collectTotals();
$this->validateOrder();
$cart = Cart::getCart();
if ($redirectUrl = Payment::getRedirectUrl($cart)) {
return response()->json([
2020-02-19 11:24:04 +00:00
'success' => true,
2020-03-04 06:32:53 +00:00
'redirect_url' => $redirectUrl,
2019-05-07 11:36:21 +00:00
]);
}
$order = $this->orderRepository->create(Cart::prepareDataForOrder());
Cart::deActivateCart();
return response()->json([
2020-02-27 08:03:03 +00:00
'success' => true,
'order' => new OrderResource($order),
]);
2019-05-07 11:36:21 +00:00
}
/**
* Validate order before creation
*
Bagisto to HB Update (#23) * Bump symfony/http-foundation from 4.4.5 to 4.4.7 Bumps [symfony/http-foundation](https://github.com/symfony/http-foundation) from 4.4.5 to 4.4.7. - [Release notes](https://github.com/symfony/http-foundation/releases) - [Changelog](https://github.com/symfony/http-foundation/blob/master/CHANGELOG.md) - [Commits](https://github.com/symfony/http-foundation/compare/v4.4.5...v4.4.7) Signed-off-by: dependabot[bot] <support@github.com> * remove line * #2808 * #2785 * checkout page margin added * {git commit -m * checkout page issue * modal view update * bundled assets * remove irrelevant css * #2775 * remove irrelevant xhr * revert back changes in format price * category call get products method * customer options click issue resolved * customer panel accordian view and file picker view * customer accordian design update * Issue #2812 * compare page update height after loading images * api changes * code changed for api * #2329 * issue #2792 resolved * margin added between wishlist icon and compare icon * checkout page email validation * #2834 * Issue #2713 fixed * Issue #2851 fixed * Issue #2847 * Issue #2851 fixed * Issue #2768 fixed * #2691 * Issue #2794 * #2849 * #2856 * Changelog updated * subcategory visibility issue in responsive * #2790 * Issue #2793 * Issue #2846 fixed * Changelog updated * Fixed date icon issue * Translate mass-update for review status in admin grid * Fix save-category btn translation for langs with noun case * Added more view_render_events in the customer account views * Added view_render_event to admin order view * Created new view_render_events for admin order and invoice view * #2866 * calculate height on change value of dropdown * #2876 * Issue #2784 fixed * Updated changelog * Issue #2871 fixed * Issue #2543 fixed * subcategory issue resolved * Updated changelog * #2875 * Issue #2890 * 2875 update * remove channel from tax category * introduce channel and channel inventory source factories * Issue #2895 * removed dd * Issue #2893 * add unified address-table and handling for models * Issue #2884 * Issue #2863 fixed * fix address_type at many places; add tests for address relations * Issue #2793 * Issue #2721 * fix address-constrains; fix address global scopes * variant products images update issue resolved * rename address types * responsive cart count update * #2915 * fix typo in address migration * update * update * add option to OrderItemFactory to use existing product * Added new events to customer update and checkou, fixed some view render events and pt_BR grammar * Add Japanese translation * Moved command to packages * Updated composer lock file * Bump symfony/http-foundation from 4.4.5 to 4.4.7 Bumps [symfony/http-foundation](https://github.com/symfony/http-foundation) from 4.4.5 to 4.4.7. - [Release notes](https://github.com/symfony/http-foundation/releases) - [Changelog](https://github.com/symfony/http-foundation/blob/master/CHANGELOG.md) - [Commits](https://github.com/symfony/http-foundation/compare/v4.4.5...v4.4.7) Signed-off-by: dependabot[bot] <support@github.com> * #2908 * customer sidebar menu issue resolved * removed layered navigation in searchproducts page * #2919 * content header path update * add check if view exists * [Updated: getBaseImage() method updated for configurable product.] * Cancel feature added in customer order * Installer fixes * resolved issue with product images carousel * change file name from views to Views * Auto exchange rate feature added * fix category issue and change country,state order * max price issue in category * Updated change log file * Updated change log file * fix translation in add attribute button fix add button not translated to other language. * Issue #2954 fixed * Removed unnecessary code from CartController * Issue #2954 fixed * Issue #2945 fixed * Updated change log file * Updated change log file * Version updated in env files * add CartRuleCest * introduce channel and customer group filter for cart rule grid * fix calulation helper in test * Issue #2949 and #2950 * resolve issue 2964 * localization error message added in velocity theme * type hint changed * refactoring, variable renamed * Issue #2942 * Issue #2942 * configuration added for favicon in admin * Issue #2969 * #2974 * favicon for admin login * fix randomly failing tax cest * remove unnecessary use statements * fix GuestCheckoutCest * remove newline * set price faker in Laravel5Helper to 2 decimals, fix rounding in CartTaxesCest too * Added missing space for configurable/grouped product price. * responsive product gallery issue resolved * Issue #2987 * Issue #2987 * Product multiple image select feature added * Order comment feature added * process checkout if user not logged in * Order comment email sent to customer Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Shubham Mehrotra <shubh0896m@gmail.com> Co-authored-by: Jitendra Singh <39991107+jitendra-webkul@users.noreply.github.com> Co-authored-by: rahulshukla-home <rahulcs0082@gmail.com> Co-authored-by: Herbert Maschke <thyseus@gmail.com> Co-authored-by: shivam kumar <shivam.kumar174@webkul.com> Co-authored-by: Shivam kumar <50355852+shivam-webkul@users.noreply.github.com> Co-authored-by: hexu <hexu.garfield@gmail.com> Co-authored-by: Pranshu Tomar <pranshutomar@Pranshus-MacBook-Air.local> Co-authored-by: VaD1ke <vl.slesarenko@gmail.com> Co-authored-by: Carlos Augusto Gartner <contato@carlosgartner.com.br> Co-authored-by: Florian Bosdorff <florian.bosdorff@haendlerbund.de> Co-authored-by: José María Campaña <chemisax@gmail.com> Co-authored-by: Vivek <viveksh047@webkul.com> Co-authored-by: namvarii <50305913+namvarii@users.noreply.github.com> Co-authored-by: Steffen Mahler <steffen.mahler@haendlerbund.de> Co-authored-by: Herbert Maschke <thyseus@pm.me> Co-authored-by: SteffenMahler <57138594+SteffenMahler@users.noreply.github.com> Co-authored-by: Matt April <matthew.japril@gmail.com>
2020-05-07 12:05:48 +00:00
* @throws Exception
2019-05-07 11:36:21 +00:00
*/
Bagisto to HB Update (#23) * Bump symfony/http-foundation from 4.4.5 to 4.4.7 Bumps [symfony/http-foundation](https://github.com/symfony/http-foundation) from 4.4.5 to 4.4.7. - [Release notes](https://github.com/symfony/http-foundation/releases) - [Changelog](https://github.com/symfony/http-foundation/blob/master/CHANGELOG.md) - [Commits](https://github.com/symfony/http-foundation/compare/v4.4.5...v4.4.7) Signed-off-by: dependabot[bot] <support@github.com> * remove line * #2808 * #2785 * checkout page margin added * {git commit -m * checkout page issue * modal view update * bundled assets * remove irrelevant css * #2775 * remove irrelevant xhr * revert back changes in format price * category call get products method * customer options click issue resolved * customer panel accordian view and file picker view * customer accordian design update * Issue #2812 * compare page update height after loading images * api changes * code changed for api * #2329 * issue #2792 resolved * margin added between wishlist icon and compare icon * checkout page email validation * #2834 * Issue #2713 fixed * Issue #2851 fixed * Issue #2847 * Issue #2851 fixed * Issue #2768 fixed * #2691 * Issue #2794 * #2849 * #2856 * Changelog updated * subcategory visibility issue in responsive * #2790 * Issue #2793 * Issue #2846 fixed * Changelog updated * Fixed date icon issue * Translate mass-update for review status in admin grid * Fix save-category btn translation for langs with noun case * Added more view_render_events in the customer account views * Added view_render_event to admin order view * Created new view_render_events for admin order and invoice view * #2866 * calculate height on change value of dropdown * #2876 * Issue #2784 fixed * Updated changelog * Issue #2871 fixed * Issue #2543 fixed * subcategory issue resolved * Updated changelog * #2875 * Issue #2890 * 2875 update * remove channel from tax category * introduce channel and channel inventory source factories * Issue #2895 * removed dd * Issue #2893 * add unified address-table and handling for models * Issue #2884 * Issue #2863 fixed * fix address_type at many places; add tests for address relations * Issue #2793 * Issue #2721 * fix address-constrains; fix address global scopes * variant products images update issue resolved * rename address types * responsive cart count update * #2915 * fix typo in address migration * update * update * add option to OrderItemFactory to use existing product * Added new events to customer update and checkou, fixed some view render events and pt_BR grammar * Add Japanese translation * Moved command to packages * Updated composer lock file * Bump symfony/http-foundation from 4.4.5 to 4.4.7 Bumps [symfony/http-foundation](https://github.com/symfony/http-foundation) from 4.4.5 to 4.4.7. - [Release notes](https://github.com/symfony/http-foundation/releases) - [Changelog](https://github.com/symfony/http-foundation/blob/master/CHANGELOG.md) - [Commits](https://github.com/symfony/http-foundation/compare/v4.4.5...v4.4.7) Signed-off-by: dependabot[bot] <support@github.com> * #2908 * customer sidebar menu issue resolved * removed layered navigation in searchproducts page * #2919 * content header path update * add check if view exists * [Updated: getBaseImage() method updated for configurable product.] * Cancel feature added in customer order * Installer fixes * resolved issue with product images carousel * change file name from views to Views * Auto exchange rate feature added * fix category issue and change country,state order * max price issue in category * Updated change log file * Updated change log file * fix translation in add attribute button fix add button not translated to other language. * Issue #2954 fixed * Removed unnecessary code from CartController * Issue #2954 fixed * Issue #2945 fixed * Updated change log file * Updated change log file * Version updated in env files * add CartRuleCest * introduce channel and customer group filter for cart rule grid * fix calulation helper in test * Issue #2949 and #2950 * resolve issue 2964 * localization error message added in velocity theme * type hint changed * refactoring, variable renamed * Issue #2942 * Issue #2942 * configuration added for favicon in admin * Issue #2969 * #2974 * favicon for admin login * fix randomly failing tax cest * remove unnecessary use statements * fix GuestCheckoutCest * remove newline * set price faker in Laravel5Helper to 2 decimals, fix rounding in CartTaxesCest too * Added missing space for configurable/grouped product price. * responsive product gallery issue resolved * Issue #2987 * Issue #2987 * Product multiple image select feature added * Order comment feature added * process checkout if user not logged in * Order comment email sent to customer Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Shubham Mehrotra <shubh0896m@gmail.com> Co-authored-by: Jitendra Singh <39991107+jitendra-webkul@users.noreply.github.com> Co-authored-by: rahulshukla-home <rahulcs0082@gmail.com> Co-authored-by: Herbert Maschke <thyseus@gmail.com> Co-authored-by: shivam kumar <shivam.kumar174@webkul.com> Co-authored-by: Shivam kumar <50355852+shivam-webkul@users.noreply.github.com> Co-authored-by: hexu <hexu.garfield@gmail.com> Co-authored-by: Pranshu Tomar <pranshutomar@Pranshus-MacBook-Air.local> Co-authored-by: VaD1ke <vl.slesarenko@gmail.com> Co-authored-by: Carlos Augusto Gartner <contato@carlosgartner.com.br> Co-authored-by: Florian Bosdorff <florian.bosdorff@haendlerbund.de> Co-authored-by: José María Campaña <chemisax@gmail.com> Co-authored-by: Vivek <viveksh047@webkul.com> Co-authored-by: namvarii <50305913+namvarii@users.noreply.github.com> Co-authored-by: Steffen Mahler <steffen.mahler@haendlerbund.de> Co-authored-by: Herbert Maschke <thyseus@pm.me> Co-authored-by: SteffenMahler <57138594+SteffenMahler@users.noreply.github.com> Co-authored-by: Matt April <matthew.japril@gmail.com>
2020-05-07 12:05:48 +00:00
public function validateOrder(): void
2019-05-07 11:36:21 +00:00
{
Bagisto to HB Update (#23) * Bump symfony/http-foundation from 4.4.5 to 4.4.7 Bumps [symfony/http-foundation](https://github.com/symfony/http-foundation) from 4.4.5 to 4.4.7. - [Release notes](https://github.com/symfony/http-foundation/releases) - [Changelog](https://github.com/symfony/http-foundation/blob/master/CHANGELOG.md) - [Commits](https://github.com/symfony/http-foundation/compare/v4.4.5...v4.4.7) Signed-off-by: dependabot[bot] <support@github.com> * remove line * #2808 * #2785 * checkout page margin added * {git commit -m * checkout page issue * modal view update * bundled assets * remove irrelevant css * #2775 * remove irrelevant xhr * revert back changes in format price * category call get products method * customer options click issue resolved * customer panel accordian view and file picker view * customer accordian design update * Issue #2812 * compare page update height after loading images * api changes * code changed for api * #2329 * issue #2792 resolved * margin added between wishlist icon and compare icon * checkout page email validation * #2834 * Issue #2713 fixed * Issue #2851 fixed * Issue #2847 * Issue #2851 fixed * Issue #2768 fixed * #2691 * Issue #2794 * #2849 * #2856 * Changelog updated * subcategory visibility issue in responsive * #2790 * Issue #2793 * Issue #2846 fixed * Changelog updated * Fixed date icon issue * Translate mass-update for review status in admin grid * Fix save-category btn translation for langs with noun case * Added more view_render_events in the customer account views * Added view_render_event to admin order view * Created new view_render_events for admin order and invoice view * #2866 * calculate height on change value of dropdown * #2876 * Issue #2784 fixed * Updated changelog * Issue #2871 fixed * Issue #2543 fixed * subcategory issue resolved * Updated changelog * #2875 * Issue #2890 * 2875 update * remove channel from tax category * introduce channel and channel inventory source factories * Issue #2895 * removed dd * Issue #2893 * add unified address-table and handling for models * Issue #2884 * Issue #2863 fixed * fix address_type at many places; add tests for address relations * Issue #2793 * Issue #2721 * fix address-constrains; fix address global scopes * variant products images update issue resolved * rename address types * responsive cart count update * #2915 * fix typo in address migration * update * update * add option to OrderItemFactory to use existing product * Added new events to customer update and checkou, fixed some view render events and pt_BR grammar * Add Japanese translation * Moved command to packages * Updated composer lock file * Bump symfony/http-foundation from 4.4.5 to 4.4.7 Bumps [symfony/http-foundation](https://github.com/symfony/http-foundation) from 4.4.5 to 4.4.7. - [Release notes](https://github.com/symfony/http-foundation/releases) - [Changelog](https://github.com/symfony/http-foundation/blob/master/CHANGELOG.md) - [Commits](https://github.com/symfony/http-foundation/compare/v4.4.5...v4.4.7) Signed-off-by: dependabot[bot] <support@github.com> * #2908 * customer sidebar menu issue resolved * removed layered navigation in searchproducts page * #2919 * content header path update * add check if view exists * [Updated: getBaseImage() method updated for configurable product.] * Cancel feature added in customer order * Installer fixes * resolved issue with product images carousel * change file name from views to Views * Auto exchange rate feature added * fix category issue and change country,state order * max price issue in category * Updated change log file * Updated change log file * fix translation in add attribute button fix add button not translated to other language. * Issue #2954 fixed * Removed unnecessary code from CartController * Issue #2954 fixed * Issue #2945 fixed * Updated change log file * Updated change log file * Version updated in env files * add CartRuleCest * introduce channel and customer group filter for cart rule grid * fix calulation helper in test * Issue #2949 and #2950 * resolve issue 2964 * localization error message added in velocity theme * type hint changed * refactoring, variable renamed * Issue #2942 * Issue #2942 * configuration added for favicon in admin * Issue #2969 * #2974 * favicon for admin login * fix randomly failing tax cest * remove unnecessary use statements * fix GuestCheckoutCest * remove newline * set price faker in Laravel5Helper to 2 decimals, fix rounding in CartTaxesCest too * Added missing space for configurable/grouped product price. * responsive product gallery issue resolved * Issue #2987 * Issue #2987 * Product multiple image select feature added * Order comment feature added * process checkout if user not logged in * Order comment email sent to customer Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Shubham Mehrotra <shubh0896m@gmail.com> Co-authored-by: Jitendra Singh <39991107+jitendra-webkul@users.noreply.github.com> Co-authored-by: rahulshukla-home <rahulcs0082@gmail.com> Co-authored-by: Herbert Maschke <thyseus@gmail.com> Co-authored-by: shivam kumar <shivam.kumar174@webkul.com> Co-authored-by: Shivam kumar <50355852+shivam-webkul@users.noreply.github.com> Co-authored-by: hexu <hexu.garfield@gmail.com> Co-authored-by: Pranshu Tomar <pranshutomar@Pranshus-MacBook-Air.local> Co-authored-by: VaD1ke <vl.slesarenko@gmail.com> Co-authored-by: Carlos Augusto Gartner <contato@carlosgartner.com.br> Co-authored-by: Florian Bosdorff <florian.bosdorff@haendlerbund.de> Co-authored-by: José María Campaña <chemisax@gmail.com> Co-authored-by: Vivek <viveksh047@webkul.com> Co-authored-by: namvarii <50305913+namvarii@users.noreply.github.com> Co-authored-by: Steffen Mahler <steffen.mahler@haendlerbund.de> Co-authored-by: Herbert Maschke <thyseus@pm.me> Co-authored-by: SteffenMahler <57138594+SteffenMahler@users.noreply.github.com> Co-authored-by: Matt April <matthew.japril@gmail.com>
2020-05-07 12:05:48 +00:00
app(OnepageController::class)->validateOrder();
2019-05-07 11:36:21 +00:00
}
}