/**
* 2007-2020 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@buy-addons.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author    Buy-addons    <contact@buy-addons.com>
* @copyright 2007-2020 Buy-addons
* @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*/

jQuery(document).ready(function(){
	if(option_addtocart == 1)
	{
		if (check_vs == 1) {
			jQuery("div .special_dbboo").each(function(){
				jQuery(this).parents("li.ajax_block_product").find(".ajax_add_to_cart_button").remove();
				jQuery(this).parents("li.ajax_block_product").find(".available-dif").remove();
				jQuery(this).parents("div .thumbnail-container").find(".product-description").css("height", "auto");
				jQuery(this).parents("div .thumbnail-container").find(".highlighted-informations").css("height", "7.75rem");
    		});
		} else {
	    	jQuery("li .special_dbboo").each(function(){
				jQuery(this).parents("li.ajax_block_product").find(".ajax_add_to_cart_button").remove();
				jQuery(this).parents("li.ajax_block_product").find(".available-dif").remove();
    		});
    	}
	}
	jQuery("li .hide_price_category").each(function(){
		jQuery(this).parents("li.ajax_block_product").find(".content_price").remove();
    });
    jQuery("li .hide_quantity_category").each(function(){
		jQuery(this).parents("li.ajax_block_product").find(".availability").remove();
    });
    jQuery("li .hide_price_quantity_category").each(function(){
    	jQuery(this).parents("li.ajax_block_product").find(".availability").remove();
    	jQuery(this).parents("li.ajax_block_product").find(".content_price").remove();
    });
})



