Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi carolemarshall,

    Are you using html emails?

    Thread Starter carolemarshall

    (@carolemarshall)

    Hi Krzysztof,

    Yes I am.

    Thanks,
    Carole

    Thread Starter carolemarshall

    (@carolemarshall)

    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);
    	}

    Thread Starter carolemarshall

    (@carolemarshall)

    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

    Thread Starter carolemarshall

    (@carolemarshall)

    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.

    Thread Starter carolemarshall

    (@carolemarshall)

    Thank you!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘SKUs in HTML emails’ is closed to new replies.