Hugh

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Remove Venue for Webinars (no venue) #1057202
    Hugh
    Participant

    Hi thanks for the feedback but this doesn’t move me any more forward. I have only got a basic understanding of hooks and filters. Looking at it I think are you suggesting to remove the tribe_get_venue_id ?

    Does this hook display all the venue data – it look like it is to just get venue id not the meta data.

    Sorry but a bit lost by your suggestion here.

    in reply to: Managing currencies #1039395
    Hugh
    Participant

    Hi,
    We are looking at changing the price on the ticket page based on the Country using the Geo plugin.

    What we need though is the variable used for the currency symbol and the pricing field

    So we can set a function to change it.

    Can you help with this please re: the variables and any function to change

    Gary

    in reply to: Managing currencies #1033617
    Hugh
    Participant

    Hi George,
    the plugin does convert the currencies based on locale. It uses the IP address so here is a function that can be used:

    /** * Uses a custom geolocation function to detect customer’s location.
    * @param string country_code The country code passed by previous filters (if any).
    * @return string A country code, or an empty string if the country could not be detected.
    */
    add_filter(‘wc_aelia_ip2location_before_get_country_code’, function($country_code) {
    // Call your custom geolocation function to set the country code
    $country_code = your_custom_geolocation_function();
    return $country_code;
    }, 10, 1);

    regards

    Hugh

Viewing 3 posts - 1 through 3 (of 3 total)