This file contains hidden or 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
.fluent_form_18 .ff-el-form-check-label { | |
display: none; | |
} | |
.fluent_form_18 .ff-el-image-holder { | |
border: 2px solid #f8f8f8; | |
padding: 5px 5px 0; | |
} | |
.fluent_form_18 .ff-el-image-holder.ff_item_selected { |
This file contains hidden or 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
jQuery(document).ready(function($){ | |
//* #ff_10_value_1,#ff_10_value_2 are input field ID. | |
$('#ff_10_value_1,#ff_10_value_2').on('keyup blur', function(){ | |
var value = $('#ff_10_sum_ff').val(); | |
//* #ff_10_sum_ff is the calcualtion field ID where value is showing | |
$('#ff_10_sum_ff').val( numberFormat(value, 2, '.', ',') ); | |
}); | |
}); | |
function numberFormat (number, decimal_pos, decimal_sep, thousand_sep) { |
This file contains hidden or 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_action('woocommerce_after_subcategory_title', 'ou_display_category_description_link', 10, 1); | |
function ou_display_category_description_link( $category ) { | |
/** | |
* Returning early if it is not a home page | |
* You will change the condition logic based on your template settings | |
*/ | |
if( ! is_front_page() ) | |
return; |
This file contains hidden or 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 | |
add_filter( 'gettext_woocommerce', 'ouwoo_new_total_text', 10, 3); | |
function ouwoo_new_total_text( $translated_text, $text, $domain ) { | |
switch( $translated_text ) { | |
case 'New Total:' : | |
$translated_text = "ENTER YOUR TEXT HERE"; | |
break; | |
} | |
return $translated_text; |
This file contains hidden or 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 | |
add_filter( 'gettext_woocommerce', 'ouwoo_coupon_placeholder_text', 10, 3); | |
function ouwoo_coupon_placeholder_text( $translated_text, $text, $domain ) { | |
switch( $translated_text ) { | |
case 'Enter coupon code' : | |
$translated_text = "ENTER YOUR TEXT HERE"; | |
break; | |
} | |
return $translated_text; |
This file contains hidden or 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 add this line | |
add_action( 'woocommerce_before_mini_cart_contents', 'ouwoo_custom_remove_icon', 11 ); | |
function ouwoo_custom_remove_icon() { | |
remove_filter( 'woocommerce_cart_item_remove_link', 'ouwoo_woo_cart_remove_button', 10, 2 ); | |
add_filter( 'woocommerce_cart_item_remove_link', 'ouwoo_add_custom_remove_button_icon', 10, 2 ); | |
} | |
function ouwoo_add_custom_remove_button_icon($remove_link, $cart_item_key ) { |
This file contains hidden or 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 | |
/** | |
* Getting on sale product ids | |
* @use wc_get_product_ids_on_sale function | |
* return string | |
*/ | |
function ouwoo_wc_get_product_ids_on_sale() { | |
return implode( ",", (array) wc_get_product_ids_on_sale() ); | |
} |