Comments on: Booster Custom JS for WooCommerce https://booster.io/features/woocommerce-booster-custom-js/ WordPress WooCommerce Plugin Mon, 11 Dec 2023 17:53:41 +0000 hourly 1 https://wordpress.org/?v=6.7.2 By: Booster Support Team https://booster.io/features/woocommerce-booster-custom-js/#comment-28360 Thu, 20 Sep 2018 21:37:27 +0000 https://booster.io/?p=10486#comment-28360 In reply to dcgraphics.

Hi,

It looks like code that you’ve posted is actually PHP and not JS. However I’ve just added new module to Booster. Please download the development version here – https://booster.io/dev/. You will need to uninstall the old plugin version first (don’t worry your saved settings won’t disappear). If you are a Booster Plus user – please let me know (on tom@booster.io) your order number, and I will send you the development version for Plus. Now there is new module in “WooCommerce > Settings > Booster > Emails & Misc. > Custom PHP” – your code should work there.

Please let me know if there any issues and/or questions and if you like Booster, please leave us a rating.

Best regards,
Tom

]]>
By: dcgraphics https://booster.io/features/woocommerce-booster-custom-js/#comment-28309 Wed, 19 Sep 2018 14:30:43 +0000 https://booster.io/?p=10486#comment-28309 Hello, I tried to add this to the Custom JS and it does not work on the front end. The code does work in the Child/functions.php:
add_filter( ‘woocommerce_states’, ‘custom_woocommerce_states’ );

function custom_woocommerce_states( $states ) {
$states[‘US’] = array(
‘AL’ => ‘Alabama’,
‘KY’ => ‘Kentucky’,
‘TN’ => ‘Tennessee’
);

return $states;
}
Is there specific JS for this section only as your documentation is very limited?

]]>