Implementing my custom shopping cart template?

General ShopSite user discussion

Implementing my custom shopping cart template?

Postby sal » Thu Jul 26, 2007 7:35 am

Hello everyone

I have a question which probably has a very simple answer that is beyond me.

I have set up a website with my own product pages using HTML and CSS and each product page has the OrderAnywhere buttons. This means that I am not using the shop site 'Store' but have created my own store.

What I AM using on ShopSite is the Shopping Cart (includes the cart, checkout, shipping, confirmation screens). I have created and uploaded a Shopping Cart Template (Merchandising > Custom Templates > Shopping Cart) called 'template' in the dropdown list using my own HTML/CSS custom layout and with the ShopSite Tags from the Help (I have attached my template below this post).

Now the part I am stuck at is how do I load my my custom shopping cart template on my website? When I click on the View Cart buttons embedded within my regular HTML pages it just goes to the default cart template not the custom one I created.

When I preview the page in the Merchandising screen it works perfectly.

The help pages don't exactly tell me how to do this if I'm not using the store and I've played around with the Publish, Regenerate features to no avail!

Apologies for the long post! Thanks for you help in advance!

My custom shopping cart template file:

Code: Select all
[-- DEFINE ShoppingCart --]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Your Shopping Cart</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="/screen.css" rel="stylesheet" type="text/css" media="screen">
<link href="/tabs.css" rel="stylesheet" type="text/css" media="screen">
<script type="text/javascript" src="/tabs.js"></script>
<script type="text/javascript" language="JavaScript">
<!--
[-- SC_JAVASCRIPT extras --]
// -->
</script>
</head>

<body>

[-- ShopSiteMessages --]

[-- SC_Form --]

   <div id="container">

      <div id="header">
         <div id="linkbox">
            <ul>
               <li><a href="/index.html">Home</a></li>
               <li><a href="/customercare.html">Customer Care</a></li>
               <li><a href="/specials.html">Specials</a></li>
               <li><a href="/contactus.html">Contact Us</a></li>
            </ul>
         </div>
      </div>

      <div id="subheader">
      
         <div id="cart"> <a href="#"><img src="/images/cart.gif" border="0">&nbsp;&nbsp;View Cart</a></div>

      </div>

      <div id="shopping">

           <div id="pagetitle">Your Shopping Cart</div>   
         
         <!-- SHOP SITE STUFF STARTS HERE -->
         
         [-- SC_ShowBasket --]
         <br>
         [-- SC_Cart --]
         <br>
         [-- SC_Totals --]
         <br>
         [-- SC_OrderingInstructions 4 60 --]
         <br>
         [-- SC_PaymentSelection --]
         <br>
         [-- BUTTON Recalculate --] [-- BUTTON EmptyCart --] [-- BUTTON ContinueShopping --] [-- BUTTON Checkout --]
         
         <!-- SHOP SITE STUFF ENDS HERE -->   
         
        </div>

      <div id="footer">
         <div id="footer_left">
            Copyright 2007
         </div>
      </div>

   </div>
   
   </form>

</body>
</html>
[-- END_DEFINE ShoppingCart --]
sal
 
Posts: 2
Joined: Thu Jul 26, 2007 7:10 am

Postby Jim » Thu Jul 26, 2007 7:50 am

You enable the template under Commerce Setup > Order System > Layout Info > Shopping Cart Template:

But the template you included is not complete. There are 5 sections in the shopping cart template

[-- DEFINE SHOPPING_CART --]
# This defines how the shopping cart page will look
[-- END_DEFINE SHOPPING_CART --]

[-- DEFINE SHIPPING --]
# This defines how the shipping/billing page will look
[-- END_DEFINE SHIPPING --]

[-- DEFINE CONFIRMATION --]
# This defines how the optional confirmation page will look
[-- END_DEFINE CONFIRMATION --]

[-- DEFINE THANKYOU --]
# This defines how the thank you page will look
[-- END_DEFINE THANKYOU --]

[-- DEFINE THANKYOU_EMAIL --]
# This defines how the HTML customer receipt will look
[-- END_DEFINE THANKYOU_EMAIL --]

and you only included one in the message. The checkout process will not function properly unless all sections of the template are defined.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Postby sal » Thu Jul 26, 2007 7:56 am

Jim wrote:You enable the template under Commerce Setup > Order System > Layout Info > Shopping Cart Template:

and you only included one in the message. The checkout process will not function properly unless all sections of the template are defined.

Hi Jim!

Wow, that is a really simple fix and I feel stupid now. Thank you for your help! :lol:

Also thanks for the headsup on the rest of the info. I have all that stuff in on my template, just removed them in the post so it won't be too long.
sal
 
Posts: 2
Joined: Thu Jul 26, 2007 7:10 am


Return to User Forum

Who is online

Users browsing this forum: No registered users and 77 guests