Form data error in sc

General ShopSite user discussion

Form data error in sc

Postby royhink » Thu Jul 07, 2011 12:17 pm

Hi Folks,

I am in the process of upgrading our ShopSite to v10 from v9 AND upgrading the look using custom templates.

On my dev server in v10, all the buttons (continue shopping, checkout, recalculate) in the new cart template are throwing an error:

Error in Form!
We're sorry, but there was an error in your form data!
Please specify a valid value for the the paytype .
Please press the Back button on your browser to correct the error.

I am testing in FireFox 3.6

The [-- SC_Tax_Shipping --] tag is in my code, but ultimately, I don't want it, as my store product line is all downloads, and there is no tax or shipping.

Any help appreciated.

Code: Select all
[-- DEFINE ShoppingCart --]

<!doctype html> 

<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]-->
<!--[if IE 7 ]>    <html lang="en" class="no-js ie7"> <![endif]-->
<!--[if IE 8 ]>    <html lang="en" class="no-js ie8"> <![endif]-->
<!--[if IE 9 ]>    <html lang="en" class="no-js ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"> <!--<![endif]-->
<head>
  <meta charset="utf-8">

  <!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
       Remove this if you use the .htaccess -->
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <title>[-- STORE.SC_YourShoppingCart --]</title>

  <!--  Mobile viewport optimized: j.mp/bplateviewport -->
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <!-- Place favicon.ico & apple-touch-icon.png in the root of your domain and delete these references -->
  <link rel="shortcut icon" href="media/Site_Graphics/favicon.ico">
  <link rel="apple-touch-icon" href="media/Site_Graphics/apple-touch-icon.png">

  <script type="text/javascript" language="JavaScript">
<!--
[-- SC_JAVASCRIPT extras --]
// -->
  </script>

  <!-- CSS : implied media="all" -->
  <link rel="stylesheet" href="includes/sc_style.css">

</head>

<body>
  <div id="container">
   <!-- Header -->
[-- INCLUDE masthead Process --]
    <!-- /Header -->
   
   <!-- Main content alpha -->
   <div class="main png_bg">
      <div class="inner_main"> <!-- True containers  -->
         <!-- breadcrumbs -->
         <div class="container_gamma breadcrumbs">
            <p><span>»</span><a href="index.php">Home</a><span>»</span><a href="#">Cart</a></p>
         </div>         
         <!-- END breadcrumbs -->
         <div class="container_omega"> <!-- main 3 col section -->
            [-- ShopSiteMessages --]
            <div class="gs_9">
               <h2>Shopping Cart</h2>
            <p>
            [-- SC_Form --]
<table border='1' width='100%'>
   <tr>
      <td colspan='2'>
                  [-- SC_Cart delete image name quantity price total --]<p />
      </td>
   </tr>
   <tr>
      <td colspan='2' align='right'>
                  [-- SC_Tax_Shipping --]<p />
      </td>
   </tr>
   <tr>
      <td colspan='2'>
                  [-- SC_Totals --]<p />
      </td>
   </tr>
   <tr>
      <td colspan='2' align='right'>
                  Any changes above should be verified by pressing 'Recalculate' before checkout.&nbsp;&nbsp;&nbsp;&nbsp;
                  [-- BUTTON Recalculate --]<p />
                  
         </td>
   </tr>
   <tr>
      <td align='left'>         
                  Related Items<p />
      </td>
      <td align='right'>
                  [-- IF SC_Coupon --]
                     Coupon Code: [-- SC_Coupon --] [-- BUTTON ApplyCoupon --]<p />
                  [-- END_IF --]
      </td>
   </tr>
   <tr>
      <td colspan='2' align='right'>
                  [-- BUTTON ContinueShopping --]</p>
      </td>
   </tr>
</table>
            </div>
            <div class="gs_3 omega">
                  <p><img src="http://bestcountryreports.com/media/Site_Graphics/secure.png"></p>
                  <p><img src="http://bestcountryreports.com/media/Site_Graphics/credit-cards.png"></p>
                  [-- IF SC_Registration --]
                     [-- SC_Registration --]
                  [-- END_IF --]<p />
                  <p class="spaceclear-checkout">[-- BUTTON Checkout --]</p>
            </div>
            </form>
            
            <!-- Fix for guillotine IE6 bug -->
            <div class="clearfix"></div>
         </div> <!-- END main section -->
         
         
      </div> <!-- END True containers -->
    </div>
    <div class="endmain png_bg"></div>
   <!-- /Main content alpha -->
   
   <!-- Footer styling transition (the stripe). You can remove it if you don't like it
   <div class="stripe png_bg"></div>
    /Footer styling transition -->
   
   <!-- Footer -->
[-- INCLUDE footer Process --]
   <!-- /footer -->

   
   
  </div> <!--! end of #container -->


  <!-- Javascript at the bottom for fast page loading -->

  <!-- scripts concatenated and minified via ant build script-->
  <script src="includes/plugins.js"></script>
  <script src="includes/script.js"></script>
  <!-- end concatenated and minified scripts-->
 
  <!--[if lt IE 7 ]>
    <script src="includes/dd_belatedpng.js"></script>
    <script> DD_belatedPNG.fix('img, .png_bg, .sidebar, .sidebar ul, .sidebar ul li, .sidebar ul li a'); //fix any <img> or .png_bg background-images </script>
  <![endif]-->


</body>
</html>

[-- END_DEFINE ShoppingCart --]
royhink
 
Posts: 104
Joined: Fri Jul 20, 2007 10:04 am
Location: Petaluma, CA

Re: Form data error in sc

Postby Jim » Thu Jul 07, 2011 4:06 pm

The tag is required in the template.
If you don't want those options to show in the cart disable tax and shipping in the backoffice under Commerce Setup > Shipping and Commerce Setup > Tax

Try running the generated source through an html checker and see if it finds any problems related to forms.

I use the validator at http://www.htmlhelp.com/tools/validator/ and select the Enter Your own Html option and check the Include warnings and show input options.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah


Return to User Forum

Who is online

Users browsing this forum: No registered users and 43 guests