Bugs: Minor: Bakery 1.59 [solved]

freeSbee

Hi gearup

Thanks for sharing your fixes!

Regards Christoph

gearup

Hi,

I corrected two firefox html warnings,

1. Bakery Module code

bakery_1.59\templates\cart\table_header.htm
line
3 <p class="mod_bakery_ordernum_f">{TXT_ORDER_ID}: {ORDER_ID}
4 <hr class="mod_bakery_hr_f" />
5      </p>
changed to,
3 <p class="mod_bakery_ordernum_f">{TXT_ORDER_ID}: {ORDER_ID}</p>
4 <hr class="mod_bakery_hr_f" />
5

and similar in;   bakery_1.59\templates\summary\table_header.htm

2. Backend Admin, Shop - Page Settings: section - Item detail footer

Had an error, "<form> isnt allowed in <table> elements"

so  I moved the form to be outside the <table> tags,

and also removed the <p> tags surrounding [TXT_FULL_DESC]:

[IMAGE]
<form action="[SHOP_URL]" method="post">
<table border="0" cellspacing="0" cellpadding="5" class="mod_bakery_item_table_f">
<tr>
<td colspan="2" align="left" valign="top"><h2 class="mod_bakery_item_title_f">[TITLE]</h2></td>
</tr>
<tr>
<td align="left" valign="top"><span class="mod_bakery_item_price_f">[TXT_PRICE]:</span></td>
<td align="left" valign="top">[CURRENCY] [PRICE]</td>
</tr>
<tr>
<td align="left" valign="top"><span class="mod_bakery_item_stock_f">[TXT_STOCK]:</span></td>
<td align="left" valign="top">[STOCK]</td>
</tr>
<tr>       
<td align="left" valign="top"><span class="mod_bakery_item_full_desc_f">[TXT_FULL_DESC]:</span></td>
<td align="left" valign="top">[FULL_DESC]</td>
</tr>
[OPTION]
<tr>     
<td align="left" valign="top"> </td>
<td align="left" valign="top">
<input type="text" name="item[ITEM_ID]"  class="mod_bakery_item_input_f" value="1" size="2" />
<input type="submit" name="add_to_cart" class="mod_bakery_bt_add_f" value="[ADD_TO_CART]" />
</td>
</tr>
</table>
</form>
[PREVIOUS] | <a href="[BACK]">[TXT_BACK]</a> | [NEXT]
</center>
<br />



There is also a wrong spelling (MAXLENGHT wrong, MAXLENGTH correct) for an attribute in Bakery but this does not of course cause a warning just could be corrected.


C:\Sw_Projects\Meds4Doctors-Orig\WB_Modules\bakery_1.59\view_form.php (2 hits)
Line 242: 'MAXLENGHT' => $length[$field]
Line 357: 'MAXLENGHT' => $length[$field]


regards,
Tomorrow is a day we can look forward to but will never see.