mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-10 15:26:10 -06:00
completed checkout for customer without translate
This commit is contained in:
parent
3463ba8f68
commit
a3d22d972b
@ -46,8 +46,6 @@ class OptionConfigurationController extends PublicController
|
|||||||
{
|
{
|
||||||
$conf->name = $conf->getName();
|
$conf->name = $conf->getName();
|
||||||
|
|
||||||
$this->adv_model->authControl();
|
|
||||||
|
|
||||||
if ($conf->stock < $this->request->quantity){
|
if ($conf->stock < $this->request->quantity){
|
||||||
return redirect()->back()->with('warning', [trans('visiosoft.module.carts::message.error1in2')]);
|
return redirect()->back()->with('warning', [trans('visiosoft.module.carts::message.error1in2')]);
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
@ -1189,7 +1189,6 @@ class AdvsController extends PublicController
|
|||||||
|
|
||||||
public function addCart(Request $request)
|
public function addCart(Request $request)
|
||||||
{
|
{
|
||||||
if (\auth()->check()) {
|
|
||||||
$id = $request->id;
|
$id = $request->id;
|
||||||
$quantity = $request->quantity;
|
$quantity = $request->quantity;
|
||||||
$name = $request->name;
|
$name = $request->name;
|
||||||
@ -1205,10 +1204,6 @@ class AdvsController extends PublicController
|
|||||||
$response['status'] = "error";
|
$response['status'] = "error";
|
||||||
$response['msg'] = trans('visiosoft.module.advs::message.error_added_cart');
|
$response['msg'] = trans('visiosoft.module.advs::message.error_added_cart');
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
$response['status'] = "guest";
|
|
||||||
}
|
|
||||||
|
|
||||||
return $response;
|
return $response;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user