Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Add feature to invoice Rate Topic   - - - - -

 
  • mwouters
  • Junior Member
  • Members
  • Join Date: 06-Nov 09
  • 46 posts

Posted 29 March 2013 - 08:43 PM #1

Hello,

I would like to add a certain product feature in the list of products on the print invoice page.
I found out there is a template hook in /stores/1/skins/[used_skin]/mail/orders/invoice.tpl called

{hook name="orders:product_info"}

So I added a template in:

/stores/1/skins/[used_skin]/customer/addons/my_changes/hooks/orders/product_info_post.tpl

First problem: this tpl does not seem to be taken into account.. what am I doing wrong?
When I type the same text below the hook it does show up..

Second question: I tried to loop through t he product features as follows:

{foreach from=$product.product_features item=’i’ key=’k'}{if $i.description == “Artist Name”}Design by {$i.value}{/if}{/foreach}

and replaced $product.product_features with $oi.product_features but it doesn't work..

Any one has an idea on how to get them?

Thanks a lot for any help!

 
  • mwouters
  • Junior Member
  • Members
  • Join Date: 06-Nov 09
  • 46 posts

Posted 30 March 2013 - 09:10 PM #2

No developers in this corner? :-)

 

Posted 30 March 2013 - 09:55 PM #3

product_info_post.tpl should be product_info.post.tpl

Jeremy
Requin Creative Group
CS-Cart License | CS-Cart Addons


 
  • mwouters
  • Junior Member
  • Members
  • Join Date: 06-Nov 09
  • 46 posts

Posted 03 April 2013 - 01:35 PM #4

product_info_post.tpl should be product_info.post.tpl


Thanks, but it was a typing mistake in this forum, the file was actually already named correctly product_info.post.tpl

 
  • mwouters
  • Junior Member
  • Members
  • Join Date: 06-Nov 09
  • 46 posts

Posted 03 April 2013 - 04:33 PM #5

Thanks to Andrew from 1clue I already found out that my tpl file was in the wrong location, it should be in:

/stores/1/skins/[used_skin]/mail/addons/my_changes/hooks/orders/product_info_post.tpl

Someone knows how to loop through the features in that script?

Tnx!