Rank: Member
Joined: 6/1/2004(UTC) Posts: 720
|
Hi, I am wondering how I would force a page break in the repeating section of the confirmation email for printing. Since my repeating section includes barcoded tickets for each ticket ordered, someone may order 5 tickets and the first 2 or 3 would print fine on the first page and then the following one might get cut in half (bottom of page 1, top page 2 etc...)
Any ideas how this might be accomplished?
Thanks,
Derek |
|
|
|
|
Rank: Member
Joined: 12/23/2003(UTC) Posts: 909
|
hey derek, sample styles 1. ID or Class {page-break-after: always} 2. style="page-break-after: always" Doing this on the fly, I'll try to explain. please test it out. The call to the repeater section is nested in the table. (I'm working with slightly modified HTML) Code: <table border="0" cellspacing="0" cellpadding="3" width="459"> <tr>
<td><strong>Qty</strong></td>
<td><strong>SKU</strong></td>
<td><strong>Product Name</strong></td>
<td align="right"><strong>Unit Price</strong></td>
</tr>
[color=red>[[RepeatingSection]]</FONT>] <tr>
<td colspan="4"><hr noshade></td>
</tr>
</table>
Try a few things, edit the repeater section by adding the page break to the <tr>. I'm not really sure if this good semantic code though. Code: <tr style="page-break-after: always">[/color] <td align=left valign=top>[[LineItem.Quantity]]</td> <td align=left valign=top>[[Product.Sku]]</td> <td align=left valign=top>[[Product.ProductName]]<br />[[LineItem.InputsAndModifiers]]<br />[[LineItem.ShippingStatus]]</td> <td align=right valign=top>[[LineItem.AdjustedPrice]]</td> </tr>
Or try this...modify the call to the repeater section: Code:
<table border="0" cellspacing="0" cellpadding="3" width="459"> <tr>
<td><strong>Qty</strong></td>
<td><strong>SKU</strong></td>
<td><strong>Product Name</strong></td>
<td align="right"><strong>Unit Price</strong></td>
</tr>
[color=green><tr>] <FONT color=red>[[RepeatingSection]][/color]
[color=#ff0000> ]<FONT color=green></tr>[/color]
<tr>
<td colspan="4"><hr noshade></td>
</tr>
</table>
and make the repeater this: Code: [color=green><table]
<tr> <td align=left valign=top>[[LineItem.Quantity]]</td> <td align=left valign=top>[[Product.Sku]]</td> <td align=left valign=top>[[Product.ProductName]]<br />[[LineItem.InputsAndModifiers]]<br />[[LineItem.ShippingStatus]]</td> <td align=right valign=top>[[LineItem.AdjustedPrice]]</td> </tr>
<FONT color=green></table>[/color]
|
|
|
|
|
Rank: Member
Joined: 6/1/2004(UTC) Posts: 720
|
Thanks Matt! I will give those a shot.....much appreciated.
Derek |
|
|
|
|
Rank: Member
Joined: 6/1/2004(UTC) Posts: 720
|
Hi Matt,
I have tried this every which way but loose and can't seem to get it to work.....
Can I contact you to get a quote on implementing this?
Thanks, Derek |
|
|
|
|
Rank: Administration
Joined: 4/2/2004(UTC) Posts: 2,393 Location: Hummelstown, PA Thanks: 6 times Was thanked: 163 time(s) in 158 post(s)
|
It's possible that your email client doesn't support that. Outlook 2007 is notorious for ignoring many CSS rules. |
Aaron Sherrick BV Commerce Toll-free 888-665-8637 - Int'l +1 717-220-0012 |
|
|
|
Rank: Member
Joined: 6/1/2004(UTC) Posts: 720
|
|
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.