Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17
  1. #11
    Join Date
    Jun 2006
    Posts
    440
    Plugin Contributions
    0

    Default Re: Adding Code to checkout_success.php

    Hi There,

    Thanks for that, I thought I was good but doubted myself when it didn't report in, the issue must be their end.

    Re. I changed "order_total" to "order_subtotal" unless I am mistaken the sub is the price I sold the item for and total is including postage etc. I was just looking to calculate the sale.

    Cheers

    RR

  2. #12
    Join Date
    Jun 2006
    Posts
    440
    Plugin Contributions
    0

    Default Re: Adding Code to checkout_success.php

    Dear Dr. Byte

    I wonder if you could shed some light on this. I have the following code as we have discussed before, however I have added another code as well for another comparison engine called myshopping.com.au. Now both getprice.com.au and myshopping.com.au report the same sale as originating from their link (in their cp). Is it because of the code below or is it because they both use the one datafeed.

    Best Regards

    Renz

    <!-- Getprice.com.au sales tracking system -->
    <img height="1" width="1" border="0"src="https://secure.getprice.com.au/affsale.asp?shopid=1434&price=<?php echo $order_summary['order_total']; ?>&sid=<?php echo $order_summary['order_number']; ?> " />
    <!-- End Getprice.com.au -->



    <!--MyShopping.com.au Code for Purchase Conversion Page -->



    <img height=0 width=0 src="https://www.myshopping.com.au/sale.asp?mid=2065&amount=<?php echo $order_summary['order_total']; ?>&order=<?php echo $order_summary['order_number']; ?> " />
    <!-- MyShopping.com.au -->

  3. #13
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Adding Code to checkout_success.php

    Quote Originally Posted by Renz View Post
    Now both getprice.com.au and myshopping.com.au report the same sale as originating from their link (in their cp). Is it because of the code below or is it because they both use the one datafeed.
    I'm puzzled about what you mean by "originating from their link".
    This would seem to not be a Zen Cart issue, but rather something you need to ask *them* about.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #14
    Join Date
    Jun 2006
    Posts
    440
    Plugin Contributions
    0

    Default Re: Adding Code to checkout_success.php

    Hi Dr. Byte,

    I am trying to determine why both comparison engines are returning a sale in their control panel, as far as I can understand there can only be 2 reasons 1 is that it's happening because they both use the same data feed as follows

    http://www.adulttoys4u.com.au/shop/m...ice_xml&live=1 which of course you are quite correct is nothing to do with zen cart.

    The other is that somehow this code is causing it:

    <!-- Getprice.com.au sales tracking system -->
    <img height="1" width="1" border="0"src="https://secure.getprice.com.au/affsale.asp?shopid=1434&price=<?php echo $order_summary['order_total']; ?>&sid=<?php echo $order_summary['order_number']; ?> " />
    <!-- End Getprice.com.au -->



    <!--MyShopping.com.au Code for Purchase Conversion Page -->



    <img height=0 width=0 src="https://www.myshopping.com.au/sale.asp?mid=2065&amount=<?php echo $order_summary['order_total']; ?>&order=<?php echo $order_summary['order_number']; ?> " />
    <!-- MyShopping.com.au -->

    Of course I am expecting you to tell me....no way buddy, the code is Ok and you have it in the right place...and to go knocking on their door for answers..As you have already ok the get price code and location in the past the only change is the addition of the my shopping code in the same place......But I am doubting that this would cause the problem..but need to check it's not a possibility.

    Just to clarify this "originating from their link" means that they found my product in a comparison engine by clicking their link they end up on to my site and of course only the donor link and company should take credit for the sale not both of them...

    Cheers for now

    Renz

  5. #15
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Adding Code to checkout_success.php

    Okay, but don't you have tracking code set up to send to BOTH of them? ie: you've added the tracking-pixel <img....> code for both of them to your template. Thus, they're BOTH going to be notified of every sale made on your store, regardless of origin.

    I would think that it's up to *them* to honestly report whether the sale was referred by them to you, or to admit that the sale was not a result of a click from their channels.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #16
    Join Date
    Mar 2010
    Posts
    1
    Plugin Contributions
    0

    Default Re: Adding Code to checkout_success.php

    DrByte is right, both companies are tracking sales. And actually both of them are probably honest and report your sale correctly. The reason is that customer can click on your product from both comparison engines. It happens all the time, type in google product name and you see the same products listed in google from different comparison engines. You may click on one of them, then another. This way, not only two, but more comparison engines can register click to your site and as a result a sale (if customer finally buy something).
    Maybe you know, majority of visitors comes to comparison engines from google and some of customers do research using more then one comparison engine. Therefore you may expect such problem from time to time. But if ALL your sales reported by both engines, then it’s error in sales code installation. How many sales you’ve got from comparison engines in total?

  7. #17
    Join Date
    Jun 2006
    Posts
    440
    Plugin Contributions
    0

    Default Re: Adding Code to checkout_success.php

    Hi Dr. Byte, I have a very similar question regarding code for conversion from google and location to enter this code into an earlier version of zen cart 1.3.0.2. I posted the question in General but out of all the people who viewed it no-one has responded, I was wondering if your wealth of knowledge could help. http://www.zen-cart.com/forum/showth...728#post860728

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. v154 PHP Code to display customers email on checkout_success
    By botanybros in forum General Questions
    Replies: 2
    Last Post: 12 Nov 2015, 03:24 PM
  2. Adding Php code to homepage
    By tracstev in forum General Questions
    Replies: 2
    Last Post: 8 Nov 2011, 01:01 PM
  3. E-commerce tracking code in checkout_success page
    By jorgebnuk in forum General Questions
    Replies: 15
    Last Post: 9 Nov 2009, 02:10 PM
  4. Adding an Image inside PHP code?
    By limelites in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 9 Oct 2009, 10:56 PM
  5. Entering HTM Code into PHP Files - Adding Live Search to search_header.php
    By Jump Network in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 23 Sep 2007, 02:47 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg