• Resolved tremblayly

    (@tremblayly)


    Hi
    I have (3) of the Wholesale Suite plugins bundle. The Wholesale Lead Capture one has a conflict after install and using Autoptimize. The default country (CA) is not applied correctly in the confirmation email after the registration form gets submitted.

    The Wholesale Suite plugin developer spent a number of days troubleshooting this issue and identified your plugin as the cause.

    Right now all testing to resolve this issue is being done on staging area here: http://www.silviafindings.staging.wpengine.com

    Can I please get support to fixing this issue.

    Much appreciated
    Lyse

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    not a simple one .. some questions;
    * did you (or the plugin dev) look at the troubleshooting tips in the FAQ?
    * can you identify if the problem is with JS, CSS or HTML optimization?
    * can you be more precise in the description of the problem; is the problem with the form submittal not working? with the data being submitted? or is the problem with the business logic that sends the mail?

    frank

    Thread Starter tremblayly

    (@tremblayly)

    Hi Frank

    Thank you for the quick response.

    The problem is on with the “country” data not being registered correctly therefore the default is being used. The data is submitted as registered.

    None of the FAQ reference my issue and of course I went directly to the Wholesale plugin support.

    I don’t even know where to begin looking for the issue except that disabling the plugin fixes my problem.

    Lyse

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    None of the FAQ reference my issue

    that’s obvious, your problems is _very_ specific, the faq is pretty generic 🙂

    I went directly to the Wholesale plugin support.

    can they give more info on what exactly is breaking, technically?

    I don’t even know where to begin looking for the issue except that disabling the plugin fixes my problem.

    well, a good start would be to figure out if the problem is with JS, CSS or HTML optimization by disabling 2 out of 3 and trying?

    Thread Starter tremblayly

    (@tremblayly)

    Hi
    I asked the Wholesale plugin developer to send me his findings. He’s in Australia, so I will not hear back from him until later this evening, if he works on my issue.

    OK I can tried what you suggested while waiting on a response from the other support rep. and I could not replicate the issue on my staging area. Test1 I deactivated JS & CSS, test2 I reactivated CSS, test3 I reactivated JS. All email were delivered the correct country code.

    I will wait now for the response from Australia and see what he found.

    Thank you for your patience and prompting me to test further.

    Lyse

    Thread Starter tremblayly

    (@tremblayly)

    Hi
    Here’s the reply I received from the Wholesale plugin developer:

    “I’m afraid I don’t have any specific description for the conflict. But somehow the custom snippet you used for the default country is not saved properly because of the Autoptimize. ”

    Thank you
    Lyse

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    I’m afraid I don’t have any specific description for the conflict

    that’s rather disappointing … :-/

    somehow the custom snippet you used for the default country is not saved properly

    so what snippet is he talking about there?

    I could not replicate the issue on my staging area

    could you try on your PROD site to know which optimization is breaking the default country thingie?

    Thread Starter tremblayly

    (@tremblayly)

    Hi

    I just ran some tests on the production site. When I turn off Optimize JavaScript Code, all my “country” field content is registered and sent via email correctly.

    Here’s the code snippet referred to that is used in the functions.php file to change the default country of the plugin:

    // Change the default country on Wholesale registration form
    function wwsSetRegistrationDefaultCountry() {
     
        if ( is_page( 'wholesale-registration' ) ) {
            ?>
     
            <script type="text/javascript">
                jQuery(document).ready(function () {
                    jQuery('select#wwlc_country').val('CA');
                    jQuery('select#wwlc_country').trigger('chosen:updated');
                    jQuery('select#wwlc_country').trigger('change');
                });
            </script>
     
            <?php
        }
     
    }

    Hope this feedback can help you narrow down what could be happening.

    Thank you
    Lyse

    Thread Starter tremblayly

    (@tremblayly)

    BTW – I left the plugin active without JS activated on the production site.

    I do get a number of wholesale registration

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    OK, that snippet is JS so what you’d want to do is;
    * make sure “also aggregate inline JS” is not active
    * make sure js/jquery/jquery.js is excluded from JS optimization

    can you try that?

    Thread Starter tremblayly

    (@tremblayly)

    Hi

    I made the changes you suggested and turned on the JS. That fixed the problem.

    Thank you for all of your help and for being so prompt.

    Lyse

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    happy it works Lyse, have a nice day! 🙂

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

The topic ‘Autoptize conflict with other plugin’ is closed to new replies.