Hi! Is there any way I can set the banner that says ‘WE NOTICED YOU’RE VISITING FROM UNITED KINGDOM (UK). WE’VE UPDATED OUR PRICES TO POUND STERLING FOR YOUR SHOPPING CONVENIENCE….’ not to show? I do want the currency to switch to their own at checkout but my product pages are not Woo pages and therefore the price appears in USD and doesn’t switch until cart / checkout. Thanks!
Is there any way I can set the banner that says ‘WE NOTICED YOU’RE VISITING FROM UNITED KINGDOM (UK). WE’VE UPDATED OUR PRICES TO POUND STERLING FOR YOUR SHOPPING CONVENIENCE….’ not to show? I do want the currency to switch to their own at checkout but my product pages are not Woo pages and therefore the price appears in USD and doesn’t switch until cart / checkout.
From what I understand, you’re seeking a way to disable the banner notification that informs the user of the currency change based on their location, while still keeping the functionality of currency conversion at the checkout stage. You’ve also mentioned that your product pages are not WooCommerce pages and therefore, the prices are displayed in USD and do not switch until the cart/checkout stage.
To provide you with the most accurate solution, could you please provide us with additional details? Specifically, it would be helpful if you could tell us which multi-currency plugin you are using for this functionality. Also, could you please share the URL of your website? This information will allow us to better understand your setup and guide you through the process.
Thanks for your patience and cooperation in this matter! We’re here to help you get this sorted.
To hide the notice on all pages but the checkout and cart pages you will need to get the page IDs for both pages and add the following code:
/* Hide notice on all pages */
.woocommerce-store-notice {
display: none !important;
}
/* Show notice on specific pages */
.page-id-X .woocommerce-store-notice,
.page-id-Y .woocommerce-store-notice {
display: block !important;
}
This CSS targets the .woocommerce-store-notice element but overrides the display property on pages with the IDs X and Y, making the notice visible on those specific pages while keeping it hidden on all others.
Replace X and Y with the actual page IDs where you want the notice to be shown. You can find the page IDs by editing the pages in the WordPress dashboard and checking the URL; the number following post= in the URL is the page ID.
I hope this was clarifying. If you face any issues or have any questions, please let us know so we can assist you further.