| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Snap.com advertising modification | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() Hello,
I am new to x-cart so please bear with me on this one. I am looking to set up a pay per action and percentage of sale marketing campaign with www.snap.com. In order to do this a block of php code must be entered into our software. The code is as follows: Code:
I am not sure where the best place to put this code would be. I do have some general ideas, but havent come to a certain conclusion. I would like to minimize the risk that someone makes a purchase, but doesnt follow through with the payment, and I still get charged by snap.com. I dont think I can avoid this risk, seeing as our site takes payment in the form of credit cards, gift certificates, and paypal, of which the credit cards and paypal payments are done via a third party website. Please let me know if you can help me with this problem, because I would really like to use this less risky version of marketing our site.
__________________
4.4 Code:
|
|||||||||
#2
|
|||||||
|
|||||||
![]() it needs to go into order_message.tpl
remove the <?php enclose the whole thing in {php} {/php} You'd need to find out what variable goes into the ITEMCOST though could be {$order_total}
__________________
x-cart 4.0.5 (live and heavily modded) Server: freebsd |
|||||||
#3
|
|||||||||
|
|||||||||
![]() Thanks Cotc.
I took a look at order_message, and am still a little confused. Does it matter where I put the code (inside or outside of the loop)? Also, can I just call reference {orders_total} without doing any preliminary modifications? I have included the order_message.tpl code below: Code:
Thanks, David
__________________
4.4 Code:
|
|||||||||
#4
|
|||||||||
|
|||||||||
![]() Anybody????????????????????????
__________________
4.4 Code:
|
|||||||||
#5
|
|||||||
|
|||||||
![]() I have gotten setup on Snap.com. Here are some comments, and my own questions:
Question: In the directions, snap tells you to put [img]<?php echo $pixel_url; ?>[/img] between the Html <body> </body> tags. There are no such body tags. In the main part of the order_message.tpl code I put it (my insertion is in bold) [img]<?php echo $pixel_url; ?>[/img] {if $active_modules.Interneka ne ""} Is this right? Does anybody know for sure? Comments: 1. I put the Snap Code at the end of the order_message.tpl code. I even completely surrounded it with {* SNAP.COM* } {* /SNAP.COM*} so I can reference it easier, later. 2. I am not sure if it is right, but for the ITEMCOST variable, I used $cart.subtotal I initially used the $order_total but since I used the % method of being charged on Snap, I was concerned it would use the total with shipping costs to charge my account. I hope subtotal is the cart totals, less the shipping costs. 3. It does appear I have been successul getting setup, although my keywords have not seen that much action or sales.
__________________
X-Cart Gold 3.4.12 / 4.0.9 Windows Delaware |
|||||||
#6
|
|||||||||
|
|||||||||
![]() kitestailstoys, could you please post your entire order_message.tpl
Thanks, David
__________________
4.4 Code:
|
|||||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|