Plugin breaks head and no translation possible
-
Aloha!
I recently installed the plugin on a client’s website because it’s one of the only free plugins to handle custom pricing and so far it’s been doing wonders.
There are two issues I’d like to point out tho. First one is the fact that activating the plugin breaks the head tag, because there’s a wp_nonce_field inside the head, which is invalid markup. If you search for “elex_cpp_ajax_nonce” you should be able to find it and as soon as you move it out of the wp_enqueue_scripts hook everything works again.
Second problem I’d like to point out is the fact that a bunch of dynamic strings in the plugin aren’t translateable. e.g. in
/includes/elex-wfp-product-flexible-price.php
line 195:
wc_add_notice( __( 'Custom Price Cannot be less than ' . $product_min_price, 'elex_wfp_flexible_price_domain' ), 'error' );
Those strings should probably be wrapped in a sprintf and work with %s instead of being concatenated.
Thank you so much!
Felix
- The topic ‘Plugin breaks head and no translation possible’ is closed to new replies.