Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter peteratomic

    (@peteratomic)

    The other problem I’m experiencing is that the shipping details are already showing regardless of whether the checkbox “Ship to a different address?” is selected.

    Plugin Author ulihake

    (@ulih)

    Hello peteratomic.

    Thanks for contacting. Could it be that you use template overrides for WooCommerce? Please have a look in your theme directory. If there’s a WooCommerce folder inside the most probable cause is that you’re using outdated templates. If you update the template overrides your coupon links should work again.

    Your other problem may be due to a setting misconception of WooCommerce itself. Could you please check your “Shipping destination” settings…

    If you default to shipping address you will see the shipping address with the checkbox activated, if you default to billing address the shipping address part will be hidden on checkout page load.

    Regards.
    uh

    Thread Starter peteratomic

    (@peteratomic)

    Sorry to say that our templates are the latest version and these problems only appear after enabling rich/poor guy plugins. Unless there is an immediate solution we’ll have to use some other plugin to do custom fields.

    Plugin Author ulihake

    (@ulih)

    Hello peteratomic.

    Ok, did some additional testing and it seems that something has changed inside WooCommerce once again. I have to track this. In the meantime you can fix this easily configuring an empty value for both related coupon labels: “Set coupon message” and “Set coupon link message”. This will trigger the WooCommerce default behavior fixing the problem.

    Please tell me if this works. I will try to provide an update for this nevertheless.

    Regards.
    uh

    Plugin Author ulihake

    (@ulih)

    I did some more testing. In fact, this works correctly. You only have to avoid spaces and non visible characters in the Set coupon link message field. In this case the link will not display.

    Regards.
    uh

    Same issue here with:
    WooCommerce Poor Guys Swiss Knife Version: 2.2.4
    WooCommerce Rich Guys Swiss Knife Version: 2.3.4

    Setting empty values for coupon message and coupon link message still doesn’t work.

    If I remove my extra fields in WooCommerce Checkout Order Section then it works.

    I’m getting a JS error too:
    Uncaught TypeError: Cannot read property ‘replace’ of undefined

    …which is the $html line here:

    jQuery("label[display='terms']").each(function(i, terms){
    	var $terms = jQuery(terms);
    	$html = $terms.attr("terms").replace(""", "\"");
    	var $container = jQuery("<div id=\"terms_" + i + "\" style=\"display:none\"></div>");
    	$container.html($html);
    	$button = $terms.html();
    	var $toggle = jQuery("<span> <a href=\"javascript:void(0)\" onclick=\"jQuery('#terms_" + i + "').toggle();\">" + $button + "</a></span>");
    	$for = $terms.attr("for");
    	$checkbox = jQuery("#" + $for);
    	$checkbox.before($container);
    	$terms.html($toggle);
    });

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘coupon code link in checkout won't work with this plugin’ is closed to new replies.