snip_item-top - UltraTrains
This template is essentially the same as snip_document_top. We have it in UltraTrains to make a 'fake' checkout possible for demo reasons. In a production site, we'd only need snip_document-top.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> #if($group.getRoot().getAttribute("catalog_host") && $group.getRoot().getAttribute("catalog_host").length() > 0) #set($catalogHost = "$group.getRoot().getAttribute('catalog_host')") #else #set($catalogHost = 'secure.ultracart.com') #end #set($catalogHostUrl = "http://$catalogHost") #if($group.getRoot().getAttribute('themecode') && $group.getRoot().getAttribute('themecode').length() > 0) #set($themeCode = $group.getRoot().getAttribute('themecode')) #else #set($themeCode = "DFLT") #end <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> #set($title = "Demo Store") #if ($item) #set($title = "Demo Store: ${item.getDescription()}") #end <title>$title</title> #if($item) #set($object = $item) #else #set($object = $group) #end #if($object.getAttribute("meta_description") && $object.getAttribute("meta_description").length() > 0) <meta name="description" content="$object.getAttribute("meta_description")" /> #end #if($object.getAttribute("meta_keywords") && $object.getAttribute("meta_keywords").length() > 0) <meta name="keywords" content="$object.getAttribute("meta_keywords")" /> #end <link type="text/css" rel="stylesheet" media="screen" href="$baseUrl/assets/css/styles.css" /> <link type="text/css" rel="stylesheet" media="screen" href="$baseUrl/review.css" /> <script type="text/javascript" src="$baseUrl/assets/js/jquery-1.3.2.min.js"></script> <script type="text/javascript" src="$baseUrl/assets/js/common.js"></script> <script type="text/javascript"> (function($){ $(document).ready(function(){ $('#CreditCardType').val('Visa'); $('#CreditCardNumber').val('4444333322221111'); $('#CreditCardExpMonth').val(12); $('#CreditCardExpYear').val(2030); $('#CreditCardCVV2').val(321); }); })(jQuery); </script> #if($merchantLoggedIn) $group.getCatalogJavaScript() #end #if($group.getRoot().getMultimediaByCode("logo")) <style type="text/css"> .header .left a { background: transparent url($group.getRoot().getMultimediaByCode("logo").getViewUrl()) left top no-repeat; } </style> #end </head> <body>