froger-me/woo-wechatpay

Broken Link to QR Code Image with Polylang

MarcusCaeruleus opened this issue · 0 comments

This is already solved, but thought I would post here to make it easier for anyone else trying to solve this problem. I am using PolyLang with Hyyan WooCommerce Polylang Integration. For whatever reason, this combination moves the QR Code image to a language specific location but does not update the address used by Woo WeChat. As it seems to only be a single image causing the problem, I used a permanent redirect to solve. Seems to work fine and will hopefully survive future updates.

Redirect permanent /wc-api/WC_WechatPay/ /zh/wc-api/WC_WechatPay/

The actual language you choose doesn't seem to matter as the QR code doesn't have any text associated anyway.