Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author vendidero

    (@vendidero)

    Hi there,

    seems like you are misusing the option under WooCommerce > Settings > Germanized > Button Solution > Order Confirmation Text to inject custom HTML to your thankyou page. This is not the way this feature is intended to be used. If you want to inject custom HTML code, use the WooCommerce actions/hooks, e.g. woocommerce_thankyou. See: https://www.hardworkingnerd.com/a-guide-to-the-woocommerce_thankyou-action/

    Best,
    Dennis

    Thread Starter kircayigit

    (@kircayigit)

    Actually I’m not using the personalization in “Order Confirmation” or any other html injections. There’s only language upgrades without any html tags. Please check:
    https://ibb.co/cXk5Rg4

    • This reply was modified 1 year, 5 months ago by kircayigit.
    Plugin Author vendidero

    (@vendidero)

    I guess you are using the filter woocommerce_thankyou_order_received_text manually in your functions.php or via another plugin. Germanized does not apply the filter – that’s part of WooCommerce. WooCommerce does, in newer versions, escape the output of this filter on the thankyou page. You should instead use the action I’ve referenced in my original reply.

    Best,
    Dennis

    Thread Starter kircayigit

    (@kircayigit)

    I checked to use your reference to change it. Even if I try to put thankyou text without any html tags, there’s no sign of change. I will double check if there is another plugin which can cause this issue. However when I search the raw text in string search, I directly reach the edited text in loco translate plugin. As you know, you cannot implement any html tags in translation if there aren’t any tags which already implemented.

    Thank you for your time, and can you also check if this problem only exist in our site?

    Plugin Author vendidero

    (@vendidero)

    Hi,

    adjusting the text via loco translate is not a good idea I guess. Maybe you’ve overridden the default WooCommerce translation – that will cause issues I guess. This issue does not happen in a default setup and is not part of Germanized.

    Best,
    Dennis

    Thread Starter kircayigit

    (@kircayigit)

    Hi Dennis,

    I checked that there’s no intervention from another code or plugin to the thankyou-page. So I checked my other options, like add a function code (like: https://wp-kama.com/plugin/woocommerce/hook/woocommerce_thankyou_order_received_text //maybe someone else can you use this formula).

    Than I checked my theme’s (Woodmart) options which let me edit thankyou-page primary text. Than I put a text and hide issue via CSS (display:none;). I know that’s not a pure solution but it works for now.

    Maybe it’s theme’s intervention even I don’t use their option. However it’s really strange that I cannot find any of this text’s string on string locator, just translations of woo-germanized; and there’s no html tags in translation as I told.

    Thx for your time.

    Sincerly,
    Yi?it

    Plugin Author vendidero

    (@vendidero)

    Hi there,

    hm, sounds quite strange. You could test that by exclusion: Deactivate all plugins (one after another) except Woo and Germanized and activate a default theme to see which extension causes the issue.

    Best,
    Dennis

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Checkout/order-received HTML Tags Error’ is closed to new replies.