jonofat
Forum Replies Created
-
I installed this plugin today and am having the same issue. All of my html is stripped out and the mail is not formatted properly when receiving it. Any ETA on a fix?
Forum: Plugins
In reply to: [WooCommerce] Change shipping cost based on checkout choiceFair enough, could you possibly help with the below then since it is just WooCommerce with no plugin?
I have created a custom input on the checkout page and when I change it and click outside of it the shipping should update. It only works when sometimes and is a bit erratic. Is there anything obviously wrong here or something I can do to make it work consistently?
add_action( 'woocommerce_after_order_notes', 'my_custom_checkout_field' ); function my_custom_checkout_field( $checkout ) { echo '<div id="my_custom_checkout_field"><h2>' . __('My Field') . '</h2>'; woocommerce_form_field( 'my_field_name', array( 'type' => 'text', 'class' => array('my-field-class form-row-wide'), 'label' => __('Fill in this field'), 'placeholder' => __('Enter something'), ), $checkout->get_value( 'my_field_name' )); echo '</div>'; } add_filter( 'woocommerce_package_rates', 'update_shipping_cost_based_on_custom_field', 10, 2 ); function update_shipping_cost_based_on_custom_field( $rates, $package ) { if ( ! $_POST || is_admin() || ! is_ajax() ) { return; } if ( isset( $_POST['post_data'] ) ) { parse_str( $_POST['post_data'], $post_data ); } else { $post_data = $_POST; } $new_cost = 0; if ( isset( $post_data['my_field_name'] ) && ! empty( $post_data['my_field_name'] ) ) { $new_cost = (float) str_replace( ',', '.', $post_data['my_field_name'] ); } foreach( $rates as $rate_key => $rate ) { $rates[$rate_key]->cost = $new_cost; } return $rates; } add_action( 'wp_footer', 'update_checkout' ); function update_checkout() { if ( ! is_checkout() ) { return; } ?> <script type="text/javascript"> jQuery( document ).ready(function( $ ) { jQuery('#my_field_name').change(function(){ jQuery('body').trigger('update_checkout'); }); }); </script> <?php }
- This reply was modified 2 years, 5 months ago by jonofat.
Forum: Plugins
In reply to: [WooCommerce] Change shipping cost based on checkout choiceHi there, I am using this plugin which saves the date to local storage when you select one from the date picker. Is there any particular info you want from the status info? There is a lot and I don’t want to clog up this post so if you could narrow down what you are looking for I can paste that here.
Forum: Plugins
In reply to: [IP2Location Redirection] Too many redirectsOkay, sure. And then once I update is there anything different I need to do or will it just work?
Forum: Plugins
In reply to: [IP2Location Redirection] Too many redirectsI only downloaded the plugin about 2 hours ago. I just checked the version now and it is 1.23.7 but it is not showing any update available?
Forum: Plugins
In reply to: [IP2Location Redirection] Too many redirectsI am using the WMPML plugin and so /sg is basically the Singapore version of the English site and I don’t think it is just a page. And I will have a few like this eg: example.com/us for the US version.
All pages will basically just have the language code eg:
example.com/sg/about
example.com/sg/contactare translated pages of
example.com/about
example.com/contactSo if someone in Singapore goes to example.com they should be redirected to example.com/sg
Forum: Plugins
In reply to: [IP2Location Redirection] Too many redirectsObviously I am using my real url in the backend and not example.com
Forum: Plugins
In reply to: [WooCommerce] Customer report downloadIs this enough of the report?
### WordPress Environment ###WordPress address (URL):
Site address (URL):
WC Version: 4.1.0
REST API Version: ? 1.0.7
WC Blocks Version: ? 2.5.16
Action Scheduler Version: ? 3.1.5
WC Admin Version: ? 1.1.1
Log Directory Writable: ?
WP Version: ? 5.3.3 – There is a newer version of WordPress available (5.4.1)
WP Multisite: –
WP Memory Limit: 512 MB
WP Debug Mode: –
WP Cron: ?
Language: en_GB
External object cache: –### Server Environment ###
Server Info: LiteSpeed
PHP Version: 7.2.30
PHP Post Max Size: 512 MB
PHP Time Limit: 0
PHP Max Input Vars: 8000
cURL Version: 7.62.0
OpenSSL/1.0.2kSUHOSIN Installed: –
MySQL Version: 10.2.31-MariaDB-log-cll-lve
Max Upload Size: 512 MB
Default Timezone is UTC: ?
fsockopen/cURL: ?
SoapClient: ? Your server does not have the SoapClient class enabled – some gateway plugins which use SOAP may not work as expected.
DOMDocument: ?
GZip: ?
Multibyte String: ?
Remote Post: ?
Remote Get: ?`Forum: Plugins
In reply to: [WooCommerce] Customer report downloadUnfortunately I have to disagree with you here. Please take a look at the screenshot I have attached. Clicking on the download button shows me this message at the bottom of the screen and nothing downloads.
Forum: Fixing WordPress
In reply to: how to update live site after making changes locallyI added text content to a page that had no content previously.
Thanks so much for your response. The details would be very simple. You would literally click on the region and it would simply list the store name, address and contact details per store in that region. There wouldn’t even be a map or anything. I will definitely take a look into custom post types.
Thanks again!