mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
#5106 gg-theme add to cart options
This commit is contained in:
parent
7dd7d2c807
commit
8e1a670a7f
@ -37,4 +37,5 @@ return [
|
||||
'option_saved' => 'Option Saved',
|
||||
'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!',
|
||||
'product_added_to_cart' => 'Product added to cart!',
|
||||
];
|
||||
|
||||
@ -1163,6 +1163,7 @@ class AdvsController extends PublicController
|
||||
if ($adv and $adv->getStatus() == "approved") {
|
||||
$cart = $thisModel->addCart($adv, $quantity, $name);
|
||||
$response['status'] = "success";
|
||||
$response['msg'] = trans('visiosoft.module.advs::message.product_added_to_cart');
|
||||
$count = $cart->getItems()->count;
|
||||
$response['count'] = $count;
|
||||
$response['item'] = [
|
||||
|
||||
Loading…
Reference in New Issue
Block a user