Jump to content

majusz

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by majusz

  1. Sorry, no idea. I've never used PS 1.5, and I don't know about the differences between 1.5 and 1.6, so I can't tell you. The PS core developers should know, though.
  2. Needed the same functionality and got it working in PS 1.6 by changing the default Prestashop template (pdf/invoice.tpl). No M4PDF needed! I wanted the feature to display in the default language, so I added this line at the top of the template: {assign var="defaultlang" value=(int)(Configuration::get('PS_LANG_DEFAULT'))} Then in the Products section right after {foreach $order_details as $order_detail} you can add the code to print the desired feature: {assign var="features" value=Product::getFrontFeaturesStatic($defaultlang, $order_detail.product_id)} {foreach $features as $feature} {if $feature.id_feature == 8} <div><span>{$feature.name}: {$feature.value}</span></div> {/if} {/foreach} This is just an example which displays the name and value of the feature with ID 8. Of course you'd have to adapt the feature ID and the output to suit your needs. I hope the idea is clear, though.
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More