mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-07 05:46:06 -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',
|
'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!',
|
||||||
];
|
];
|
||||||
|
|||||||
@ -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'] = [
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user