#5106 gg-theme add to cart options

This commit is contained in:
Dia 2022-01-10 17:51:21 +03:00
parent 7dd7d2c807
commit 8e1a670a7f
2 changed files with 2 additions and 0 deletions

View File

@ -37,4 +37,5 @@ return [
'option_saved' => 'Option Saved', 'option_saved' => 'Option Saved',
'do_you_want_to_save_the_option' => 'Do you want to save the option?', 'do_you_want_to_save_the_option' => 'Do you want to save the option?',
'you_can_not_delete_a_system_status' => 'You can not delete a system status!', 'you_can_not_delete_a_system_status' => 'You can not delete a system status!',
'product_added_to_cart' => 'Product added to cart!',
]; ];

View File

@ -1163,6 +1163,7 @@ class AdvsController extends PublicController
if ($adv and $adv->getStatus() == "approved") { if ($adv and $adv->getStatus() == "approved") {
$cart = $thisModel->addCart($adv, $quantity, $name); $cart = $thisModel->addCart($adv, $quantity, $name);
$response['status'] = "success"; $response['status'] = "success";
$response['msg'] = trans('visiosoft.module.advs::message.product_added_to_cart');
$count = $cart->getItems()->count; $count = $cart->getItems()->count;
$response['count'] = $count; $response['count'] = $count;
$response['item'] = [ $response['item'] = [