• Resolved VR Webs

    (@net4earning)


    Hi

    first of all thanks for this plugin.

    i’m trying to change the heading from “Billing and shipping address” to “Billing Address”, since i’m not using the shipping using your plugin.

    i trid using the “gettext” filter
    add_filter( ‘gettext’, ‘billing_field_strings’, 10, 9 );
    but its not working with this plugin, when i deactivate the plugin, it works
    plz guide me on this issue.
    thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support jmatiasmastro

    (@jmatiasmastro)

    @net4earning Hi mate, you’re welcome!

    Please share some screenshots to describe your issue.

    You can use this tool to copy/paste your screenshots here easily: https://snipboard.io

    Best regards, Quadlayers Support Team.

    Thread Starter VR Webs

    (@net4earning)

    Thanks for quick reply

    plz chk the screen shot https://snipboard.io/LqGSve.jpg

    function used

    function wc_billing_heading_strings( $translated_text, $text, $domain ) {
    switch ( $translated_text ) {
    case ‘Billing and shipping address’ :
    $translated_text = ( ‘Customer Information’, ‘woocommerce’ ); break; case ‘Billing detail’ : $translated_text = ( ‘Customer Details’, ‘woocommerce’ );
    break;
    }
    return $translated_text;
    }
    add_filter( ‘gettext’, ‘wc_billing_heading_strings’, 10, 3 );

    Plugin Support jmatiasmastro

    (@jmatiasmastro)

    @net4earning

    Thanks for sharing the details and the screenshot.

    Our plugin does not modify or override the “Billing and shipping address” text, so no additional function or code should be needed to change it.

    The issue you’re experiencing with the gettext filter not working when our plugin is active may be caused by a conflict or how the plugin interacts with WooCommerce or your theme.

    Please try the following: deactivate other plugins except WooCommerce and ours, switch to a default theme like Twenty Twenty-Three, and test again if the filter works.

    If the problem persists, send us access to your site so we can investigate further.

    Best regards, Quadlayers Support Team.

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

You must be logged in to reply to this topic.