Forum Replies Created

Viewing 11 replies - 1 through 11 (of 11 total)
  • jonofat

    (@jonofat)

    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?

    Thread Starter jonofat

    (@jonofat)

    Fair 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.
    Thread Starter jonofat

    (@jonofat)

    Hi 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.

    Thread Starter jonofat

    (@jonofat)

    Okay, sure. And then once I update is there anything different I need to do or will it just work?

    Thread Starter jonofat

    (@jonofat)

    I 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?

    Thread Starter jonofat

    (@jonofat)

    I 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/contact

    are translated pages of

    example.com/about
    example.com/contact

    So if someone in Singapore goes to example.com they should be redirected to example.com/sg

    Thread Starter jonofat

    (@jonofat)

    https://prnt.sc/132futq

    Obviously I am using my real url in the backend and not example.com

    Thread Starter jonofat

    (@jonofat)

    Is 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.2k

    SUHOSIN 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: ?`

    Thread Starter jonofat

    (@jonofat)

    Unfortunately 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.

    https://prnt.sc/sgisnx

    Thread Starter jonofat

    (@jonofat)

    I added text content to a page that had no content previously.

    Thread Starter jonofat

    (@jonofat)

    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!

Viewing 11 replies - 1 through 11 (of 11 total)