• Resolved shakatime

    (@shakatime)


    Hi,

    I would appreciate if you can help me resizing the product images that are sent in the emails when I use {{cart.product.table}}.

    The size of the images that are sent in the emails are 1600×950.

    Thank you,

    Great plugin

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Support CartFlows Team

    (@cartflows)

    Hello @shakatime,

    Thank you for reaching out to us.

    We have added the filter through which you can adjust the product table CSS.

    Please refer to the below doc for the same.
    https://cartflows.com/docs/filters-to-customize-product-table/

    Let us know how it goes.

    Thread Starter shakatime

    (@shakatime)

    Hi,

    I tried the code on the functions php, but I get this error:

    syntax error, unexpected ‘table’ (T_STRING)

    The line of code where I get the error is on: $style_filter[‘table’][‘attribute’] = ‘align=”center” ‘;

    Thank you!

    Plugin Support CartFlows Team

    (@cartflows)

    Hello @shakatime,

    Sorry for the inconvenience caused. There was a syntax error due to the missing single quote.

    Please update the code as below.

    add_filter( 'woo_ca_email_template_table_style', 'wcar_product_table_styles', 10 ); 
    
    function wcar_product_table_styles( $style ){
    
        $style['product_image']['style'] = 'height: 42px; width: 42px;';
        
        $style['table']['style'] = 'color: #636363; border: 1px solid #e5e5e5; width:250px;';
        
        $style['table']['attribute'] = 'align="center" ';
        
        return $style;
    }

    Please let us know how it goes.

    Thread Starter shakatime

    (@shakatime)

    Hi,

    The code works now on the theme functions, but the images are too big in the emails even though I tried changing the size of the images from 42×42 to 100×100, but still doesn’t work.

    Thank you very much.

    Plugin Support CartFlows Team

    (@cartflows)

    Hello @shakatime,

    It should not happen. Please make sure that you have added the px after the number and in the correct format.

    Are you using outlook? If yes, then we haven’t added support for the outlook.

    Let us know how it goes.

    Hi there,

    I’m experiencing exactly the same problem and, yes, I am using px (and also added !important) to the filter style.

    You say there’s no support for Outlook but, in the UK, this accounts for something like 40% of all mail clients. Also, the same huge image problem exists in gmail (which accounts for over 50% of UK mail users) it appears the plugin isn’t working correctly for over 90% of UK users.

    Hope you can investigate further and provide a solution.

    Regards,

    Dave

    Hi again,

    I’ve just updated woocommerce (from 5.5.2 to 5.8) which appears to have solved the issue. I’ve also removed the filter from functions.php as this doesn’t appear to have any effect on the image size.

    The product table is now 100% of the preview pane in both Outlook and Gmail, with the image taking up approx 40% of that width.

    Regards,

    Dave

    Plugin Support CartFlows Team

    (@cartflows)

    Hello @riflebird,

    Thank you for the information.

    We always recommend our users to make sure that Woocommerce is up to date. Using an older version of Woocommerce may cause other issues too.

    @shakatime can you please confirm the same?

    Let us know how it goes.

    Thread Starter shakatime

    (@shakatime)

    Hi,

    I checked and I am running WordPress version: 5.8.1.

    I just did a test again and still the images are 1250×1620 on the emails test.

    The emails I am receiving is via Outlook.

    Let me know if I need to do anything to fix this issue.

    Thank you!

    Plugin Support CartFlows Team

    (@cartflows)

    Hello @shakatime,

    Outlook does not support CSS like px. We are checking what we can do to add support for the images. Meanwhile, can you please remove the px from your custom CSS else you might need to update the product image?

    Let us know how it goes.

    onlinewpbd

    (@onlinewpbd)

    +1 on desperately needing a solution for Outlook.

    The images are Enormous and sadly the product table is unusable.

    Whatever solution you have would be greatly appreciated.

    Plugin Support CartFlows Team

    (@cartflows)

    Hello @onlinewpbd,

    Apologies for the inconvenience caused.

    Our developers are looking for a solution. Once we fix this issue, we will release an update.

    Let us know if you have any questions.

    +1 on this. Has there been a solution to this? It’s still an issue with outlook 4 months on.

    Many thanks,

    Sam

    Plugin Support CartFlows Team

    (@cartflows)

    Hello @somarketingsam,

    Just to let you know that we have fixed this issue but have not been released yet as it is in the testing phase. However, we will release it soon.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Product images are huge’ is closed to new replies.