• Resolved mf_iii

    (@mf_iii)


    Hello,

    I have a very weird problem! When i UNCHECK the last option to NOT optimize cart and checkout page, the coupon field in checkout page is disappearing!

    Also it has stuck and even if i disable the plugin the coupon is gone! It is showing only if i enable to optimize the cart/checkout!

    Can you explain me this?

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

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

    (@optimizingmatters)

    It looks like you have JavaScript that is (inadvertently) hiding the coupon div, which isn’t firing when AO is active on the checkout page. If you want to make sure the coupon field is _always_ shown, you could enforce that with this CSS;

    
    .checkout_coupon{display:block!important;}

    hope this helps,
    frank

    Thread Starter mf_iii

    (@mf_iii)

    Hello and thanks but this didnt fix the issue.

    Because, as i told you, the coupon idnt firing when AO is NOT active on checkout page.

    I have to enable the “Also optimize shop cart/ checkout?” option and only that way works.

    That’s the issue

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Not sure I understand, so let’s take a step back:

    * when AO is active on cart/ checkout, coupon field is visible
    * when AO is not active on cart/ checkout, coupon field is not visible

    so:
    * do you want the coupon code field to be visible or not?
    * do you want AO active on checkout or not?

    frank

    Thread Starter mf_iii

    (@mf_iii)

    I want the coupon field visible
    I want the AO NOT active on checkout

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    And when AO is disabled, what is the state of the coupon field in that case?

    Thread Starter mf_iii

    (@mf_iii)

    It’s hiding!! Something has been stuck!

    Thread Starter mf_iii

    (@mf_iii)

    Any idea?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    well, if the problem is there when AO isn’t even active, then the reason (and solution) is elsewhere and I’m afraid “elsewhere” is not really in my area of expertise mf_iii :-/

    Thread Starter mf_iii

    (@mf_iii)

    But before i put your plugin i have not this problem! Something has stuck in database i am afraid even if i disable your plugin.

    How you explain that only if i enable the optimize in cart/checkout, the coupon works?

    So this is in your area of the plugin

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    AO doesn’t make any changes in the database except for it’s own options mf_iii, this must be an unfortunate coincidence. The fact that is works when AO is active is just as much a coincidence (of the more fortunate kind). You could try disabling CSS or JS to see which one “fixes” the coupon visibility, that way you at least have an idea what direction to look into. And the CSS I posted earlier will force the coupon field to be visible if AO is not active, so you could use that as well?

    Thread Starter mf_iii

    (@mf_iii)

    I have disabled CSS and JS but nothing of two fixes the issue.

    Also i have tested your CSS code but nothing again.

    The issue happened right after i put your plugin into my website

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    The issue happened right after i put your plugin into my website

    I have no explanation, I only *know* that AO does not make any changes to the database (except for it’s own options) and there is no logical explanation why after AO installatoin the coupon field would “disappear” when AO is not active.

    I have disabled CSS and JS but nothing of two fixes the issue.

    OK, so when both CSS & JS optimization are deactivated, the coupon field still shows? And when you turn off HTML optimization as well?

    Also i have tested your CSS code but nothing again.

    So how/ where did you add the CSS?

    Thread Starter mf_iii

    (@mf_iii)

    Wait to answer you in detail:

    I have always the last checkbox enabled (optimizing checkout page checked else nothing showing)

    SO:

    If both JS and CSS are enabled the coupon is showing
    If one of them is enabled the coupon is showing
    If BOTH are disabled the coupon is NOT showing

    Also i checked in all combinations HTML and doesnt many any difference.

    I put my in my includes/style.css and also in my theme folder style.css

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    So weird .. can’t make heads or tails of this .. :-/

    What happens when you:
    * have the checkbox enabled
    * have JS optimization on
    * have “aggregate JS” off

    Thread Starter mf_iii

    (@mf_iii)

    If i unchecks aggregate inline JS coupon is not showing

Viewing 15 replies - 1 through 15 (of 25 total)
  • The topic ‘Coupon field gone when i disable optimizing cart/checkout’ is closed to new replies.