• Resolved yasbadri

    (@yasbadri)


    Hi,

    When changing the currency, can we stay at the same level on the page (on the same hook) ?
    Thank you for coming back.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support mediawebster

    (@mediawebster)

    Hello

    Unfortunately no. This is just a page reload

    Thread Starter yasbadri

    (@yasbadri)

    thank you, maybe in a future update. cordially

    Plugin Support mediawebster

    (@mediawebster)

    Hello

    Perhaps customization of the code will suit you:

    In file footer.php of your current WordPress theme (use child theme) add next code:

    <?php if (isset($_GET['currency'])): ?>
    
        <script>
            jQuery(function ($) {
    
                setTimeout(function () {
                    $('html, body').animate({
                        scrollTop: $(".currency-switcher-form").offset().top - 100
                    }, 777);
                }, 333);
    
            });
        </script>
    
    <?php endif; ?>
    Thread Starter yasbadri

    (@yasbadri)

    thank you for your comeback. The code works for the following switcher “[wpcs show_flags = 0 width = ‘300px’ txt_type = ‘desc’]” however it does not work with the following short code “[wpcs_price value = 2000]”. I will try to see tomorrow if I can modify the code and replace “currency-switcher-form” with the correct value.

    Thread Starter yasbadri

    (@yasbadri)

    sorry but I made a mistake by wanting to modify the parameter by the short code “[wpcs_price value = 0]” because if we have several short codes in the page, we end up with a problem.
    I am using the side switcher, so you have to replace “currency-switcher-form” with the correct parameter.

    Plugin Support mediawebster

    (@mediawebster)

    Hello

    of course it depends on the template of your page, and you should choose the selector that suits you

    Thread Starter yasbadri

    (@yasbadri)

    Hi,

    Thanks you so much for you help.
    I closed the ticket.

    Plugin Support mediawebster

    (@mediawebster)

    Welcome;)

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Page refresh’ is closed to new replies.