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_action( 'woocommerce_cart_calculate_fees', 'iconic_wds_dynamically_add_custom_fee', 9 ); | |
| function iconic_wds_dynamically_add_custom_fee() { | |
| global $iconic_wds; | |
| if ( empty( $iconic_wds ) ) { | |
| return; | |
| } | |
| $chosen_method = $iconic_wds->get_chosen_shipping_method(); |
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
| /** | |
| * Flux checkout - Move the express checkout button so that it is displayed on all the steps. | |
| * | |
| * @return void | |
| */ | |
| function iconic_flux_move_express_checkout_button() { | |
| remove_action( 'woocommerce_checkout_before_customer_details', array( 'Iconic_Flux_Core', 'express_checkout_button_wrap' ) ); | |
| add_action( 'flux_after_header', array( 'Iconic_Flux_Core', 'express_checkout_button_wrap' ) ); | |
| } | |
| add_action( 'init', 'iconic_flux_move_express_checkout_button' ); |
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
| /** | |
| * Flux checkout - remove password field. | |
| */ | |
| function iconic_flux_remove_pass_field( $fields ) { | |
| unset( $fields['account']['account_password'] ); | |
| return $fields; | |
| } | |
| add_filter( 'woocommerce_checkout_fields', 'iconic_flux_remove_pass_field', 9999 ); | |
| /** |
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 | |
| /** | |
| * Flux checkout - Move the express checkout button so that it is displayed on all the steps. | |
| * | |
| * @return void | |
| */ | |
| function iconic_flux_move_express_checkout_button() { | |
| remove_action( 'woocommerce_checkout_before_customer_details', array( 'Iconic_Flux_Core', 'express_checkout_button_wrap' ) ); | |
| add_action( 'flux_after_header', array( 'Iconic_Flux_Core', 'express_checkout_button_wrap' ) ); | |
| } |
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( 'gform_currencies', 'idea_mcg_add_cny_currency' ); | |
| function idea_mcg_add_cny_currency( $currencies ) { | |
| $currencies['CNY'] = array( | |
| 'name' => 'Chinese Yuan', | |
| 'code' => 'CNY', | |
| 'symbol_left' => 'CNY ', | |
| 'symbol_right' => '', | |
| 'symbol_padding' => ' ', | |
| 'thousand_separator' => ',', |
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
| { | |
| "id": "evt_3QEreVLiNMWTEN8V0ptqNrBw", | |
| "object": "event", | |
| "api_version": "2024-04-10", | |
| "created": 1730116951, | |
| "data": { | |
| "object": { | |
| "id": "pi_3QEreVLiNMWTEN8V07kTvLbJ", | |
| "object": "payment_intent", | |
| "amount": 4500, |
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
| /** | |
| * Flux checkout - Disable auto placeholder for phone number field. | |
| * | |
| * @return void | |
| */ | |
| function flux_checkout_intl_phone_args() { | |
| ?> | |
| <script> | |
| wp.hooks.addFilter( 'flux_checkout_intl_phone_args', 'flux_checkout', function( args ) { | |
| args.autoPlaceholder = 'off'; |
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
| /** | |
| * Iconic CFFV - Get the location custom field value. | |
| * | |
| * @param int $variation_id | |
| * | |
| * @return string|bool | |
| */ | |
| function iconic_cffv_get_location( $variation_id ) { | |
| if ( empty( $variation_id ) ) { | |
| return false; |
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 TRY (Turkish Lira) currency to Gravity Forms. | |
| * | |
| * @param array $currencies The current currencies registered in Gravity Forms. | |
| * | |
| * @return array List of supported currencies. | |
| */ | |
| function add_try_currency( $currencies ) { | |
| $currencies['TRY'] = array( | |
| 'name' => 'Turkish Lira', |
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
| /** | |
| * Iconic WDS - Add Pickup instructions above the delivery slots fields. | |
| */ | |
| add_filter( 'iconic_wds_after_delivery_details_title', function( $title ) { | |
| // Todo1 - Add URL of the Pickup Instructions Page. | |
| ?> | |
| <a href="#" id="wds-pickup-instructions">Click here to read the Pickup instructions.</a> | |
| <?php | |
| } ); |