diff --git a/addons/default/visiosoft/advs-module/resources/config/settings/sections.php b/addons/default/visiosoft/advs-module/resources/config/settings/sections.php index ba1dba8a1..592350017 100644 --- a/addons/default/visiosoft/advs-module/resources/config/settings/sections.php +++ b/addons/default/visiosoft/advs-module/resources/config/settings/sections.php @@ -98,7 +98,7 @@ return [ 'title' => 'visiosoft.module.advs::section.filter', 'fields' => [ 'hide_filter_section', 'hide_price_filter', 'hide_date_filter', 'hide_photo_filter', 'hide_map_filter', - 'hide_listing_header', 'user_filter_limit', + 'hide_listing_header', 'user_filter_limit','hide_out_of_stock_products_without_listing' ], ], 'translations' => [ diff --git a/addons/default/visiosoft/advs-module/resources/config/settings/settings.php b/addons/default/visiosoft/advs-module/resources/config/settings/settings.php index f41135af8..0a19456b3 100644 --- a/addons/default/visiosoft/advs-module/resources/config/settings/settings.php +++ b/addons/default/visiosoft/advs-module/resources/config/settings/settings.php @@ -479,5 +479,11 @@ return [ 'config' => [ 'default_value' => false, ] - ] + ], + 'hide_out_of_stock_products_without_listing' => [ + 'type' => 'anomaly.field_type.boolean', + 'config' => [ + 'default_value' => false, + ] + ], ]; diff --git a/addons/default/visiosoft/advs-module/resources/lang/en/setting.php b/addons/default/visiosoft/advs-module/resources/lang/en/setting.php index 4dbae9fc8..d258617a8 100644 --- a/addons/default/visiosoft/advs-module/resources/lang/en/setting.php +++ b/addons/default/visiosoft/advs-module/resources/lang/en/setting.php @@ -286,5 +286,9 @@ return [ 'show_input_flag' => [ 'name' => 'Show Flags on Input', 'instructions' => 'Show flag and description on translatable inputs' - ] + ], + 'hide_out_of_stock_products_without_listing' => [ + 'name' => 'Hide out of stock products without listing', + 'instructions' => 'Hides out-of-stock GET products from listing and homepage' + ], ]; diff --git a/addons/default/visiosoft/advs-module/resources/views/list/partials/ads.twig b/addons/default/visiosoft/advs-module/resources/views/list/partials/ads.twig index 5763937b5..24117dca6 100644 --- a/addons/default/visiosoft/advs-module/resources/views/list/partials/ads.twig +++ b/addons/default/visiosoft/advs-module/resources/views/list/partials/ads.twig @@ -34,7 +34,7 @@
+ alt="{{ adv.name }}" data-src="{{ adv.thumbnail }}">