Skip to content
  1. Docs
  2. Template settings
  3. Order, microdata, CSS and JS

Order, microdata, CSS and JS

How to set up the text after checkout, Schema.org microdata for Google and add your own CSS and JavaScript in the Trust template for OpenCart 3.

3 min read

Three template settings tabs that are rarely changed but worth setting up once: the text after checkout, microdata for search engines and your own code. Open Octemplates → Trust OCTemplates - template settings, the “Settings” tab.

Order success page

On the “Success order” tab set what the shopper sees after placing an order. Turn on “Status” — otherwise the standard OpenCart page is shown.

Order success page settings

Texts are set separately for registered and unregistered customers, for each language: the page title and the text.

Variables in the text

You can use variables in the text — the template replaces them with real data:

VariableReplaced withFor
[order_id]Order numberEveryone
[contact_link]Link to the contact pageEveryone
[account_link]Link to the customer accountRegistered
[account_order_link]Link to the order listRegistered
[account_download_link]Link to the downloads pageRegistered

Example text for an unregistered customer:

<p>Thank you! Your order #[order_id] has been received.</p>
<p>Our manager will contact you shortly. Questions? <a href="[contact_link]">Write to us</a>.</p>

Microdata

Schema.org microdata tells Google about your store: name, address, contacts, shipping and returns. This helps show rich search results. Turn on “Enable microdata?” on the “Microdata” tab and fill in the fields.

Microdata settings

About the company

FieldWhat to enterExample
Organization typeThe closest to your business: online store, electronics, clothing, furniture, auto parts store and so on.Online Store (Universal)
Country ISO codeTwo letters per ISO 3166-1.US
City, Address, Postal codeThe address of the head office or store.New York, 1 Main St, 10001
Latitude and LongitudeCoordinates for the map. Copy them from Google Maps: right-click a point — the first line of the menu.40.7128, -74.0060
Full legal nameAs in the registration documents.My Store LLC
Founding dateFormat DD.MM.YYYY.15.03.2020

Sales and shipping

FieldWhat to enterExample
Service areaISO codes of delivery countries, comma-separated.US,CA
Shipping costA number only, no currency. 0 — free.10
Price rangeFrom budget to luxury ($…$$$$) or a price range.$10-$500
Accepted currenciesISO codes, comma-separated.USD,EUR
Payment methodsComma-separated.Cash, Credit Card
Maximum order processing time (days)Maximum time before shipping.1
Maximum order delivery time (days)Maximum delivery time after shipping.3
Product return period (days)How many days a customer can return a product.30

Check the markup. After saving, open any store page in Google’s Rich Results Test — it shows whether the search engine sees your data without errors.

Your own CSS and JavaScript

On the “Css - JavaScript” tab you can add your own styles and scripts without editing theme files. The code is loaded on every storefront page and stored in the settings, so it survives template updates.

Own CSS and JavaScript

Example: make the product page title larger and hide the “Hit” badge:

.tr-product-title { font-size: 34px; }
.tr-badge--hit { display: none; }

Warning. A JavaScript error can break the storefront — cart, filters, checkout. Test code on a staging copy of the site and clear the template cache after saving.