• Hi there, we are using geolocation to differentiate users from different countries. Since we use this feature all of the products that are not available in all countries are not in the feed anymore. I did not change any of the filters or mappings. How can this happen?
    Thanks for your help.
    Tom

Viewing 15 replies - 1 through 15 (of 24 total)
  • Hi Tom,

    Your geolocation plugin is probably causing this. I suspect the geolocation plugin does not ‘recognise’ the cron hook / plugin as a user coming from one of the geolocations you configured and as such not returning any products for the product feed.

    I suggest you reach out to the support team of your geolocation plugin asking how to prevent this from happening.

    Thread Starter tnitschinger

    (@tnitschinger)

    I will try and contact them. But I thought that the feed is generated from the database – so why is there a “user” needed to be identified to create the feed?
    I thought the feed will be created by the defined filters…?
    Thanks

    Yes but some plugins, like for example WPML, set filters before the WP query is build and executed and determine what language is being returned. Your geo-location plugin could very well do exactly the same. Also, since you mentioned this behaviour started when you started using geolocation features changes are pretty big that it is causing it too.

    Thread Starter tnitschinger

    (@tnitschinger)

    Hi there. This is the answer from the dev team:
    ###
    Hi Thomas,
    I reviewed their plugin a bit and what I would need to deactivate geotargetingwp from their feed creation is either a filter hook in the wpquery arguments they use so I can remove filters, or some constant definition that the feed it’s being created such WP_DOING_AJAX
    I can’t see either of those in their code so I don’t have a way to identify that the feed it’s being created and disable it. Please ask them if they are willing to help adding some hooks so others developers can work with their plugin
    ###
    Could you provide something like this? Or is it already available and they just didn’t find it?
    thanks for your help.

    Hi,

    Thanks for your reply. Unfortunately we cannot create a complete hook set-up in our plugin (which it currently doesn’t have and need) for their geo-plugin to work. It would require us to make significant changes to the code of our plugin for 1 users and 1 plugin. Unfortunately the time it would take and the risks it involves for all our other users is not something we can do.

    Thread Starter tnitschinger

    (@tnitschinger)

    hmmm… but you said that e.g. WPML can do this. how is it working there?

    WPML is the most popular multi-lingual plugin so we have build in support for that.

    Thread Starter tnitschinger

    (@tnitschinger)

    But your tool does work with geolocation in general – or not?

    We have not build in specific support for any geolocation plugin, that is correct.

    Thread Starter tnitschinger

    (@tnitschinger)

    Hi – the other Dev team was asking, if it is possible to add something like

    define(‘CREATING_FEED’, true) or similar

    Would that be possible?
    If not in the general plugin – could you help us include this at the right point in your plugin, so we have a custom solution?
    thanks.

    The main script of the plugin can be found here:

    
    ../wp-content/plugins/woo-product-feed-pro/woocommerce-sea.php
    

    The constants are defined are line 51/53 so you could add one below although I do not see how that would change anything?

    Thread Starter tnitschinger

    (@tnitschinger)

    hi – this i got back from the other dev team.

    I need in class-get-products.php
    In line 2144:
    $wp_query = apply_filters( ‘sea/get_products’, array(
    ‘posts_per_page’ => $offset_step_size,
    ‘offset’ => $nr_products_processed,
    ‘post_type’ => $post_type,
    ‘post_status’ => ‘publish’,
    ‘fields’ => ‘ids’,
    ‘no_found_rows’ => true,
    ));

    OR in line 1998:
    public function woosea_get_products ( $project_config ) {
    define(‘SEA_GETTING_PRODUCTS’, true);

    The names can be whatever they want`

    thx

    Those lines refer to the paid (Elite) version of our plugin. Are you on that?

    If so, per the WordPress forum guidelines, we’re not allowed to discuss our paid plugins here so for any questions about our paid plugins, please contact our support team directly.

    Thread Starter tnitschinger

    (@tnitschinger)

    no – we are not on elite…

    The line numbers as given in the example above are from our Elite plugin and not the free one. In the free version of our plugin there is something completely different.

Viewing 15 replies - 1 through 15 (of 24 total)
  • The topic ‘Products not exported when using geolocation’ is closed to new replies.