Results 1 to 10 of 117

Hybrid View

  1. #1
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: WorldPay Module version 3.0 - Support thread

    Quote Originally Posted by bonheddwr View Post
    Hi all. The plugin works great for me other than one issue. After people choose to pay via WorldPay, they are taken to the WorldPay site. All the processing is done there, and the customer returns to the Zen Cart order confirmation page. Everything seems fine,tbut the issue is that none of the Worldpay orders are logged under 'Transactions' in our Google Analytics account. All orders placed on our site using Paypal are logged on Analytics but not the Worldpay ones. This has been an ongoing issue for us. Today I copied all of the *clean* files again from the plugin to our server. The only changes I have made (changes made by the developer) is to change the following code in includes/modules/payment/worldpay.php.

    Code:
          function selection() {
    
            if(sizeof(explode(',', trim(MODULE_PAYMENT_WORLDPAY_ACCEPTED_CC_LIST)))>0 && MODULE_PAYMENT_WORLDPAY_ACCEPTED_CC_LIST !='--none--' && MODULE_PAYMENT_WORLDPAY_ACCEPTED_CC != 'False'){
                switch(MODULE_PAYMENT_WORLDPAY_ACCEPTED_CC){
                case 'Radio Buttons' :
                return array('id' => $this->code,
                            'module' => $this->title.$this->_draw_radio_menu($this->_cc_map(), $_SESSION['paymentType'] ));
                break;
                case 'Select Box':
                $this->cc_drop = array();
                array_walk($this->_cc_map(), array('worldpay', 'cc_split'));
                return array('id' => $this->code,
                            'module' => $this->title.'</label> '.zen_draw_pull_down_menu("paymentType", $this->cc_drop, $_SESSION['paymentType'] ).'<label>' );
                break;
                default:
                return array('id' => $this->code,
                            'module' => $this->title);
                }
            }else{
            return array('id' => $this->code,
                    'module' => $this->title);
            }
    
          }
    to:

    Code:
          function selection() {
    
            if(sizeof(explode(',', trim(MODULE_PAYMENT_WORLDPAY_ACCEPTED_CC_LIST)))>0 && MODULE_PAYMENT_WORLDPAY_ACCEPTED_CC_LIST !='--none--' && MODULE_PAYMENT_WORLDPAY_ACCEPTED_CC != 'False'){
                switch(MODULE_PAYMENT_WORLDPAY_ACCEPTED_CC){
                case 'Radio Buttons' :
                return array('id' => $this->code,
                            'module' => $this->title.$this->_draw_radio_menu($this->_cc_map(), $_SESSION['paymentType'] ));
                break;
                case 'Select Box':
                $this->cc_drop = array();
                array_walk($this->_cc_map(), array('worldpay', 'cc_split'));
                return array('id' => $this->code,
                            'module' => $this->title.'</label><p align="center"><img src=https://www.cadwyngifts.com/images/cardiau-credyd-cadwyn.png border=0 alt="Card payments supported by Worldpay"></p> '.zen_draw_pull_down_menu("paymentType", $this->cc_drop, $_SESSION['paymentType'] ).'<label>' );
                break;
                default:
                return array('id' => $this->code,
                            'module' => $this->title.'<p style="margin: 0px;"><img src=https://www.cadwyngifts.com/images/cardiau-credyd-cadwyn.png border=0 alt="Card payments supported by Worldpay"></p></label> ');
                }
            }else{
            return array('id' => $this->code,
                    'module' => $this->title.'<p style="margin: 0px;"><img src=https://www.cadwyngifts.com/images/cardiau-credyd-cadwyn.png border=0 alt="Card payments supported by Worldpay"></p></label>' );
            }
    
          }
    Other than that it a clean installation.

    Could the changes above be somehow stopping Google Analytics from logging any Worldpay orders made on our site cadwyngifts.com ? I hope the above is clear. I would greatly appreciate any feedback.
    It will be because of the weird 'order confirmation' page that Worldpay uses.

    By which I mean that the page after the customer enters their details ssuccessfully is generataed by the worldpay server rather than your server. The GA code will be on the page that your server generates so may never get actioned in the Worldpay way of doing things.

    So, I think that the good news is that it has not got to do with the changes that your developer has made. The bad news is that it is going to be challenging to rectify.

    :-)

  2. #2
    Join Date
    Jun 2007
    Location
    Cymru
    Posts
    124
    Plugin Contributions
    0

    Default Re: WorldPay Module version 3.0 - Support thread

    Quote Originally Posted by niccol View Post
    It will be because of the weird 'order confirmation' page that Worldpay uses.

    By which I mean that the page after the customer enters their details ssuccessfully is generataed by the worldpay server rather than your server. The GA code will be on the page that your server generates so may never get actioned in the Worldpay way of doing things.

    So, I think that the good news is that it has not got to do with the changes that your developer has made. The bad news is that it is going to be challenging to rectify.

    :-)
    Thanks Nicco for the information! I have heard many people complain about WorldPay's weird setup! But the strange thing is, other people seem to use the WorldPay and GA plugins, and the orders are logged in their analytics. Could it be something to do with the options I have chosen on the Worldpay site itself therefore?

  3. #3
    Join Date
    Jun 2007
    Location
    Cymru
    Posts
    124
    Plugin Contributions
    0

    Default Re: WorldPay Module version 3.0 - Support thread

    Hi all. I've spoken to the google team who have gone through and checked the analytics code etc on our site. They say this is an issue with WorldPay (or possibly the plugin, although the code looks correct from their end). When a customer pays using WorldPay they are taken to an URL similar to this:

    https://secure.worldpay.com/wcc/card...-1530101623925

    It looks to the customer as if they have returned to our site, but if you look at the URL in the browser it is WorldPay. Because of this, Google analytics does not register the transaction:

    Click image for larger version. 

Name:	payment-page-worldpayl.jpg 
Views:	111 
Size:	42.2 KB 
ID:	17953

    Somone said earlier in the discussion that orders using WorldPay on their site ARE being recorded by Google Analytics. Are customers sent back to your site therefore? If so what changes have you made to ensure that this happens?

    Customers using Paypal on our site are correctly returned to the following URL on our site https://www.welsh-lovespoons.co.uk/i...eckout_success, so those sales are registered in Google Analytics.

    Click image for larger version. 

Name:	payment-page-paypal.jpg 
Views:	96 
Size:	39.6 KB 
ID:	17954

    There is a workaround suggested here - http://thesitedoctor.co.uk/blog/how-...with-worldpay/

    Code:
    @if (string.IsNullOrWhiteSpace(Request.QueryString["processed"]))
    {
        <meta http-equiv="refresh" content="0;[email protected]()&processed=yes" /">
    }
    Would this code or similar work with Zen Cart do you think, and on what page should I include the code?


    I would greatly appreciate any advice.

  4. #4
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: WorldPay Module version 3.0 - Support thread

    It looks to the customer as if they have returned to our site, but if you look at the URL in the browser it is WorldPay. Because of this, Google analytics does not register the transaction:
    Is that not what I said?

    By which I mean that the page after the customer enters their details ssuccessfully is generataed by the worldpay server rather than your server.
    Interesting idea to use a meta tag to redirect back to the site. I had tried a javascript redirect but that did not work. The code listed will not work because it is for a different software and in a different language. For Zen you will have to adjust includes/modules/pages/checkout_success/header_php.php

    It is not a one line answer to the changes that need to be made.

 

 

Similar Threads

  1. MultiSite Module Support Thread
    By Gerome in forum All Other Contributions/Addons
    Replies: 2246
    Last Post: 29 Dec 2025, 10:13 AM
  2. WorldPay Module version 2.0 - Support thread
    By philip_clarke in forum Addon Payment Modules
    Replies: 729
    Last Post: 4 Nov 2017, 08:23 AM
  3. v151 Codetrio Sphinx Search Version 1.0 Support Thread
    By imranulh in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 16 Jul 2014, 01:24 AM
  4. Simple SEO URL (OLD version) [support thread]
    By yellow1912 in forum All Other Contributions/Addons
    Replies: 5053
    Last Post: 30 Jun 2014, 02:42 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