• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

birdsafe
#1 Posted : Wednesday, July 4, 2007 6:43:41 PM(UTC)
birdsafe

Rank: Member

Joined: 2/21/2007(UTC)
Posts: 1,113

Wondering if someone can help me out. I'm using IDevAffiliate for my affiliate program and need to insert the code in Receipt.aspx to capture the order amount. This is a PHP based system -- the code is:


...sale.php?SubTotal=XXX">
</script>





I need to know what variable would go in XXX -- I've tried Order.SubTotal and [[Order.SubTotal]] -- nothing works.



Thanks in advance
bvuser
#2 Posted : Thursday, July 5, 2007 3:03:27 PM(UTC)
bvuser

Rank: Member

Joined: 4/10/2006(UTC)
Posts: 462

Well I hesitated in answering this, as I was thinking someone might have a better solution as I tend to be a strictly code-behind guy when it comes to coding, but since no one chimed in (or a moderator hasn't approved yet), the way I'd implement would be as follows:


In your receipt.aspx where you currently have that script tag I would instead put





Code:

[color=#0000ff]End[/color][color=#0000ff]If[/color]
The o.Subtotal.ToString() will replace the 'xxx' portion with the order subtotal. Also, as I don't code in VB as often as C#, I may be off on that "src" line as the '&' might need to be a '+', forget which vb.net uses sometimes.
Netriplex Corporation<br />
birdsafe
#3 Posted : Friday, July 6, 2007 10:27:33 AM(UTC)
birdsafe

Rank: Member

Joined: 2/21/2007(UTC)
Posts: 1,113

Thanks - so the "src" line would look like:

("src", "http://www.mysite.com/folder/sale.php?=" & o.Subtotal.ToString())

Assuming I still need the "?=" at the end of the URL string?
bvuser
#4 Posted : Friday, July 6, 2007 12:29:54 PM(UTC)
bvuser

Rank: Member

Joined: 4/10/2006(UTC)
Posts: 462

you would also still need the literal 'Subtotal' in the url like:

("src", "http://www.mysite.com/folder/sale.php?Subtotal=" & o.Subtotal.ToString())
Netriplex Corporation<br />
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

©2025 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012