WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => Bakery Shop => Topic started by: mgeene on May 16, 2016, 05:29:08 PM

Title: ITEM_LIST in Bakery customize
Post by: mgeene on May 16, 2016, 05:29:08 PM
Hello,

Bakery 1.76
I am now busy for days to find out how I can adjust the [ITEM_LIST] in Bakery. I do not want to see the prices in the delivery note, the class that the <td> is given  gives me in CSS opportunities, but the <td> in prices has no class and I can not find where you can change this.

Can anyone help me with this?

Thanks in advance for your response
Title: Re: ITEM_LIST in Bakery customize
Post by: freeSbee on May 16, 2016, 06:17:29 PM
Hi mgeene

Please refer to the Bakery manual:
http://www.bakery-shop.ch/#invoice_and_email_templates

Regards Christoph
Title: Re: ITEM_LIST in Bakery customize
Post by: mgeene on May 16, 2016, 07:21:37 PM
Hi Christoph,

Thanks for your reply.
But i did not find the solution here.
I do not understand how is the ITEM_LIST is build.
Here is some output of the delivery note, but the ITEM_LIST i can not change:
Code: [Select]
<table width="98%" border="0">
<tr>
<td class="mod_bakery_invoice_td_sku_b">8909-12</td>
<td class="mod_bakery_invoice_td_name_b"><span class="mod_bakery_invoice_item_b">Mactac </span><br /></td>
<td class="mod_bakery_invoice_td_quantity_b">1</td>
<td class="mod_bakery_invoice_td_price_b">9.67</td>
<td class="mod_bakery_invoice_td_shipping_b" style="display: none">0</td>
<td class="mod_bakery_invoice_td_tax_rate_b" style="display: none">21.0</td>
<td class="mod_bakery_invoice_td_sum_b">9.67</td>
</tr>
<tr>
<td colspan="5"><hr class="mod_bakery_hr_b" /></td>
</tr>
<tr>
<td colspan="4" class="mod_bakery_invoice_subtotal_b">Subtotaal</td>
<td style="text-align: right">EUR&nbsp;9.67</td>
</tr>
<tr>
<td colspan="4" class="mod_bakery_invoice_shipping_b">Verzendkosten</td>
<td style="text-align: right">EUR&nbsp;0.00</td>
</tr>
<tr style="display: ">
<td colspan="4" class="mod_bakery_invoice_tax_b">Inclusief 21.0% BTW</td>
<td style="text-align: right">EUR&nbsp;1.68</td>
</tr>
<tr>
<td colspan="5"><hr class="mod_bakery_hr_b" /></td>
</tr>
<tr>
<td colspan="4" class="mod_bakery_invoice_total_b">Totaal</td>
<td style="text-align: right">EUR&nbsp;9.67</td></tr>
<tr>
<td colspan="5"><hr class="mod_bakery_hr_b" /></td>
</tr>
</table>

and the second TD needs a class so i can decide to have it visible or not in the backend.css file
Title: Re: ITEM_LIST in Bakery customize
Post by: freeSbee on May 17, 2016, 10:22:58 AM
Hi mgeene

Do you mean this?
/bakery/templates/invoice/table_body.htm

Regards Christoph
Title: Re: ITEM_LIST in Bakery customize
Post by: mgeene on May 17, 2016, 11:15:42 AM
Hi Christoph,

if i change something in /bakery/templates/invoice/table_body.htm, than the changes are not visible in de delivery note or the invoice note that you can print in de backend. The html output of the invoice to print or in the backend has the output in the previous message.
You can see that the first <td> has a class and the second <td> with the prices not:

Code: [Select]
<tr>
<td colspan="4" class="mod_bakery_invoice_subtotal_b">Subtotaal</td>
<td style="text-align: right">EUR&nbsp;9.67</td>
</tr>

If i get the <td> with the prices have a class i can style it or i can make it not visible in the backend.css

Title: Re: ITEM_LIST in Bakery customize
Post by: freeSbee on May 17, 2016, 11:57:04 AM
Hi mgeene

Ok, now I see what table cell you are writing about. Find it here:
/bakery/templates/invoice/table_footer.htm

Please not, that you have to generate a new invoice to see the changes since the HTML code of former invoices is saved in the database.

Regards Christoph
Title: Re: ITEM_LIST in Bakery customize
Post by: mgeene on May 22, 2016, 07:28:35 PM
Hi Christoph,

Thanks for your reply, that's it!
But i get another problem with the invoice email, when i send the invoice with a email (with the button in the backend) then ik see in the email the data of the invoice and the shipping order and the reminder (see the attachement). Do you know the problem of this? Is it the css in the email?

Thanks for your reply.
Title: Re: ITEM_LIST in Bakery customize
Post by: freeSbee on May 24, 2016, 02:51:04 PM
Hi mgeene

Yes, it is controlled by CSS declarations (display property) which must be inline.
Please post the source code (HTML part) of the email.

Regards Christoph
Title: Re: ITEM_LIST in Bakery customize
Post by: mgeene on May 24, 2016, 07:42:25 PM
Hi Christoph,

See the attachment for the HTML of the mail:

I just link tot the CSS file and i read somewhere that some emailprograms don't accept a link to a css file?
Title: Re: ITEM_LIST in Bakery customize
Post by: freeSbee on May 25, 2016, 09:30:53 AM
Hi mgeene

As mentioned above for most email clients you must bring css inline.

If you use Bakery to send invoices it will be done automagically using an online tool called "premailer".
Bakery  >  Order Administration  >  Table header "Actions"  >  Button "Send Invoice as an HTML email"

Regards Christoph
Title: Re: ITEM_LIST in Bakery customize
Post by: mgeene on May 25, 2016, 07:52:48 PM
Hi Christoph,

i use that function but the the source is from that premailer script.
Title: Re: ITEM_LIST in Bakery customize
Post by: freeSbee on May 26, 2016, 10:38:38 AM
Sorry, mgeene, but I do not get your issue. The email code you have attached looks fine and renders correctly in all tested browsers and all my email clients. What email client did you use to test?

Regards Christoph
Title: Re: ITEM_LIST in Bakery customize
Post by: mgeene on May 26, 2016, 12:26:49 PM
Hi Christoph,

I use Outlook 2007, what email software do you use?
Title: Re: ITEM_LIST in Bakery customize
Post by: freeSbee on May 26, 2016, 01:39:00 PM
Hi mgeene

Use an online tool like Litmus to test your email rendering or search the web:
https://www.google.ch/webhp?q=email+testing+and+rendering+previews

Outlook 2007 has very small CSS rendering capabilities. There are web resources that tell you the CSS support for the most popular mobile, web and desktop email clients. For example:
https://www.campaignmonitor.com/css/

Regards Christoph