• Resolved Madhuben Prajapati

    (@maheshprajapati35)


    we export our orders with the field named Embedded Product Image,
    But we got the cropped image in our exported file,
    So we want help, so that we can get full image in our exported file,

    For that,
    we have tried to change height and width at many places in WordPress,
    but still we get cropped image in our exported file,
    Please help so we can get full image in our exported file.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Madhuben Prajapati

    (@maheshprajapati35)

    If we use below code, didn’t get the output,
    Can you please suggest code for the same

    function image_hwstring( $width, $height ) {
    $out = ”;
    if ( $width ) {
    $out .= ‘width=200″‘ . intval( $width ) . ‘” ‘;
    }
    if ( $height ) {
    $out .= ‘height=300″‘ . intval( $height ) . ‘” ‘;
    }
    return $out;
    }

    Plugin Author algol.plus

    (@algolplus)

    try add this code to section “Misc Settings”.

    add_filter('woe_get_order_product_value_embedded_product_image', function ($value, $order, $item, $product,$Item_meta) {
      $value =  wp_get_attachment_image_url( $product->get_image_id(), $size = 'large', $icon = false ); 
      return $value;
    }, 10, 5);
    Thread Starter Madhuben Prajapati

    (@maheshprajapati35)

    thank you,
    It’s working

    Plugin Author algol.plus

    (@algolplus)

    you’re welcome

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Changing Embeded Product Image Size’ is closed to new replies.