Enabling Javascript Variables in Thank You Screen

General ShopSite user discussion

Enabling Javascript Variables in Thank You Screen

Postby shantkap » Wed Jan 09, 2008 4:07 pm

Are the Javascript variables automatically available on the Thank You screen or do I need to enable them somehow ?
shantkap
 
Posts: 2
Joined: Mon Jan 07, 2008 3:35 pm

Postby loren_d_c » Wed Jan 09, 2008 4:23 pm

They should automatically be there as long as your shopping cart template contains the [-- SC_JAVASCRIPT extras --] tag in the DEFINE ThankYou section (all of the default ShopSite shopping cart templates do, so you would probably only need to worry about this if you are using a custom template, or if you are hosted with a ShopSite reseller like SiteSell that provides their own default templates), used something like this:

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


Note that this feature is in ShopSite Pro v7.0 and newer, and a subset of the variables (like the total and subtotal and order number) are available in Manager v8.1 and newer.

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


Return to User Forum

Who is online

Users browsing this forum: No registered users and 124 guests

cron