Localize “Share cart”button text
-
I noticed the “Share cart” (configurable text) appeared not to be translatable.
Fixed that in class-wcssc-frontend.php (in /www/wp-content/plugins/woo-save-and-share-cart/classes folder)/* * Display Share Cart button */ function render_share_button(){ global $wcssc; $share_cart_button = $wcssc->configuration['wcssc_btn_txt']; //esc_html_e( $share_cart_button, 'wcssc' ); echo $wcssc->configuration['wcssc_btn_txt']; if( current_action() == $wcssc->configuration['wc_wcssc_button_pos'] ){?> <button class="button button-primary" id="wcssc-share-cart"><?php esc_html_e( $share_cart_button, 'wcssc' ); ?></button><?php } }
Please incorporate this in next plugin release
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Localize “Share cart”button text’ is closed to new replies.