/usr/lib/interchange/standard/pages/quantity.html is in interchange-cat-standard 5.7.7-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 | [comment]
ui_template: Yes
ui_template_name: leftonly
[/comment]
[tmp page_title]__COMPANY__ -- [L]Quantity Discounts[/L][/tmp]
[control reset=1]
[control-set]
[component]search_box_small[/component]
[/control-set]
[control-set]
[component]cart_tiny[/component]
[/control-set]
[control-set]
[component]product_tree[/component]
[/control-set]
[control reset=1]
@_LEFTONLY_TOP_@
<!-- BEGIN CONTENT -->
<br>
[fly-list code="[data session arg]"]
<table width="65%" border="0">
<tr class="contentbar1">
<td>
<big>[item-field category] : <b>[item-description]</b></big>
</td>
</tr>
</table>
<table width="65%" border="0">
<tr valign="middle">
<td align="center">
<table border="0" cellspacing="5" align="center">
<tr>
<td valign="middle" align="center">
[if-item-field image]
<img src="items/[item-field image]" alt="[item-description]">
[else] [/else]
[/if-item-field]
</td>
<td valign="middle" align="center">
<table border="0" cellpadding="3" cellspacing="0">
<tr>
<td align="center"> </td>
</tr>
<tr>
<td colspan="2">
[either][item-field comment][or] [/either]
</td>
</tr>
<tr><td> </td></tr>
[seti count][data table=inventory column=quantity key='[item-code]'][/seti]
[if scratch count eq 0]
<tr>
<td>
<b>[L]Out Of Stock[/L]</b>
<a href="[area function/stock_alert [item-code]]">[L]In Stock Notification[/L]</a>
</td>
</tr>
[else]
<tr>
<td>
<b>[L]In Stock[/L]</b>
</td>
</tr>
[/else]
[/if]
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
[set quantities]1 5 10 25[/set]
[calc]
$Scratch->{quantities} =~ s/\s+$//;
$Scratch->{quantities} =~ s/^\s+//;
@things = split /[\s,\0]+/, $Scratch->{quantities};
$Scratch->{qp_columns} = scalar @things;
$Scratch->{qp_columns}++;
return;
[/calc]
[loop prefix="part" list="[data session arg]"]
<table width="65%" cellpadding="5">
[table-organize
caption="Quantity Pricing"
rows="2"
columnize="[scratch qp_columns]"
tr.0=|class="contentbar1"|
tr.1=|class="maincontent"|
cols="[scratch qp_columns]"
]
<td>
[L]Part No.[/L]
</td>
<td valign="top">[part-code]</td>
[loop list="[scratch quantities]"]
<td valign="bottom" align="right">[loop-code]</td>
<td valign="top" align="right">
[order code="[part-code]" quantity="[loop-code]"][price code="[part-code]" quantity="[loop-code]"]</a>
</td>
[/loop]
[/table-organize]
</table>
[/loop]
[/fly-list]
<!-- END CONTENT -->
@_LEFTONLY_BOTTOM_@
|