Shopping Template (Missing Order Number)

Questions and answers about ShopSite Custom Templates

Shopping Template (Missing Order Number)

Postby tmlogo » Tue Sep 22, 2015 8:49 am

We are using ShopSite 12 sp1 r3.2. We just noticed that the order numbers are not showing on the "Thank You" page. In addition the information that is in the "Information on the
Thank You screen to
return to storefront::"

area is not appearing. We are using the default shopping cart template and have not done anything to it.

Thanks in advance
tmlogo
 
Posts: 103
Joined: Tue Jun 17, 2008 3:00 pm

Re: Shopping Template (Missing Order Number)

Postby Jim » Tue Sep 22, 2015 9:39 am

What is the url to your store?
What theme do you have selected for the store.
Has this always been the case or is this a recent change?
What do you have configured on the Commerce Setup > Order System > Thank you in the top two boxes? It may be that some bad html is preventing the text from displaying.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Re: Shopping Template (Missing Order Number)

Postby tmlogo » Tue Sep 22, 2015 9:59 am

What is the url to your store? -
What theme do you have selected for the store. - none
Has this always been the case or is this a recent change? - I think happened since upgrade. We only noticed when we did an order for a customer over the phone (online). The last time we manually did an online order everything worked fine.
What do you have configured on the Commerce Setup > Order System > Thank you in the top two boxes? It may be that some bad html is preventing the text from displaying. - Same HTML that has been there for years.
Last edited by tmlogo on Tue Sep 22, 2015 12:57 pm, edited 1 time in total.
tmlogo
 
Posts: 103
Joined: Tue Jun 17, 2008 3:00 pm

Re: Shopping Template (Missing Order Number)

Postby Jim » Tue Sep 22, 2015 10:34 am

Since ShopSite 10sp2 the sc_default shopping cart templates (and several others) have not used the Commerce Setup > Ordersystem > Thank You > Information to return to store front field. They have used the return to store button configure under Preferences > Store Text Checkout. Note: You can put any text that you want displayed on the Thankyou screen in the Text at Top of thankyou screen field just below the return to store front field.

The Order number has evidently been missing since ShopSite 12. I will log a bug to get that fixed. You can add it back in by putting the following code in the template in the [-- Define ThankYou --] section where you would like the order number to appear. You will need to add appropriate html table elements or divs to get it to display properly.
Code: Select all
[-- Store.SC_OrderNumber--]  [-- ThankYouOrderNumber --]
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Re: Shopping Template (Missing Order Number)

Postby tmlogo » Tue Sep 22, 2015 10:39 am

Thank you. I did notice that things are not laid out evenly also.
tmlogo
 
Posts: 103
Joined: Tue Jun 17, 2008 3:00 pm

Re: Shopping Template (Missing Order Number)

Postby tmlogo » Tue Sep 22, 2015 11:24 am

After reviewing the default sc_default template there is already a spot for the coding you mentioned to add.

Is there another default template in this version that would be similar (identical) to the one we are using. (Just trying to keep things simple and fast for the time being). Eventually we will develop a new template.
tmlogo
 
Posts: 103
Joined: Tue Jun 17, 2008 3:00 pm

Re: Shopping Template (Missing Order Number)

Postby Jim » Tue Sep 22, 2015 12:53 pm

The only spot in the template that contains that code is in the [-- DEFINE ThankYouEmail --] it is not in the [--DEFINE ThankYou --]. So the shoppers email receipt has the order number but the final screen of the checkout does not have it.

The sc_default is designed to be a basic shopping cart template. All of the other shopping cart templates were designed to work with a particular theme so they will be different. Most if not all of the other shopping cart templates rely on settings set by the theme. So unless the theme is chosen the shopping cart screen may be missing styles, colors, javascript etc. You could get a demo store ( http://www.shopsite.com/demo.html ) and set it up similar to how your store is configured and then switch to different shopping cart templates (Commerce Setup > Order System > Layout Info) and see how each of the shopping carts look. Enable COD as a payment method so you don't have to enter any payment to finalize the order and see the thankyou screen.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Re: Shopping Template (Missing Order Number)

Postby tmlogo » Tue Sep 22, 2015 12:57 pm

Okay... thank you again!
tmlogo
 
Posts: 103
Joined: Tue Jun 17, 2008 3:00 pm

Re: Shopping Template (Missing Order Number)

Postby tmlogo » Wed Sep 23, 2015 9:40 am

This is what I found in the [-- DEFINE ThankYou --] section. Please let me know if I am not looking in the wrong location, but I see the [--Store.SC_OrderNumber--] [-- ThankYouOrderNumber --] in the body of the "Define Thank You" section.


[-- DEFINE ThankYou --] [-- VAR.Type "cart" --] [-- VAR.Pound "#" --] [-- VAR.Secure "yes"
--] [-- VAR.TextColor STORE.SC_TextColor --] [-- VAR.BackgroundColor
STORE.SC_BackgroundColor --] [-- VAR.LinkColor STORE.SC_LinkColor --] [--
VAR.VisitedLinkColor STORE.SC_VisitedLinkColor --] [-- VAR.ActiveLinkColor
STORE.SC_ActiveLinkColor --] [-- VAR.BackgroundImage STORE.SC_BackgroundImage
--] [-- VAR.PageWidth STORE.PageWidth --] [-- INCLUDE 3Column-SelectTheme.sst
PROCESS --]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="content-language" content="[-- LOCALE_NAME --]">
<title>[-- STORE.SC_ThankYou Remove_Html --]</title>
<meta name="robots" content="noindex,nofollow">
<script type="text/javascript">
<!--
[-- SC_JAVASCRIPT extras --]
// -->
</script>
[-- INCLUDE 3Column.css PROCESS --] [-- IF VAR.PrintThankYouScreen &quot;yes&quot; --]
<style media="print">
body {background-color: #FFFFFF;}
#progressbar, #search, #toptabs, #toplinks, #footerlinks, #lastline, #hide-for-print {display: none;}
#show-for-print {display: inline; height: 100px; width: 100%; visibility: visible;}
</style>
[-- END_IF --]
</head>
<body id="full">
<div id="page" class="setsize">
<div id="container" class="setsize">
<div id="content" class="clear">
<table cellpadding="0" cellspacing="0" border="0" width="100%" id="table">
<tr>
<td id="content_inner" rowspan="2" class="left">
[-- IF VAR.CartProgressBar &quot;yes&quot; --]
<div id="progressbar" class="onehundred">&nbsp;</div>
[-- END_IF --]

<p>[-- STORE.SC_YourReceipt --]</p>
<p><b>[--Store.SC_OrderNumber--]&nbsp;[-- ThankYouOrderNumber --]</b></p>
[-- SC_Cart --] [-- SC_Totals --]
<table border="0" width="100%" align="center" id="confirm-tbl">
<tr>
<td class="center"><br>[-- SC_Payment --]</td>
<td class="center" id="confirm-mid">[-- SC_Address --][-- IF SC_VAT_ID
--][-- SC_VAT_ID --][-- END_IF --]</td>
<td class="left"><br>
[-- IF SC_OrderingInstructions_Text --][-- SC_OrderingInstructions --]<br>
[-- END_IF --] [-- IF SC_Comments_Text --][-- SC_Comments --]<br>[-- END_IF
--] [-- IF CustomHTML_Values --][-- CustomHTML_Values --]<br>[-- END_IF --]
[-- IF Email_List --][-- Email_List --][-- END_IF --]</td>
</tr>
</table>
<p id="hide-for-print" align="center">[-- BUTTON ReturnToStore --][-- IF
VAR.PrintThankYouScreen &quot;yes&quot; --]&nbsp;<a href="#" onClick="window.print();return false;">[--
BUTTON Print --]</a>[-- END_IF --]</p>
<p>&nbsp;</p>
</td>
</tr>
</table>
</div>
</div>
#[-- INCLUDE 3Column-TopLinks.sst PROCESS --]
<div id="header" class="setsize right">
<div id="logo">[-- IF STORE.CompanyLogo --][-- IF STORE.CompanyURL --]<a href="[-- STORE.CompanyURL --]" class="logo">[--
STORE.CompanyLogo --]</a>[-- ELSE --]<span class="logo">[--
STORE.CompanyLogo --]</span>[-- END_IF --][-- END_IF --] [-- IF
STORE.HeaderImage --][-- IF STORE.HeaderURL --]<a href="[-- STORE.HeaderURL --]" class="hdr_img">[--
STORE.HeaderImage --]</a>[-- ELSE --]<span class="hdr_img">[--
STORE.HeaderImage --]</span>[-- END_IF --][-- END_IF --] [-- IF
ThankYouHeader --][-- ThankYouHeader --][-- ELSE_IF
STORE.CompanyLogo --][-- ELSE_IF STORE.HeaderImage --][-- ELSE --]<h1><a href="[-- MyStoreURL --]" title="[-- STORE.Name REMOVE_HTML --]">
[-- STORE.Name --]</a></h1>[-- END_IF --]</div>
[-- IF VAR.SearchOnAllPages &quot;yes&quot; --] [-- IF ANALYTICS_MULTI_DOMAIN --]
<form action="[-- SHOPPING_CART_URL BASE --]/productsearch.cgi?storeid=[-- STORE.ID --]" method="get" onSubmit="javascript:__utmLinkPost(this)">
[-- ELSE --]
<form action="[-- SHOPPING_CART_URL BASE --]/productsearch.cgi?storeid=[-- STORE.ID --]" method="get">
[-- END_IF --]
<input type="hidden" name="storeid" value="[-- STORE.ID --]">
<div id="search" class="center"><input type="text" id="search_field" name="search_field" value="[-- STORE.Search --]" onfocus="this.value=''"><input type="image" name="search_submit" src="[-- STORE.SearchImage --]" id="search_submit" alt=">>"></div>
</form>
[-- END_IF --]
</div>
[-- IF PageMenu --]
<div id="toptabs" class="setsize left">
[-- PageMenu --]
</div>
[-- END_IF --]
<div id="colorbar" class="setsize left"><h2>[-- IF STORE.TextA --][--
STORE.TextA --][-- ELSE --][-- STORE.SC_ThankYou --][-- END_IF --]</h2></div>
</div>
[-- IF PageLinks.Footer --]
<div id="footercategories" class="setsize">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td>[-- PageLinks.Footer --]</td>
</tr>
</table>
</div>
[-- ELSE_IF VAR.FooterCategories &quot;yes&quot; --] [-- INCLUDE
3Column-FooterCategories.sst PROCESS --] [-- END_IF --]
<div id="footerlinks" class="setsize">
<div id="footerlinks_inner">
[-- IF ThankYouFooter --] [-- ThankYouFooter --] [-- ELSE --]
<a href="[-- MyStoreURL --]">[-- STORE.Home --]</a>
[-- END_IF --]
</div>
</div>
<div id="lastline" class="setsize">[-- IF STORE.TextB --][-- STORE.TextB --][--
ELSE --][-- STORE.Name REMOVE_HTML --] - [-- STORE.PoweredBy --][-- END_IF
--]</div>
<p class="hidden" id="show-for-print"><b>[-- STORE.Name --]</b>
<br>[-- STORE.URL --] [-- MyStoreURL --]</p></body>
</html>
[-- END_DEFINE ThankYou --]
tmlogo
 
Posts: 103
Joined: Tue Jun 17, 2008 3:00 pm

Re: Shopping Template (Missing Order Number)

Postby loren_d_c » Wed Sep 23, 2015 10:05 am

That looks like the 3-column shopping cart template, not the sc_default cart template that your store is using. Please go to Merchandising -> Custom Templates -> Shopping Cart and use the Copy ShopSite Template function there to make a copy of the sc_default template so you can see what it looks like.

-Loren
loren_d_c
 
Posts: 2569
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere

Re: Shopping Template (Missing Order Number)

Postby tmlogo » Wed Sep 23, 2015 10:13 am

Thank you! I don't know how I did that, but tried again and it is different. ;-)
tmlogo
 
Posts: 103
Joined: Tue Jun 17, 2008 3:00 pm

Re: Shopping Template (Missing Order Number)

Postby tmlogo » Wed Sep 23, 2015 12:15 pm

I am getting an error message when trying to add the OrderNumber. No matter where I put it, I get an error [283]: Template Error: Mis-matched IF - END_IF tags
sc-default 2015 [283]: Template Error: Missing END_DEFINE tag

Here is what I have done from the "Thank You" to line 283 of the template

################################################################################
[-- DEFINE ThankYou --]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head><title>[-- STORE.SC_ThankYou Remove_Html --]</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta http-equiv="content-language" content="[-- LOCALE_NAME --]">
<meta name="robots" content="noindex,nofollow">
<script type="text/javascript">[-- SC_JAVASCRIPT extras --]</script>
[-- INCLUDE sc_thankyou.css PROCESS --] [-- INCLUDE Head-Browser-Required.sst
PROCESS --]
</head>
<body [-- IF STORE.SC_BackgroundImage --] background="[--STORE.SC_BackgroundImage--]" END_IF>
[-- IF STORE.UseCompanyLogo --]<center><a href="[-- STORE.CompanyURL --]">[--
STORE.CompanyLogo --]</a></center><br>[-- END_IF --] [-- IF STORE.HeaderImage
--]<center>[-- IF STORE.HeaderURL --]<a href="[-- STORE.HeaderURL --]" id="header_image">[--
STORE.HeaderImage --]</a>[-- ELSE --]<span id="header_image">[--
STORE.HeaderImage --]</span>[-- END_IF --]</center><br>[-- END_IF --] [--
ThankYouHeader --]
<div id="set-width"><center class="hide-for-print">[-- BUTTON ReturnToStore --]&nbsp;&nbsp; <a href="#" onClick="window.print();return false;">
[-- BUTTON Print --]</a></center>
<table border="0" width="100%" align="center">
<tr><td align="right">
<p align="center"><p align="center"><b>[--Store.SC_OrderNumber--]&nbsp;[-- ThankYouOrderNumber --]</b></p></td></tr>
<tr><td align="right">
<p align="center">[-- SC_Cart --]</td></tr>
<tr><td align="right">
<p align="center">[-- SC_Totals --][-- IF SC_VAT_ID --][-- SC_VAT_ID --][--
END_IF --]</td></tr>
<tr><td align="center"><hr noshade size="1"></td></tr>
<tr><td align="center">
<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr>
<td valign="top" width="49%" align="left">[-- SC_Address --]</td>
<td width="51%" valign="top" align="left">[-- SC_Payment --] [-- IF
SC_OrderingInstructions_Text --]<br>[-- SC_OrderingInstructions --][-- END_IF
--] [-- IF SC_Comments_Text --]<br>[-- SC_Comments --][-- END_IF --] [-- IF
CustomHTML_Values --]<br>[-- CustomHTML_Values --][-- END_IF --] [-- IF
Email_List --]<br>[-- Email_List --][-- END_IF --]</td></tr></table></td></tr>
</table></div>
[-- ThankYouFooter --]
<p class="hidden show-for-print" align="center"><br>
</font></p>
</body></html>
[-- END_DEFINE ThankYou --]
################################################################################
[-- DEFINE ThankYou_Email --]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head><title>[-- STORE.SC_ThankYou Remove_Html --]</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta http-equiv="content-language" content="[-- LOCALE_NAME --]">
</head>
<body bgcolor="#[--STORE.SC_BackgroundColor--]" [-- IF STORE.SC_BackgroundImage --] background="[--STORE.SC_BackgroundImage--]" END_IF>
[-- INCLUDE sc_thankyouemail.css PROCESS --]
<table cellpadding="0" cellspacing="0" border="0" width="800" align="center" bgcolor="#FFFFFF"><tr><td style="padding: 0px 0px 0px 16px;">
[-- IF STORE.UseCompanyLogo --]<center><a href="[-- STORE.CompanyURL --]">
[-- STORE.CompanyLogo --]</a></center><br>[-- END_IF --] [-- IF
STORE.HeaderImage --]<center>[-- IF STORE.HeaderURL --]<a href="[-- STORE.HeaderURL --]" id="header_image">[--
STORE.HeaderImage --]</a>[-- ELSE --]<span id="header_image">[--
STORE.HeaderImage --]</span>[-- END_IF --]</center><br>[-- END_IF --]
<p class="buttons">[-- BUTTON ReturnToStore --]</p>
<p><b>[--Store.SC_OrderNumber--]&nbsp;[-- ThankYouOrderNumber --]</b></p>
<table border="0" width="100%" align="center">
<tr><td align="right">[-- SC_Cart --]</td></tr>
<tr><td align="right">[-- SC_Totals --][-- IF SC_VAT_ID --][-- SC_VAT_ID
--][-- END_IF --]</td></tr>
<tr><td align="center"><hr noshade size="1"></td></tr>
<tr><td align="center">
<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td valign="top" width="66%" align="left">
[-- SC_Address --]</td>
<td width="33%" valign="top" align="left">[-- SC_Payment --] [-- IF
SC_OrderingInstructions_Text --]<br>[-- SC_OrderingInstructions --][-- END_IF
--] [-- IF SC_Comments_Text --]<br>[-- SC_Comments --][-- END_IF --] [-- IF
CustomHTML_Values --]<br>[-- CustomHTML_Values --][-- END_IF --] [-- IF
Email_List --]<br>[-- Email_List --][-- END_IF --]</td></tr></table></td></tr>
</table>
<div class="footer">[-- ReceiptFooter --]</div>
</td></tr></table>
</body>
</html>
[-- END_DEFINE ThankYou_Email --] [-- DEFINE Merchant_ThankYou_Email --][--
INCLUDE MerchantEmail.sst PROCESS --][-- END_DEFINE Merchant_ThankYou_Email --]
################################################################################
[-- DEFINE GLOBAL_CROSS_SELL --][-- INCLUDE sc_defaultcrosssell.sst PROCESS
--][-- END_DEFINE GLOBAL_CROSS_SELL --] [-- DEFINE CART_CROSS_SELL --][--
INCLUDE sc_defaultcrosssell.sst PROCESS --][-- END_DEFINE CART_CROSS_SELL --]
[-- DEFINE Abandon_Cart_email --]
<html>
<body>
<h1>[-- STORE.Name REMOVE_HTML --]</h1>
[-- STORE.AbandonEmailText1 --] [-- SC_Cart image name --] [--
ABANDON_CART_RECOVER_LINK --]<br>
[-- ABANDON_CART_RECOVER_LINK URLOnly --]<br>

[-- STORE.AbandonEmailText2 --]
</body>
</html>
[-- END_DEFINE Abandon_Cart_email --] [-- DEFINE Abandon_Cart_2nd_email --]
<html>
<body>
<h1>[-- STORE.Name REMOVE_HTML --]</h1>
[-- STORE.AbandonEmail2Text1 --] [-- SC_Cart image name --] [--
ABANDON_CART_RECOVER_LINK --]<br>
[-- ABANDON_CART_RECOVER_LINK URLOnly --]<br>

[-- STORE.AbandonEmail2Text2 --]
</body>
</html>
[-- END_DEFINE Abandon_Cart_2nd_email --]
Last edited by tmlogo on Thu Sep 24, 2015 9:57 am, edited 1 time in total.
tmlogo
 
Posts: 103
Joined: Tue Jun 17, 2008 3:00 pm

Re: Shopping Template (Missing Order Number)

Postby Jim » Wed Sep 23, 2015 1:01 pm

Here are a couple of things to check.
Make sure that all [-- DEFINE ... --] tags start on a new line and that all [-- END_DEFINE --] also start on a new line. (I can't tell if it is just the forum reformatting the output or if that is the way your template is but there are a couple of places where the start and end defines are on the same line.

Make sure that a tag isn't broken across two lines like
Code: Select all
[-- END_DEFINE ThankYou_Email --] [-- DEFINE Merchant_ThankYou_Email --][--
INCLUDE MerchantEmail.sst PROCESS --][-- END_DEFINE Merchant_ThankYou_Email --]

It may be that you accidentally deleted the [-- END_DEFINE ...--] that occurred just before the first line of your code that you pasted in the post?

If those things don't work can you send me an email or PM with the full shopping cart template?
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Re: Shopping Template (Missing Order Number)

Postby Jim » Thu Sep 24, 2015 9:46 am

As a followup for anyone who might read this thread in the future.

The issue was resolved by fixing tags so that all the [-- DEFINE ... and [-- END_DEFINE ... were on separate lines in the template file.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah


Return to Custom Template Questions

Who is online

Users browsing this forum: No registered users and 18 guests

cron