nartoof
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Override check_cart_item_stock function@crslz I finally have a problem with your solution.
It override other notice error, like at least invalid login informations on my account page.
Maybe it override other notices error.
Any idea to fix it ?
Or another solution to add the product attribute list in the out of stock cart error message ?
Thank you very much.
Anthony
Forum: Plugins
In reply to: [WooCommerce] Override check_cart_item_stock function@crslz Thank you very much, it works perfectly.
I tried to use this filter before but I certainly didn’t do it correctly because it didn’t works.
Now it’s ok !
Have a nice day ??
Forum: Plugins
In reply to: [YITH WooCommerce Points and Rewards] Points for every product purchasedHello,
there’s a filter that you can use:add_filter( ‘ywpar_floor_points’, ‘__return_true’ );
Try and let me know!
Wow, I thought I had to write a new filter function but I saw your function calculate_points_on_cart() is ready for this filter.
Thank you, it works in a single line ??
Nice job !
Have a nice day.
Anthony
Forum: Plugins
In reply to: [Variation Swatches for WooCommerce] Issue in admin panel with another pluginForum: Plugins
In reply to: [Site Reviews] Default avatar image for non logged in userYep,
That’s what I understood when I read the line you modify.
Thank you for the explanation anyway ??
Anthony
Forum: Plugins
In reply to: [Site Reviews] Default avatar image for non logged in userThank you for your answer.
This made me crazy I didn’t understand where the problem came from !
I’ll patch it even if I can wait, this is for an under development website.
And as I said each time I open a topic here, great job, I really like your plugin !
Thank you.
Forum: Plugins
In reply to: [Site Reviews] Default avatar image for non logged in userI just looked at the database, and I think the problem is when I hide the E-mail field, the avatar URL isn’t correct.
Look at this JSON entry :
{"author":"Anthony Hxxxxx","avatar":"https://secure.gravatar.com/avatar/?s=96&d=mm&r=g","email":"anthony.developpeur@xxxxxx","ip_address":"2a01:e35:2e76:2e10:9d70:52d3:xxxxxxxxx","rating":4}
And the _avatar meta key is the same : https://secure.gravatar.com/avatar/?s=96&d=mm&r=g
I’m logged in, site reviews insert my display name and my email correctly, but there is no key in the avatar URL…
Forum: Plugins
In reply to: [Site Reviews] Default avatar image for non logged in userNew step :
If I do that (with E-mail field show) :
$reviews = glsr_get_reviews([ 'assigned_to' => get_the_ID() , 'per_page' => -1, ]); foreach ($reviews as $review) { $output.='<img src="' . $review->avatar . '" />'; }
It displayed the good avatar in frontend.
But If I do that :
$reviews = glsr_get_reviews([ 'assigned_to' => get_the_ID() , 'per_page' => -1, ]); foreach ($reviews as $review) { $output.= $review; }
It displayed the wrong avatar.
Here is a new screenshot with an echo of the avatar URL : IMAGE
URL’s are good when I show email field. It’s just a display problem in the foreach loop (and same problem if I use your shortcode [site_reviews assigned_to=”post_id”].
But when I hide the e-mail field, there is no key in the avatar URL, it might be the reason of the problem…
EDIT : If I set regenerate avatar to “no”, the good avatar is displayed in front end only if I don’t hide the email field.
But the key is still missing in the avatar URL if I hide the email field.- This reply was modified 5 years, 3 months ago by nartoof.
Forum: Plugins
In reply to: [Site Reviews] Default avatar image for non logged in userAre you posting anonymous reviews while logged in as administrator?
Nope, I’m not logged in when I try to post as anonymous.
I indeed have the email and name field hidden.
I have the latest version of your plugin, and I tried deactive all plugins and switch to a WordPress theme (I even try to reset my functions.php file).
But there is still the same problem.
I tried to add another form with no email and name field hidden. It works correctly in the back office for logged in user (IMAGE) and non logged in (IMAGE).
But in frontend, I got the avatar for both logged in and non logged in (simply using your [site_reviews assigned_to=”post_id”] shortcode) : IMAGE.
And for the form I’d like to use in a custom post type, with no name and email, It’s more weird :
No avatar for non logged in (normal) : IMAGE
No avatar for logged in (weird) : IMAGE (EDIT : If I don’t hide email field, the avatar is correctly displayed in the back office). So if I hide the e-mail field, site reviews find my email as logged in but does not display my gravatar…But in each case, in frontend I got avatar for both : IMAGE
I just can’t find where this problem comes from…
Ok I’ll do that.
Thank you.
Forum: Plugins
In reply to: [Site Reviews] Default avatar image for non logged in userI use glsr_get_reviews() function to display all the reviews.
Even if I try this :
if ($review->author=='Anonymous') $review->avatar='CUSTOM IMAGE URL';
It still display the avatar I use as the admin of the website…
Forum: Plugins
In reply to: [YITH WooCommerce Points and Rewards] Points for every product purchasedThank you for your help.
Sorry to respond only now I didn’t get notified of your answer.
I’ll try it.
Have a nice day.
Anthony
Hi,
I didn’t see any JS error on the developer panel.
I didn’t check the AJAX response.I think it was a problem with the unicity of the ID’s yep.
I can’t share any URL because it is an under development website.
Anyway, I had to uninstall your plugin because I found another plugin working in a owl carousel.
Thank you anyway for your help.
Anthony
Forum: Plugins
In reply to: [Site Reviews] Delete/Hide a submission form fieldHi,
Thank you for your answer and considering my request.
But if you need a major core update, I don’t think it is very necessary.
Woocommerce is not intended to have variations on shop page, and I read they don’t want to add this feature because of speed optimization.
So you will work hard for something used by 2 or 3 people who needs variations on shop page…
Don’t work for nothing, I’ll use your plugin on product page only.
Great job anyway.
Have a nice day.
Anthony