Hi carolemarshall,
Are you using html emails?
Hi, anyone have any suggestions on this? It seems like a small thing but it’s aggravating to my client.
I have SKUs turned off and have regenerated the HTML emails. I have also made the following change to jigoshop_emails.php:
ORIGINAL
function jigoshop_get_order_items_table($order, $show_links = false, $show_sku = false, $includes_tax = false)
{
if (\Jigoshop_Base::get_options()->get('jigoshop_enable_html_emails', 'no') == 'no') {
return $order->email_order_items_list($show_links, $show_sku, $includes_tax);
}
NEW
function jigoshop_get_order_items_table($order, $show_links = false, $show_sku = false, $includes_tax = false)
{
if (\Jigoshop_Base::get_options()->get('jigoshop_enable_html_emails', 'no') == 'no') {
return $order->email_order_items_list($show_links, $includes_tax);
}
….and I still get SKUs appearing in my html emails.
Please help.
Thank you,
Carole
Hi carolemarshall,
You can solve this in two ways:
1. Replace and edit emails/items.php template in your theme files.
2. Use this code:
function jigoshop_get_order_items_table($order, $show_links = false, $show_sku = false, $includes_tax = false)
{
if (\Jigoshop_Base::get_options()->get('jigoshop_enable_html_emails', 'no') == 'no') {
return $order->email_order_items_list($show_links, false, $includes_tax);
}
Hi Krzysztof,
Thank you for the help. 🙂
Option 2 does not work; skus still appear in [order_items_table]. Can you please tell me what change to make to emails/items.php ?
~ Carole
I have commented out the following:
<!-- <?php if ($show_sku): ?>
<?php printf(_x(' (#%s)', 'emails', 'jigoshop'), $product->sku); ?>
<?php endif; ?> -->
And it seems to be working. Will this break anything else?
Hi carolemarshall,
This was exactly what you should to do.