Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

E-Commerce Modules /

Discuss about the various e-commerce modules available:
Ecommerce, SS Shop, SilverCart and SwipeStripe
Alternatively, have a look the shared mailinglist.

Moderators: martimiz, Nicolaas, Sean, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba, simon_w

Ecommerce 0.8.1


Reply


6 Posts   1131 Views

Avatar
Eco

Community Member, 15 Posts

4 May 2011 at 12:02pm

Edited: 03/06/2011 1:25pm

I installed the Ecommerce module version 0.8.1, all looks fine, except when I hit the go to checkout button I get this error message:

XML Parsing Error: mismatched tag. Expected: </thead>.
Location: http://mipcolostrumnz.com/colostrum-benefits/
Line Number 139, Column 4:   
</tbody>
----------^

Can anybody help fix this please?

The product page is:

http://mipcolostrumnz.com/buy-colostrum/

How stable is version 0.8.1? Am I likely to have many problems with it?

Avatar
Jedateach

Forum Moderator, 232 Posts

4 May 2011 at 5:58pm

Hi Eco,

It appears you've got some bad HTML in there. Did you modify any of the ecommerce templates?

If you provide some content for that error...ie about 10 lines above and below Line 139, I might be able to find out if its a problem with the eCommerce templates.

regards,
Jeremy

Avatar
Eco

Community Member, 15 Posts

5 May 2011 at 9:19am

I didn't modify any templates before I got that error.

Which page do you want me to add content on? The checkout page? The order page that has the error on it is generated after clicking the "place order" button. I don't know how to add content to that page.

Avatar
Jedateach

Forum Moderator, 232 Posts

9 May 2011 at 1:01pm

Edited: 09/05/2011 1:01pm

If there's a way you can produce the raw HTML from the page you are trying to visit when you get the error, please provide that. Also the URL being visited. Perhaps try retrieving it with another browser, if you can't access the source with the one you are using.

Your error is telling us that there is a mismatching HTML tag somewhere. Perhaps a missing <thead/> tag. I need to see some context so I can identify where the problem is originating.

Avatar
Eco

Community Member, 15 Posts

9 May 2011 at 2:18pm

I copied the source html from the page with the error on it and created this page:
http://ecoimages.co.nz/order.html

The URL of the error page is:
http://mipcolostrumnz.com/account/order/18

Avatar
Eco

Community Member, 15 Posts

11 May 2011 at 4:58pm

Edited: 11/05/2011 5:19pm

I've copied the code for some of the ecommerce/templates/includes pages below.
Could the problem be in here? Is there a missing thead tag somewhere?

===========================================================
Order_Payments.ss
===========================================================

<table id="PaymentTable" class="infotable">
   <thead>         
      <tr class="gap mainHeader">
            <th colspan="10" class="left"><% _t("PAYMENTS","Payment(s)") %></th>
      </tr>
      <tr>
         <th scope="row" class="twoColHeader"><% _t("DATE","Date") %></th>
         <th scope="row" class="twoColHeader"><% _t("AMOUNT","Amount") %></th>
         <th scope="row" class="twoColHeader"><% _t("PAYMENTSTATUS","Payment Status") %></th>
         <th scope="row" class="twoColHeader"><% _t("PAYMENTMETHOD","Method") %></th>
         <th scope="row" class="twoColHeader"><% _t("PAYMENTNOTE","Note") %></th>
      </tr>
      <% control Payments %>   
         <tr>
            <td class="price">$LastEdited.Nice24</td>
            <td class="price">$Amount.Nice $Currency</td>
            <td class="price">$Status</td>
            <td class="price">$PaymentMethod</td>
            <td class="price">$Message.NoHTML</td>
         </tr>
      <% end_control %>
   </tbody>
</table>

===========================================================
Order.ss
===========================================================
<div id="OrderInformation">

   <% include Order_Shipping %>

   <% include Order_Content %>
   
   <% if Payments %>
      <% include Order_Payments %>
      
      <table id="OutstandingTable" class="infotable">
         <tbody>
            <tr class="gap summary" id="Outstanding">
               <th colspan="3" scope="row" class="threeColHeader"><strong><% _t("TOTALOUTSTANDING","Total outstanding") %></strong></th>
               <td class="right"><strong>$TotalOutstanding.Nice </strong></td>
            </tr>
         </tbody>
      </table>
   <% end_if %>

   <% if CustomerOrderNote %>
   <table id="NotesTable" class="infotable">
      <thead>
         <tr class="gap mainHeader">
            <th colspan="4" class="left" scope="col"><% _t("CUSTOMERORDERNOTE","Customer Note") %></th>
         </tr>
      </thead>
      </tbody>
         <tr class="summary odd first">
            <td colspan="4" class="left fourRolDetail">$CustomerOrderNote</td>
         </tr>
      </tbody>
   </table>
   <% end_if %>
   
</div>

===========================================================
Order_Content.ss
===========================================================

<table id="InformationTable" class="infotable">
   <thead>
      <tr>
         <th scope="col" class="left"><% _t("PRODUCT","Product") %></th>
         <th scope="col" class="center"><% _t("QUANTITY", "Quantity") %></th>
         <th scope="col" class="right"><% _t("PRICE","Price") %> ($Currency)</th>
         <th scope="col" class="right"><% _t("TOTALPRICE","Total Price") %> ($Currency)</th>
      </tr>
   </thead>
   <tbody>
      <% control Items %>
      <tr class="itemRow $EvenOdd $FirstLast">
         <td class="product title" scope="row">
            <% if Link %>
               <a href="$Link" title="<% sprintf(_t("READMORE","Click here to read more on &quot;%s&quot;"),$Title) %>">$ProductTitle</a>
            <% else %>
               $ProductTitle
            <% end_if %>
         </td>
         <td class="center quantity">$Quantity</td>
         <td class="right unitprice">$UnitPrice.Nice</td>
         <td class="right total">$Total.Nice</td>
      </tr>
      <% end_control %>

      <tr class="gap summary" id="SubTotal">
         <td colspan="3" scope="row" class="threeColHeader subtotal"><% _t("SUBTOTAL","Sub-total") %></td>
         <td class="right">$SubTotal.Nice</td>
      </tr>

      <% control Modifiers %>
         <% if ShowInTable %>
      <tr class="modifierRow $EvenOdd $FirstLast $Classes">
         <td colspan="3" scope="row">$TableTitle</td>
         <td class="right">$TableValue.Nice</td>
      </tr>
         <% end_if %>
      <% end_control %>

      <tr class="gap summary total" id="Total">
         <td colspan="3" scope="row" class="threeColHeader total"><% _t("TOTAL","Total") %></td>
         <td class="right">$Total.Nice $Currency</td>
      </tr>
   </tbody>
</table>

===========================================================