Forum Replies Created
January 15, 2021 at 11:03 am in reply to: REQUEST_DENIED: API keys with referer restrictions cannot be used with this API. #8946
Hello, sorry for the delay, there a mailing issue on our server.
I believe you are using other APIs on the same project other than the Distance Matrix API, make sure it’s the only one enable on the project, others need to be removed.January 12, 2021 at 11:17 am in reply to: REQUEST_DENIED: API keys with referer restrictions cannot be used with this API. #8931
Hello, this happens because one of the services you’re using can’t be used with referrer restrictions. The API that the plugin uses is Google Distance Matrix API, you should use alone to not get the error.
Let us know how it goes!
Happy to help
Ok, can you share the admin login details with me in a message to this email so I can have a look:
Our plugin only adds another shipping method and perform needed calculations to force a fee, if local pickup is not appearing, then there a problem with local pickup, not the delivery plugin. You might want to disable the existing plugins one by one to see if one of them is causing the issue, or revert any recent changes.
You can only set quantity for single items, not the whole product to not break the functionality of the order builder, but user can select quantity on cart if needed.
Regarding options price, this is not supported.
regarding currency, can you give me an example please?
Sorry for the delay, but our support is limited to the plugin functionality, the keys you’re using are restricted from you Google API console and this is not something we can help with.
We have provided instructions based on what we know, if it doesn’t work for you then you’ll have to contact the API support about this issue as the API key wouldn’t work with any other plugin not just ours.
The min quantity is only on item level, not on product level. Also, if this issue is with items, please try to disable your plugins one by one to see which one is causing the issue as this might be conflict with some other JS code.
When you click add rate button, does it show any errors in the console or not?
Hello, this is the hook that you need to use: wpali_add_distance_shipping_rate
It’s a filter with single parameter ($rate), you need to return false if your condition is met, this way the rate won’t be applied if the condition is met ( shipping class exists )
The quantity box is hidden by default on our plugin since quantity is manager per items not on product level, it shouldn’t appear on order builder is enable. This means that your theme forces the box the show.
I can write the correct CSS to hide it if you send me a link to your website.
Perfect, good to hear it’s working
Since this is not working, the only way is by editing core code, go to
Then search for ( should be on line 199)
$this->loader->add_action( 'woocommerce_add_to_cart_validation', $plugin_public, 'wwob_prevent_items_add_to_cart', 10, 2);
and comment or remove this code.
Thanks, I got your email and responded.
You’ll need to change the restriction type as some of the APIs don’t allow it, that’s a problem on Google side.
Ok, do you mind taking a screenshot of the browser console after you click the add rate button