Fancy Product Designer Multistep Product Configurator
Hi Christian,
thank you for your code. Unfortunately the image is appearing as broken. There is some base64 content in there. Does it work on your installation? Can you assist me?
Thanks!
Any idea for adding this in the future?
It is seems iOS Mail.app starts to caching embedded images by its name (and show all over images as first loaded with same name). So i recommend to make unique name:
$cid = 'item_' . $count . '.png';
|
V
$cid = 'item_' . strval($item_id) . '.png';
Any chance how the design image could be bigger included @ the new order email, or how it could be made bigger?
it is possible only in 3.4.8 or below (after that FPD didn't store image in (_)fpd_data meta field due some mistaken code)
in yourtheme/woocommerce/emails/email-order-items.php (copy it from plugin):
$count = 1;
foreach ( $items as $item_id => $item ) :
...
...
do_action( 'woocommerce_order_item_meta_end', $item_id, $item, $order, $plain_text );
$cid = 'item_' . $count . '.png';
$img = $item['_fpd_data']['fpd_product_thumbnail'];
if($img)
{
echo '<br>Эскизы сторон:<br>';
echo '<img src="cid:';
echo $cid;
echo '">';
$imgdata = base64_decode(explode(',',$img)[1]);
#$imgdata = explode(',',$img)[1];
#write_log('img = ' . $imgdata);
add_action( 'phpmailer_init', function($phpmailer)use($cid, $imgdata){
//$phpmailer->SMTPKeepAlive = true;
write_log('cid = ' . $cid);
write_log('imgdata = ' . $imgdata);
$phpmailer->addStringEmbeddedImage($imgdata, $cid, $cid, 'base64', 'image/png');
remove_action( 'phpmailer_init', __function__ );
});
}
$count++;
With the plugin as it is currently not, no sorry. You could make a feature request for this or support and existing one (I have not checked for one).
I'm now in version 3.9.2.
Does anyone have a solution for this with the latest version of FPD?
Same here. Did anyone find a way to change the Admin Order Screen thumbnail?
I think the feature is in the next new version which is 3.9.3. Radykal is currently working on this.
This code doesn't work for me as well.
Is it on by default or do we have to enable it somehow?
Christian Nießing
Hi,
I have the problem that the procuct thumbnail in woocommerce order e-mail ist not the customized one. It is showing the basic procut image instead of the customized product. Is there any way to achieve this?