diff --git a/addons/default/visiosoft/advs-module/resources/images/cross.svg b/addons/default/visiosoft/advs-module/resources/images/cross.svg new file mode 100644 index 000000000..5c708d2f6 --- /dev/null +++ b/addons/default/visiosoft/advs-module/resources/images/cross.svg @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/addons/default/visiosoft/advs-module/resources/js/cats.js b/addons/default/visiosoft/advs-module/resources/js/cats.js index 256fd030c..91ab7fdd7 100644 --- a/addons/default/visiosoft/advs-module/resources/js/cats.js +++ b/addons/default/visiosoft/advs-module/resources/js/cats.js @@ -22,11 +22,26 @@ $(document).ready(function () { success: function (response) { hideLoader(); if(response['title'] != undefined){ - var btn = ''; - $('.cat-item-3 .next-content').html( - '

'+response['title']+'

' + - '
' + btn + '
' - ); + response['success'] ? $('.cross-icon').hide() : $('.check-icon').hide(); + + let btn = ''; + if (response['link']) { + btn = ""+response['continueBtn']+""; + } + let content; + if (response['msg']) { + content = ` +

${response['title']}

+ ${response['msg']} +
${btn}
+ ` + } else { + content = ` +

${response['title']}

+
${btn}
+ ` + } + $('.cat-item-3 .next-content').html(content); $('.cat-item-3').parent().css('display', 'flex'); stop(); } else { diff --git a/addons/default/visiosoft/advs-module/resources/lang/en/field.php b/addons/default/visiosoft/advs-module/resources/lang/en/field.php index d7c747df0..112ea9eac 100644 --- a/addons/default/visiosoft/advs-module/resources/lang/en/field.php +++ b/addons/default/visiosoft/advs-module/resources/lang/en/field.php @@ -285,4 +285,7 @@ return [ 'update_my_contact_info' => 'update my contact info', 'contact_info' => 'Contact information', 'ad_info' => 'Ad Information', + + // Select cat + 'select_category_step_by_step' => 'Select Category Step by Step', ]; diff --git a/addons/default/visiosoft/advs-module/resources/lang/en/message.php b/addons/default/visiosoft/advs-module/resources/lang/en/message.php index 378a3616f..128c6171a 100644 --- a/addons/default/visiosoft/advs-module/resources/lang/en/message.php +++ b/addons/default/visiosoft/advs-module/resources/lang/en/message.php @@ -11,9 +11,11 @@ return [ 'max_ad_limit' => [ 'title' => "Your Free Ad Limit is Out.", 'continueBtn' => "Show Ads", + 'link' => "/profile", ], 'create_ad_with_post_cat' => [ 'title' => "Category selection has been completed.", + 'success' => true, 'continueBtn' => "Continue", ], 'update_category_info' => 'Please update category.', diff --git a/addons/default/visiosoft/advs-module/resources/views/new-ad/post-cat.twig b/addons/default/visiosoft/advs-module/resources/views/new-ad/post-cat.twig index 04d822a6f..7776c2240 100644 --- a/addons/default/visiosoft/advs-module/resources/views/new-ad/post-cat.twig +++ b/addons/default/visiosoft/advs-module/resources/views/new-ad/post-cat.twig @@ -10,7 +10,7 @@
- Select Category Step by Step + {{ trans('visiosoft.module.advs::field.select_category_step_by_step') }}
@@ -77,7 +77,8 @@
- check icon + +