How to send product_number in order email

Author Message

Nuno Portugal

Saturday 20 June 2009 12:11:10 pm

Cant send the product_number atribute of a product in the order email.Tried
{$product_item.item.item_object.contentobject.main_node.data_map.product_number}

and

{$product_item.item.item_object.contentobject.main_node.data_map.product_number.content|wash()}
but it doesnt works.

Thx

Heath

Saturday 20 June 2009 3:27:58 pm

Perhaps you can fetch the content object and use the fetch results instead.
<i>http://ez.no/doc/ez_publish/technical_manual/4_0/reference/modules/content/fetch_functions/node
http://ez.no/doc/ez_publish/technical_manual/4_0/reference/modules/content/fetch_functions/object</i>

Take a look at these examples

{$product_item.item.item_object.contentobject.main_node.data_map.product_number.value|wash()}{$product_item.item.item_object.contentobject.main_node.data_map.product_number|attribute(show,1)}
{$product_item.item.item_object.contentobject.main_node.data_map.product_number.content|attribute(show,1)}
{def $product_node=fetch( 'content', 'node', hash( 'node_id', $product_item.item.item_object.contentobject.main_node.node_id ) )}
{$product_node.name|wash} - {$product_node.data_map.product_number.value}

Also try using the attribute operator, <i>http://ez.no/doc/ez_publish/technical_manual/4_0/reference/template_operators/miscellaneous/attribute</i>

Cheers,
Heath

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

Lukasz Klejnberg

Wednesday 24 June 2009 1:10:13 am

Hi,

Try this:

{$ProductItem:item.item_object.contentobject.data_map.product_number.content}

I use this in section:

{section name=ProductItem loop=$order.product_items show=$order.product_items sequence=array(bglight,bgdark)}{/section}

Regards,
Lukasz

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.