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 | |
/** | |
* Only for jet-engine repeater field | |
* In this example, i want to update repeater meta_field name = company-services | |
* 3 columns in repeater field _service-image, _service-name, _service-description | |
*/ | |
//Example value from my fluent form | |
$value_from_form = array( | |
array("Service 1","Description 1"), |
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
#page { | |
width: 100%; | |
height: 100%; | |
background: inherit; | |
position: absolute; | |
left: -25px; | |
right: 0; | |
top: -25px; | |
bottom: 0; | |
/*box-shadow: inset 0 0 0 200px rgba(255,255,255,0.3);*/ |
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
//Open | |
jQuery( window ).trigger( { | |
type: 'jet-popup-open-trigger', | |
popupData: { | |
popupId: 'jet-popup-<numeric popup ID>', | |
} | |
} ); | |
//Close , just trigger click to match the rules in popup setting | |
jQuery('#jet-popup-<numeric popup ID> .jet-popup__close-button').click(); |
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 | |
function jennsup_custom_checkout_product_validation() { | |
global $woocommerce; | |
$cart_items = $woocommerce->cart->cart_contents; | |
$restrict_product_id = 9787; //your restricted product id | |
foreach ( $cart_items as $key => $item ) { | |
$product_id = $item['product_id'] == 0 ? $item['variation_id']: $item['product_id']; | |
$product_qty = $item['quantity']; | |
if($product_id == $restrict_product_id) { |
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
var myHtml = ''; | |
$('input[data-name^="ff_repeater_field_name"]').each(function(){ | |
let value = $(this).val(); | |
let position = $(this).attr('data-name').substr( $(this).attr('data-name').length -3, 1); | |
if (value !== '') { | |
/*My repeater field only consists of 2 columns, so position 0 = 1st column, 2 = 2nd column*/ | |
if (position == '0') { | |
myHtml = myHtml + `${escapeHtml(value)}:<br>`; | |
} else { |
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
/*If dropdown field using select2 js and the form height is small, causing the options hidden*/ | |
.fluent_form_1 .choices__list--dropdown.is-active { | |
z-index: 3 !important; | |
} | |
.fluent_form_1 .fluentform-step.active { | |
overflow: visible !important; | |
min-height: 80vh !important; | |
} |
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 | |
function jenn_search_filter_pre_get_posts( $query ) { | |
if ($query->is_search()) { | |
$query->set( 'post_type', array( 'product' ) ); | |
$tax_query = array( | |
array( | |
'taxonomy' => 'product_cat', | |
'field' => 'slug', | |
'terms' => 'your-product-category-slug-1', |
OlderNewer