• Resolved lala1003

    (@lala1003)


    Hi everyone!

    Maybe anyone will be able to help me on this.

    I am looking at changing this section of the code:

    <h3><?php _e( ‘Product Details’, ‘woocommerce-product-stock-alert’ ); ?></h3>
    <table cellspacing=”0″ cellpadding=”6″ style=”width: 100%; border: 1px solid #eee;” border=”1″ bordercolor=”#eee”>
    <thead>
    <tr>
    <th scope=”col” style=”text-align:left; border: 1px solid #eee;”><?php _e( ‘Product’, ‘woocommerce-product-stock-alert’ ); ?></th>
    <th scope=”col” style=”text-align:left; border: 1px solid #eee;”><?php _e( ‘Price’, ‘woocommerce-product-stock-alert’ ); ?></th>
    </tr>
    </thead>
    <tbody>
    <tr>
    <th scope=”col” style=”text-align:left; border: 1px solid #eee;”><?php _e( $product_obj->get_name(), ‘woocommerce-product-stock-alert’ ); ?>
    <?php if($product_obj->get_type() == ‘variation’){
    foreach ($product_obj->get_attributes() as $label => $value) {
    echo “<br>”.ucfirst(wc_attribute_label($label)).”: “.ucfirst($value).”“;
    }
    } ?></th>
    <th scope=”col” style=”text-align:left; border: 1px solid #eee;”><?php _e( $product_price, ‘woocommerce-product-stock-alert’ ); echo ( isset( $is_prices_including_tax ) && ($is_prices_including_tax != “yes” )) ? WC()->countries->ex_tax_or_vat() : WC()->countries->inc_tax_or_vat(); ?></th>
    </tr>
    </tbody>
    </table>

    <p style=”margin-top: 15px !important;”><?php printf( __( “Following is the product link : “, ‘woocommerce-product-stock-alert’ ) ); ?>“><?php echo $product_name; ?></p>

    Would it be possible to display only the first product image on the left side, the product title + price on the right side of the image and a “Buy now” button?
    Here is an example what I mean:
    https://s19.directupload.net/images/200211/85cpzga3.png

    I would be thankful for any reply on this.

    xx

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Add product image to subscriber alert email’ is closed to new replies.