eme_pe
Forum Replies Created
-
Forum: Plugins
In reply to: [Wanderlust OCA Shipping] Tracking code en e-mail del compradorGracias! En qué momento se dispara el mail? Cuando se genera la etiqueta? Porque de momento no logré que se envíe (estoy con la versión premium).
Saludos!
Forum: Plugins
In reply to: [Wanderlust OCA Shipping] No sumar envío en el carritoNo, la idea no es que sea gratis.
Creo que me expresé mal, lo paso mas detallado:Cuando un usuario ya hizo una compra, quedan guardados sus datos de envío y su preferencia de envío (digamos, oca puerta a puerta por $300).
Si luego hace una nueva compra, en la página del carrito (no en el checkout) en el total le suma el costo del envío sin ninguna aclaración de que hay un extra por el envío. Por ejemplo, si quiere comprar un producto de 600, en el total del carrito dice $900.
Este es un setting de Woocommerce (sumar envío en el carrito), pero por mas que lo desactivé, lo sigue haciendo.
Entonces preguntaba por si tal vez había algo en el plugin que estuviera haciendo eso.
Gracias!
Forum: Plugins
In reply to: [Wanderlust OCA Shipping] Envío PrioritarioPerfecto! Ahí seleccioné Sucursal a sucursal con los distintos códigos de operativas prioritarios y levantó todo ok. Gracias!
Forum: Plugins
In reply to: [Instant Articles for WP] Adding parameters (data-mode and data-feedback)I managed to make the data-feedback parameter work with this custom rule:
{ "class": "ImageRule", "selector" : "figure", "containsChild": "img", "properties" : { "image.url" : { "type" : "string", "selector" : "img", "attribute": "src" }, "image.like" : { "type" : "exists", "selector" : "img", "attribute": "src" }, "image.comments" : { "type" : "exists", "selector" : "img", "attribute": "src" } } }
Basically is will always show comments and likes, because it checks if the src parameter form de img exists. And it always does, of course.
Now, the data-mode=”fullscreen” doesn’t seem to work for images. I managed to make it work for videos with
"fullscreen": { "type": "exists", "selector" : "figure[data-mode=fullscreen]" }
But it doesn’t work for the ImageRule.
Did anyone managed to make this work?
No one is using images on fullscreen?Forum: Plugins
In reply to: [Instant Articles for WP] Modifying the output by filtersI managed to do just that yesterday (couldn’t post it then)
This requires to modify the plugin files, which is not the best thing because on the next update they will be replaced. So very careful when that happens.
The file to change is class-instant-articles-post.php in the plugins folder.
First we have to add the Video class at the top of the file (where all the other classes are called). So, we have to add this:
use Facebook\InstantArticles\Elements\Video;
Then, we go to the to_instant_article function, in find the part of the code that André B. just posted.
$cover = $this->get_the_featured_image(); if ( $cover['src'] ) { $image = Image::create()->withURL( $cover['src'] ); if ( isset( $cover['caption'] ) && strlen( $cover['caption'] ) > 0 ) { $image->withCaption( Caption::create()->withTitle( $cover['caption'] ) ); } $header->withCover( $image ); }
And we replace it with this:
$cover = $this->get_the_featured_image(); if ( $cover['src'] ) { if ($cover['type'] == 'video') { //$image = $cover['src']; $image = Video::create()->withURL( $cover['src'] )->enableComments()->enableLike(); } else { $image = Image::create()->withURL( $cover['src'] ); } if ( isset( $cover['caption'] ) && strlen( $cover['caption'] ) > 0 ) { $image->withCaption( Caption::create()->withTitle( $cover['caption'] ) ); } $header->withCover( $image ); }
So, what it does is give you the option to add a video as cover. I added the enableComments and enableLike options, you can remove that if you don’t want it.
But this is not enought, since the plugin will still only use the featured image as cover. That makes makes sense, since WordPress doesn’t have the option to use a video as thumbnail, so I will asume that you have some custom code to add that in your post.
So, in functions.php of our theme, we add this:
function set_cover($cover_media,$post_id) { // Cover image $cover = HERE YOU HAVE TO GET YOU ATTACHMENT OBJECT, IMAGE OR VIDEO if (strpos($cover['mime_type'], 'image') !== false) { $url = $cover['url']; $type = 'image'; } else if (strpos($cover['mime_type'], 'video') !== false) { $url = $cover['url']; $type = 'video'; } $image_data = array ( 'type' => $type, 'src' => $url, 'caption' => '' ); return $image_data; } add_filter('instant_articles_featured_image','set_cover',100,9);
Here we hook on the ‘instant_articles_featured_image’ filter that the plugin has, and we create our own $image_data array. You will notice a “type” field there. This doesn’t existe in the plugin’s array. This is added to detect whether we are using an image or a video.
Hope this helps.
It would be cool there could be somehting like that in a future plugin update, so we can hook to the instant_articles_featured_image filter and just output a video
Forum: Plugins
In reply to: [Instant Articles for WP] Modifying the output by filtersThe instant_articles_featured_image filter works ok to customize the image header.
Something like this:
function set_cover($cover_media,$post_id) { $image_data = array ( 'src' => YOUR_IMAGE_URL, 'caption' => 'YOUR_CAPTION', ); return $image_data; } add_filter('instant_articles_featured_image','set_cover',100,9);
Still working on getting a video there. Doesn’t work if you enter a video url in the array, because it will result in a <img> with the video on the source.
Forum: Plugins
In reply to: [Instant Articles for WP] Modifying the output by filtersSame here. I guess they didn’t had time yet to create a full documentation on this.
I’m checking the plugin code looking for filters. There is one right before the featured image is returned called instant_articles_featured_image that I guess would allow to change that output. Haven’t tested it yet.
Also there is a get_cover_media function that seems to exist exactly to give the possibility of inserting a video as cover, but I doesn’t get called from anywhere on the code :/
Just started working with this, I’ll post an update if I discover anything else.
Besides the lack of documentation, the plugin seems really good and complete.
Forum: Plugins
In reply to: [Loco Translate] Loco not showing translates list in 4.2.3Changed the php version to 5.4.0, and the 1.5.2 works perfect now. Best!
Forum: Plugins
In reply to: [Loco Translate] Loco not showing translates list in 4.2.3That fixed it! Thanks a lot!
Forum: Plugins
In reply to: [Mercado Pago payments for WooCommerce] Payment StatusThanks a lot, you rock!
Forum: Plugins
In reply to: [Yoast SEO] og:image not showingFound the problem! The image has to be over 200×200 pixels at least. If not, it isn’t shown. In your case, the get-noticed-red image gave me a 404
Forum: Plugins
In reply to: [Yoast SEO] og:image not showingJust found out that it only seems to work if an image is present inside the post. It does not cares for the thumbnail image. The link does show correctly on the twitter:image:src tag.
Forum: Plugins
In reply to: [Yoast SEO] og:image not showingI’m having the exact same problem and could not get it to work. The weird thing is that the Twitter card image tag does show correctly.
Forum: Plugins
In reply to: [W3 Total Cache] Fatal Error: Memory Size exceededI was having the exact same issue since yesterday. I’m hosting in the Grid service in Media Temple, i think it should be enough to handle the plugin.
Also, we are just moving in, so no user was navigating the website except from the three of us, no there is no chance that something might be causing the memory problem.
Finally i had to disable the plugin.
Maybe is related to this? https://www.ads-software.com/news/2011/06/passwords-reset/Forum: Plugins
In reply to: [WP-RecentComments] [Plugin: WP-RecentComments] Not working with WP 3.1?By the way, the problem was that the wordpress upgrade somehow deleted all the plugin configuration. Took me some time to figured it out.