WC_Cache_Helper::update_geolocation_hash()

Updates the woocommerce_geo_hash cookie, which is used to help ensure we display the correct pricing etc to customers, according to their billing country.


Description Description

Note that:

A) This only sets the cookie if the default customer address is set to "Geolocate (with Page Caching Support)".

B) It is hooked into the wc_ajax_update_order_review action, which has the benefit of ensuring we update the cookie any time the billing country is changed.


Source Source

File: includes/class-wc-cache-helper.php


			


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.