Skip to Content
Menu
This question has been flagged
3805 Views

Hi everyone,


I'm looking for the dynamic placeholder that takes car of the attribute values of an article.

For exemple, if I have a banana which is blue an small, I just want to take the parameters blue and small out.


My actual html is 

% for line in object.order_line:

                 <table cellpadding="0" cellspacing="0" class="esdev-mso-table" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;width:560px;padding-bottom:20px;">

                   <tr style="border-collapse:collapse">

                    <td class="esdev-mso-td" valign="top" style="padding:0px 0px 20px 0px;Margin:0">

                     <table class="es-left" cellspacing="0" cellpadding="0" align="left" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;float:left">

                       <tr style="border-collapse:collapse">

                        <td class="es-m-p0r" valign="top" align="center" style="padding:0;Margin:0;width:120px">

                         <table width="100%" cellspacing="0" cellpadding="0" role="presentation" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px">

                           <tr style="border-collapse:collapse">

                            <td align="left" style="padding:0;Margin:0;padding-right:20px;font-size:0"><img src="/web/image/product.product/${line.product_id.id}/image_128" alt="${line.product_id.name}" title="${line.product_id.name}" width="100" style="display:block;border:0;outline:none;text-decoration:none;-ms-interpolation-mode:bicubic" height="100"></td>

                           </tr>

                         </table></td>

                       </tr>

                     </table></td>

                    <td class="esdev-mso-td" valign="top" style="padding:0;Margin:0">

                     <table cellspacing="0" cellpadding="0" align="right" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px">

                       <tr style="border-collapse:collapse">

                        <td align="left" style="padding:0;Margin:0;width:480px;padding-bottom:10px">

                         <table width="100%" cellspacing="0" cellpadding="0" role="presentation" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px">

                           <tr style="border-collapse:collapse">

                            <td align="left" style="padding:0;Margin:0;padding-bottom:10px">

                             <table style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;width:100%" class="cke_show_border" cellspacing="1" cellpadding="1" border="0" role="presentation">

                               <tr style="border-collapse:collapse">

                                <td style="padding:0;Margin:0"><p style="Margin:0;-webkit-text-size-adjust:none;-ms-text-size-adjust:none;mso-line-height-rule:exactly;font-size:14px;font-family:roboto, 'helvetica neue', helvetica, arial, sans-serif;line-height:21px;color:#262626"><strong>${line.product_id.display_name}</strong></p></td>

                                <td style="padding:0;Margin:0;text-align:center" width="15%"><p style="Margin:0;-webkit-text-size-adjust:none;-ms-text-size-adjust:none;mso-line-height-rule:exactly;font-size:14px;font-family:roboto, 'helvetica neue', helvetica, arial, sans-serif;line-height:21px;color:#262626">${line.product_uom_qty}</p></td>

                                <td style="padding:0;Margin:0;text-align:center" width="30%"><p style="Margin:0;-webkit-text-size-adjust:none;-ms-text-size-adjust:none;mso-line-height-rule:exactly;font-size:14px;font-family:roboto, 'helvetica neue', helvetica, arial, sans-serif;line-height:21px;color:#262626">${format_amount(line.price_reduce_taxinc, object.currency_id)}</p></td>

                               </tr>

                             </table></td>

                           </tr>

                         </table></td>

                       </tr>

                     </table></td>

                   </tr>

                 </table>

                % endfor


regards everyone.

Avatar
Discard
Related Posts Replies Views Activity
0
Jan 24
1307
1
Dec 22
5876
2
Nov 21
3891
1
Sep 23
2284
2
Jun 22
3676