Andy,
Are you sure you have ShopSite Pro (not Manager), and that it is v7.0 or
newer? If you are putting this in a custom shopping cart template, can
you verify that the following default code is still in the DEFINE
ThankYou section of your custom template:
script type="text/javascript"
!--
[-- SC_JAVASCRIPT extras --]
// --
/script
And also verify that you are placing your code AFTER this code in the
custom shopping cart template?
-Loren
Andy S. wrote:
I'm sorry, yes it does have the semi colon after that line but still I
get
an error
Line: 10
Char: 1
Error: 'ss_ordertotal' is undefined
Code: 0
URL: etc...
I've cut and pasted the script below, so this is EXACTLY what I have:
SCRIPT LANGUAGE="JavaScript"
!-- Overture Services, Inc
var pm_tagname = "conversionTag.txt";
var pm_tagversion = "1.4";
var amounttotal = ss_ordertotal;
window.pm_customData = new Object();
window.pm_customData.segment = "name=conversion, transId=, amount="+
amounttotal;
// --
/SCRIPT
Thanks so much!
Andy
"Rob" <rob@lexiconn.com> wrote in message
news:d143vo$p8$1@eval.shopsite.com...
Make sure you have a semicolon at the end of the var amounttotal line.
If
it still does not work, try leaving the var line out and just reference
ss_ordertotal instead of amounttotal. This should work on the thank you
page for a ShopSite 7.x Pro store.
Rob
"Andy S." <andy@yourweb.com> wrote in message
news:d139ut$nia$1@eval.shopsite.com...
I get a IE scripting error: "ss_ordertotal is undefined". This is what
the
script looks like now...
SCRIPT LANGUAGE="JavaScript"
!-- Overture Services, Inc
var pm_tagname = "conversionTag.txt";
var pm_tagversion = "1.4";
var amounttotal = ss_ordertotal
window.pm_customData = new Object();
window.pm_customData.segment = "name=conversion, transId=, amount="+
amounttotal;
// --
/SCRIPT
Thanks for giving it a shot!
Andy
"Rob" <rob@lexiconn.com> wrote in message
news:d134eg$lh6$1@eval.shopsite.com...
Put it in the overture script section, right under:
var pm_tagversion = "1.4";
Rob
"Andy S." <andy@yourweb.com> wrote in message
news:d12q86$go1$1@eval.shopsite.com...
You are better than I am
I am sorry I am so ignorant and am taking so much of your time...
Do I put this "var amounttotal = ss_ordertotal" in the receipt
portion
of
the cart template or does this go in the actual overture script?
Thanks again for your patience and your help!!!
Andy
"Rob" <rob@lexiconn.com> wrote in message
news:d12ghv$bnt$1@eval.shopsite.com...
set a var such as:
var amounttotal = ss_ordertotal;
Then add the variable in, i.e.:
window.pm_customData.segment = "name=conversion, transId=, amount="
+
amounttotal;
I'm not an expert on javascript syntax, but something slong these
lines
should work.
Rob
"Andy S." <andy@yourweb.com> wrote in message
news:d12bsd$9ku$1@eval.shopsite.com...
Actually, I spoke to soon since I have no clue about scripting.
In the cart template on the receipt page overture had me add this
to
the
head
SCRIPT LANGUAGE="JavaScript"
!-- Overture Services, Inc
var pm_tagname = "conversionTag.txt";
var pm_tagversion = "1.4";
window.pm_customData = new Object();
window.pm_customData.segment = "name=conversion, transId=,
amount=???";
// --
/SCRIPT
How would I pass the shopsite variable "ss_ordertotal" to the part
of
the
overture script "amount=" without any $ signs?
I really appreciate your help!!!
Andy
"Rob" <rob@mangiafico.net> wrote in message
news:d11nla$vc6$1@eval.shopsite.com...
With ShopSite Pro 7.x, you can use the javascript variable
"ss_ordertotal"
and then pass this variable in a javascript call. Reference:
http://www.shopsite.com/help/7.1/en-US/ ... ables.htmlYou can also write an order API script that extracts the order
total
and
then have the script output an IMG call or whatever mechanism you
need
to
pass the info back to Overture.
Rob
"Andy S." <andy@yourweb.com> wrote in message
news:d10st0$ln8$1@eval.shopsite.com...
Hi,
I am using Overture Performance Marketing and am trying find a
tag
for
just
the total dollar amount of a sale so that I can pass this info
back
using
a
script embedded in the Thank You screen.
Am I missing this or is this information only contained in the
[--
SC_Totals --] tag. It appears this tag generates an entire table
of
subtotal, shipping, tax, and the order total?
Is there a workaround so way using a VAR? If not, this would be
a
handy
feature in the future to have separate tags for order totals
info.
Thanks!
Andy