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( 'wc360_js_speed', 'wcs_360_custom_speed' ); | |
function wcs_360_custom_speed() { | |
return 30; | |
} |
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
function wc_af_example_rule_countries( $countries ) { | |
$countries[] = 'NL'; // Adding The Netherlands as a risk country | |
return $countries; | |
} | |
add_filter( 'wc_af_rule_countries', 'wc_af_example_rule_countries' ); |
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
/* | |
* Snippet to hide all sub prices | |
* Code goes in the functions.php file in your theme. | |
*/ | |
add_filter( 'wc_nf_addons_cart_option', 'wc_ninja_forms_price' ); | |
function wc_ninja_forms_price( $display ) { | |
return ''; | |
} |
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
/* Rotate 360 Image 90 Degrees */ | |
.threesixty .threesixty_images img { | |
-ms-transform: rotate(90deg); /* IE 9 */ | |
-webkit-transform: rotate(90deg); /* Chrome, Safari, Opera */ | |
transform: rotate(90deg); | |
} |
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
/* Rotate 360 Image -90 Degrees */ | |
.threesixty .threesixty_images img { | |
-ms-transform: rotate(-90deg); /* IE 9 */ | |
-webkit-transform: rotate(-90deg); /* Chrome, Safari, Opera */ | |
transform: rotate(-90deg); | |
} |
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
/* Rotate 360 Image 180 Degrees (upside down) */ | |
.threesixty .threesixty_images img { | |
-ms-transform: rotate(180deg); /* IE 9 */ | |
-webkit-transform: rotate(180deg); /* Chrome, Safari, Opera */ | |
transform: rotate(180deg); | |
} |
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
/* | |
* Snippet to prevent security check failed error. | |
* Code goes in the functions.php file in your theme. | |
*/ | |
add_filter( 'woocommerce_order_barcodes_do_nonce_check', 'disable_woocommerce_order_barcodes_nonce_check' ); | |
function disable_woocommerce_order_barcodes_nonce_check( $do_check ) { | |
// Do any required pressing here | |
$do_check = 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
add_filter( 'wc360_image_size', 'wcs_360_image_name' ); | |
function wcs_360_image_name() { | |
return 'shop_thumbnail'; | |
} |
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
/* | |
* Snippet to fix No Sufficient Permission To Scan Barcodes Error. | |
* Code goes in the functions.php file in your theme. | |
*/ | |
add_filter( 'woocommerce_order_barcodes_scan_permission', 'modify_woocommerce_order_barcodes_scan_permission' ); | |
function modify_woocommerce_order_barcodes_scan_permission( $has_permission ) { | |
// Do any required permission checks here | |
$has_permission = true; | |
return $has_permission; |
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( 'wc360_output_image_size', 'wcs_360_image_size_output' ); | |
function wcs_360_image_size_output() { | |
return 'shop_single'; | |
} |