This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.et-cart-info { display:none; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'woocommerce_add_to_cart_validation', 'lab_only_one_in_cart', 99, 2 ); | |
function lab_only_one_in_cart( $passed, $added_product_id ) { | |
wc_empty_cart(); | |
return $passed; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'wc_add_to_cart_message_html', '__return_false' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
jQuery(document).ready(function($){ | |
var data = { | |
'primary_role' : 'buyer' | |
}; | |
var data = { | |
'action' : 'update_user', | |
'data' : JSON.stringify( data ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
jQuery(document).ready(function($){ | |
var data = { | |
'primary_role' : 'broker' | |
}; | |
var data = { | |
'action' : 'update_user', | |
'data' : JSON.stringify( data ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Customize Adjacent Post Link Order | |
*/ | |
function my_custom_adjacent_post_where($sql) { | |
if ( !is_main_query() || !is_singular() ) | |
return $sql; | |
$the_post = get_post( get_the_ID() ); | |
$patterns = array(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* DON'T copy the first line (above) if your functions.php already has it. | |
* ---------------------------------------------------------------------- */ | |
function et_divi_fonts_url() { | |
$fonts_url = ''; | |
/* Translators: If there are characters in your language that are not | |
* supported by Open Sans, translate this to 'off'. Do not translate | |
* into your own language. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// modify default wc template override so it uses our plugin templates instead | |
// https://www.skyverge.com/blog/override-woocommerce-template-file-within-a-plugin/ | |
function lab_flavor_plugin_path() { | |
// gets the absolute path to this plugin directory | |
return untrailingslashit( plugin_dir_path( __FILE__ ) ); | |
} | |
add_filter( 'woocommerce_locate_template', 'lab_flavor_woocommerce_locate_template', 10, 3 ); | |
function lab_flavor_woocommerce_locate_template( $template, $template_name, $template_path ) { | |
global $woocommerce; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<section id="module0001"> | |
<div class="container"> | |
<div class="row"> | |
<div class="col-md-6"> | |
<!--Left Column--> | |
<div class="row"> | |
<div class="title-block"> | |
<h1>ELEMENT WATCHES</h1> | |
<h1>lorum ipsum deloras con squetor della con </h1> | |
</div> |
NewerOlder