lala1003
Forum Replies Created
-
Hello @dualcube
yes, I would love to override the template file, but unfortunately I don’t know how to code php template files ??
That’s why I was hoping you could maybe look into the code, to make the e-mail look like in the image posted? I would be so thankful for any help with the code ??
Hello @dualcube
firstly I am very thankful for your reply on my topic.
I would like to modify the php email template of the stock_alert_email.php.
Right now, with the code I posted previously, the e-mail looks like this:
https://s19.directupload.net/images/200220/f8gd3kml.pngI would like to have it look like this:
https://s19.directupload.net/images/200211/85cpzga3.pngThat means:
-display the first product image on the left side
-display the product title + price on the right side of the image
-display a “Buy now” button (that contains the link to the product)Could you help me with this?
Best regards
Hi!
I tried the code you provided. Unfortunately it is not working ??
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?
I would be thankful for any reply on this.
xx
Hey Dennis,
problem no. 2 is resolved.
The page is https://www.majawaleskacollection.com
I hope you can help with problem no. 1 ??
Thanks so much!
Forum: Plugins
In reply to: [WooCommerce] Woocommerce E-Mail translation ProblemHi Mike,
the e-mail issue is resolved.
Do you maybe have a solution for problem no. 1 with the cart issue? ??
Thanks a lot!
Forum: Plugins
In reply to: [WooCommerce] Woocommerce E-Mail translation ProblemSo you don’t think it’s a woocommerce issue? ??
Do you maybe have an advice on what exactly to do? ??
Forum: Plugins
In reply to: [WooCommerce] Woocommerce E-Mail translation ProblemSo what do you suggest I do? ??
Forum: Plugins
In reply to: [WooCommerce] Woocommerce E-Mail translation ProblemHere it is
[IMG]https://fs5.directupload.net/images/160416/k978r22l.png[/IMG]
Forum: Plugins
In reply to: [WooCommerce] Woocommerce E-Mail translation ProblemSorry for asking but how do I do that?
In Loco Translate Plugin everything is translated correctly.
So what should I do? ??
Thank you!
Forum: Plugins
In reply to: [WooCommerce] Woocommerce E-Mail translation ProblemBut what do I do when the strings are already translated correctly in the plugin but the refund-email is still half german / half english? ??
Forum: Plugins
In reply to: [WooCommerce] Woocommerce E-Mail translation ProblemHey Mike!
#2: Could this be resolved in the Loco Translate Plugin or how would I be able to change that?
Thankyouuuu
Forum: Plugins
In reply to: [WooCommerce] Woocommerce E-Mail translation ProblemHeeeey,
thank you for your advice on the cart issue.
Do you maybe also have a solution for problem no. 2 with the “refund” e-mail? ??
Thanks so much!