Language change problem immediately after application wc+polylang



  • With wc, polylang (not about), the application and the basket are consolidated into a single page, and the problem of processing the application when it is in any case, when it is paged, thanks opens to the angle (default tongue) (also referred to as /shop/my-account/checkout/order-received/375/?

    Used to change the reference to the woo-commerce filter_get_checkout_order_received_url, but at that point, the movement defines the default language

    How do you translate the pages of order_received?

    The design and basket are grouped as follows:

        <?php echo do_shortcode('[woocommerce_checkout]'); ?>
    
    &lt;?php
    add_action('woocommerce_after_cart', 'natnset_after_cart', 10);
    do_action('woocommerce_after_cart'); ?&gt;
    

    </div>

    <?php
    remove_all_filters('woocommerce_before_cart_collaterals');
    do_action('woocommerce_before_cart_collaterals'); ?>

    <?php
    /**

    • Cart collaterals hook.
    • @hooked woocommerce_cross_sell_display
    • @hooked woocommerce_cart_totals - 10
      */
      remove_all_filters('woocommerce_cart_collaterals');
      do_action('woocommerce_cart_collaterals');
      ?>

    Those in the cart suite are placed in a short form



  • If you work hard and get on the plate page https://ru.wordpress.org/plugins/polylang/ section frequently asked questionsparagraph Shall we combine Polylang with WooCommerce? You'll see that the plagin doesn't be friends with WooCommerce, without crypt. There may be free, but the developer says that without a crutch, working with WooCommerce won't work.

    I see two exits:

    1. Buy a crutch award,
    2. Find a bonus and see how friendship is built and smash your crutches.


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2