Author Topic: Bugs: Minor: Bakery 1.59 [solved]  (Read 1314 times)

Offline gearup

  • Posts: 82
Bugs: Minor: Bakery 1.59 [solved]
« on: July 30, 2012, 12:28:29 AM »

I corrected two firefox html warnings,

1. Bakery Module code

Code: [Select]
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" />
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]:

Code: [Select]
<form action="[SHOP_URL]" method="post">
<table border="0" cellspacing="0" cellpadding="5" class="mod_bakery_item_table_f">
<td colspan="2" align="left" valign="top"><h2 class="mod_bakery_item_title_f">[TITLE]</h2></td>
<td align="left" valign="top"><span class="mod_bakery_item_price_f">[TXT_PRICE]:</span></td>
<td align="left" valign="top">[CURRENCY] [PRICE]</td>
<td align="left" valign="top"><span class="mod_bakery_item_stock_f">[TXT_STOCK]:</span></td>
<td align="left" valign="top">[STOCK]</td>
<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>
<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]" />
[PREVIOUS] | <a href="[BACK]">[TXT_BACK]</a> | [NEXT]
<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.

Code: [Select]
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]

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


  • Guest
Re: Bugs: Minor: Bakery 1.59 [solved]
« Reply #1 on: July 30, 2012, 09:59:37 AM »
Hi gearup

Thanks for sharing your fixes!

Regards Christoph