canetwp
Forum Replies Created
-
Forum: Plugins
In reply to: [Woocommerce Delete Product Images] Is it deleting the image from the server?Hey, what a great quick support even for the free version of the plugin! Thank you Harish
Harish, Googling a string to get more infos about the function in the link you sent me I’ve found what I was looking for in this page of the knowledge base.
I post that link here, ’cause it could be of some help for someone else!
https://www.mc4wp.com/kb/send-woocommerce-fields-mailchimp/Now I’m done, thank you. Ciao
wow, thanks for the fast response!
So, if I understand correctly, the normal behavior of the plugin is that the only value that is passed to mailchimp is the email, and also name and surname must be added manually using a function, right?
And this is the same for both the free version of MC4WP and the premium one, right?
Thanx!
Very well, your function works fine so now I can keep the products “add to cart” button active!
Unfortunately, regarding the json error seems that removing/inserting the block doesn’t do the magic… anyway, the important thing to say is that only the preview fails, in fact I can edit the block and change it’s settings without any problem.
The same happens for any of the Woocommerce gutenberg blocks
Anyway, I can consider my ticket solved, thank you very much for your kind and useful cooperation
Hi kellymetal, here is the screenshot.
https://snipboard.io/KaVbXy.jpgit’s important to notice that the error appears ONLY if “add to cart button” option is enabled for the “hand picked products” gutenberg block! And if I remove my functions the error disappears and admin page loads again.
BUT, one more thing to say is that after removing my functions I see a less “terrifiying” message that says “Error loading block: Response is not a valid JSON response” (see screenshot https://snipboard.io/eyKN8P.jpg ). The info stored in the block are correctly saved and the block appears on the website page reproducind the chosen settings of the block: the only problem now is with the preview of the block in admin page!
Last but not least, I can now notice that the first two functions have no reason to exist, so (thanks you for your good suggestion) I have eliminated them. The tests above are now done with only the functions 3 and 4 enabled.
Forum: Plugins
In reply to: [Simple Lightbox] not working with WPMLsorry for the delayed answer!
In the meantime I had created a ticket for the WPML developers and they ended up that SLB is not working with Gutenberg at all!
Please read here:
https://wpml.org/forums/topic/cant-re-use-reusable-galleries-in-translated-pages/This is completely non sense to me, ’cause I can make SLB work fine, but I’ve problems only in a specific situation.
Steps to test are easy:
1. loading pictures and creating a gallery in a page in the default language: SLB Works fine and lightbox opens correctly
2. taking same pictures from the library a creating a brand new gallery in the translated page: SLB Works fine and lightbox opens correctly!
BUT, when you have a gallery you don’t want to make it twice, one for the delault lang and one for the translated page, cause pictures are pictures and most of the time the don’t need to be translated (usually they have no capitions)
SO…
with Gutengerg, the best way to make the same gallery show up in many places is to creat a reusable block.
If this reausable block of the gallery is loaded in another page of the default language SLB keeps on working, BUT if I use it on a NOT DEFAULT lang page, the lightovox breaks: the gallery shows up ok, but the lightbox doesn’t open and at the click on a pic you’ll be redirect to the attachment page.You’ll fine here a development environment where all things are clearly explaned:
http://www.canet-wordpress.it/sviluppo/
http://www.canet-wordpress.it/sviluppo/en/Thank you
Forum: Plugins
In reply to: [Simple Lightbox] not working with WPMLHi, any news here?
After having done some more tests I’d like to update you that:
1. ( one info I gave you was incorrect ) if I create a brand new gallery in a not default lang page the Simple Lightbox plugin WORKS!
2. the lightbox for a gallery created as a reusable block works when the block is loaded on another page OF THE SAME language
(see http://www.canet-wordpress.it/sviluppo/reusable-block-test/ )—-
A proved fact is that before Gutenberg it was possible to copy the gallery shortcode from a default language page and use it on a translated page, so this SHOULD mean that WPML premits to “pass” images through languages.
Maybe now Gutenberg is making things more complicated and inhibiting us this possibility, or maybe SLB manages to handle it differently with some changes to its code … this would be a joy indeed!
For your help I’ve set a debug ambient for you, hope it’ll help you:
http://www.canet-wordpress.it/sviluppo/
http://www.canet-wordpress.it/sviluppo/en/Thanks for your great help (and plugin as well!)
Forum: Plugins
In reply to: [Simple Lightbox] not working with WPMLHowever, I think to remember (hope I’m not confusing with a different plugin, sorry) that a similar problem existed long ago (before gutenberg) and it could be workarounded by adding the string:
link=”rel”
in the shortcode of the translated page gallery … I do not know if this can help.
- This reply was modified 7 years, 3 months ago by canetwp.
Forum: Plugins
In reply to: [Simple Lightbox] not working with WPMLYou’re right, sorry, at the time you checked the gallery the “link to” option was (for mistake) changed to none… now it links to “attachment page” again but the problem persists!
Italian is the default language and it’s working fine (lightbox opens).
English has the “anchor” (a) tag in the HTML output as it should, but the lightbox doesn’t open and link opens the attachment media page.Consider the gallery is a reusable block, so it is the same to both languages!
But I’ve done another test right now, creating a brand new gallery in the second language and loading brand new images here, and than the same images were loaded fron the library in a new italian gallery: the problem is again only for the english gallery.
Forum: Plugins
In reply to: [Simple Lightbox] not working with WPMLIMPORTANT: I’m talking about new Gutenberg gallery block!
Forum: Plugins
In reply to: [Gutenberg] columns block messes if used in custom post typeStupid newbie I am, I should have used
echo get_post_field( ‘post_content’, $my_block, ‘display’ );
instead!🙂
Forum: Plugins
In reply to: [Gutenberg] columns block messes if used in custom post typeTo be complete I must say that HTML output is not working even when opening the post type URL, so it shouldn’t be a print_r($postContent); matter, right?
tnx
- This reply was modified 7 years, 3 months ago by canetwp.
Forum: Plugins
In reply to: [Offers for WooCommerce] editor accesssame need here! admin roles are too dangerous to be given at shop administrator that, by the way, has the need to manage offers!
Forum: Plugins
In reply to: [Simple Lightbox] Error messagesame here, with latest WP and plugin releases!
I have a note: the message doesn’t show up in all admin pages but only in ones related to WPML area