/**
* 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 (check_show_button_quote == undefined) {
		var check_show_button_quote = 1;
	}
	if (option_product_priced_0 == undefined) {
		var option_product_priced_0 = 0;
	}
	if (check_show_price == undefined) {
		var check_show_price = 0;
	}
	if (option_product_out_of_stock == undefined) {
		var option_product_out_of_stock = 0;
	}
	if (check_show_quan == undefined) {
		var check_show_quan = 0;
	}
	if(option_addtocart == 1)
	{
		if(check_show_button_quote == 1){
			if (check_vs == 1)
			{
				jQuery('.add > button' ).remove();
			} else {
				//alert('b');
				jQuery('.box-cart-bottom > div > p' ).remove();
			}
			
			jQuery(".attribute_select").click(function(){
				jQuery('.box-cart-bottom > div > p' ).remove();
			});
	
			jQuery(".color_pick").click(function(){
				jQuery('.box-cart-bottom > div > p' ).remove();
			});
		}
		
	}
	if(option_product_priced_0 == 1)
	{
		if(check_show_price == 1)
		{
		    jQuery('.box-info-product > div:first-child' ).remove();
		}
	}
	if(option_product_out_of_stock == 1)
	{
		if(check_show_quan == 1)
		{
		    jQuery('#availability_statut' ).remove();
		}
	}
	
})



