Page 9 of 22 FirstFirst ... 789101119 ... LastLast
Results 81 to 90 of 211
  1. #81
    Join Date
    Apr 2010
    Posts
    6
    Plugin Contributions
    0

    Default Re: Nixaks Sagepay Form Module

    Thanks so much for your help. I uninstalled the module, and then re-installed it, and it seems to work fine now.

  2. #82
    Join Date
    Nov 2007
    Location
    Essex, UK
    Posts
    137
    Plugin Contributions
    1

    Default Re: Nixaks Sagepay Form Module

    Quote Originally Posted by KCMP View Post
    Thanks so much for your help. I uninstalled the module, and then re-installed it, and it seems to work fine now.
    Your more then welcome KCMP just glad to hear you have it all working

  3. #83
    Join Date
    Apr 2010
    Posts
    6
    Plugin Contributions
    0

    Default Re: Nixaks Sagepay Form Module

    Quote Originally Posted by Nixak View Post
    Your more then welcome KCMP just glad to hear you have it all working
    I can't imagine what could have caused the problem

  4. #84
    Join Date
    May 2010
    Posts
    4
    Plugin Contributions
    0

    Default Re: Nixaks Sagepay Form Module

    Quote Originally Posted by MaryF View Post
    If someone could help with adding an if / else statement in the code then we could get the billing info sent to SagePay if it is a download product and there is no delivery address.

    Here is the section of code inside the file called includes/modules/payment/sagepay_form.php.

    How do I add the statement in the section after this line:
    Code:
    $plain .= "BillingPhone=" . $order->customer['telephone'] . "&";
    In other words, the code must check to see if the customers delivery address OR postcode is empty. If both or any of the delivery fields are empty, it posts the billing address to SagePay instead.


    Code:
    $plain .= "BillingPhone=" . $order->customer['telephone'] . "&";	
    		$plain .= "DeliverySurname=" . $order->delivery['lastname'] . "&";
    		$plain .= "DeliveryFirstnames=" . $order->delivery['firstname'] . "&";
    		$plain .= "DeliveryAddress1=" . $order->delivery['street_address'] . "&";
          if (ACCOUNT_SUBURB == 'true') {
            $plain .= "DeliveryAddress2=" . $order->delivery['suburb'] . "&";
        }
    		$plain .= "DeliveryCity=" . $order->delivery['city'] . "&";
    		$plain .= "DeliveryPostCode=" . $order->delivery['postcode'] . "&";
    		$plain .= "DeliveryCountry=" . $order->delivery['country']['iso_code_2'] . "&";
    Would appreciate come help with this.thanks.

    Hi,

    I've had the same problem as above and I've added a couple of lines that basically check to see if the Delivery information is missing ( to be specific I check the street address and country ) and if it is I copy the billing details into the delivery details array.

    I've tested it and it works fine for me.

    See modified file attached with the updated code commented.
    I hope someone else will find it usefull

    Regards,

    Mark
    www.avova.ie
    Attached Files Attached Files

  5. #85
    Join Date
    May 2010
    Posts
    4
    Plugin Contributions
    0

    Default Re: Nixaks Sagepay Form Module

    Oh and I forgot to thank you Nixak for the great module.

    If you need any help with testing/developing it further please just let me know.

    Regards,

    Mark
    www.avova.ie

  6. #86
    Join Date
    Nov 2007
    Location
    Essex, UK
    Posts
    137
    Plugin Contributions
    1

    Default Re: Nixaks Sagepay Form Module

    Hi avova, I just wanted to ask you about that delivery address problem as I don't sell virtual products so it's a little difficult for me lol.

    As I understand it from my store when the customer registers to the store they enter the main address ie the billing address and then when they order they can either have the goods sent to that address or enter a new address. If they do not enter a new delivery address then zen-cart automaticly sends the billing address as the delivery address, so you should not have a problem unless you are using a mod that allows your customers to order without registering to your site.

    Is there something different with virtual products? which causes the problem listed above and if so could you give me as much detail as possable so as I can re-code the module to help you all.

    Regards
    Nixak

  7. #87
    Join Date
    May 2010
    Posts
    4
    Plugin Contributions
    0

    Default Re: Nixaks Sagepay Form Module

    Yeah no problem.

    Basically what happens is with a download/virtual product the entire shipping process is bypassed and $order->delivery[] is left with blank fields.

    The code I used to fix the issue is highlighted by code comments in the file I attached in my previous post. (It's at the top of the process_button() function )

    All I'm doing here is checking to see if the $order->delivery array is empty and if it is I copy the details from the $order->billing array to it and that keeps SagePay happy.

    I hope that clears things up for you.

    Regards,
    Mark
    www.avova.ie

  8. #88
    Join Date
    Nov 2007
    Location
    Essex, UK
    Posts
    137
    Plugin Contributions
    1

    Default Re: Nixaks Sagepay Form Module

    Cheers Avova I will update the module with those changes as soon as I can .... the wife has me updating her website at the moment

  9. #89
    Join Date
    May 2010
    Posts
    4
    Plugin Contributions
    0

    Default Re: Nixaks Sagepay Form Module

    No problem at all.

    And like I said if you need any help with development/testing just let me know.

    Regards,
    Mark
    www.avova.ie

  10. #90

    Default Re: Nixaks Sagepay Form Module

    Hi Nixaks!
    Thanks for this mod...it installed and worked 1st time!
    Just a couple of quick question....is there anywhere that tells me in admin that a payment was authorised or is the only confirmation the email sent from sagepay?
    If it's just the email, is there any way of tying the order ID within zen cart to the transaction ID from sagepay? Does the transaction ID get written to the database anywhere?

    Also, when a payment is refused the user is returned to the payment screen in Zen Cart. Is there any way to display a message to say the payment was refused?

    I am using Zen Cart version 1.3.8a and am still using sagepay in test mode.

    Thanks again for the mod...it's really good!!

 

 
Page 9 of 22 FirstFirst ... 789101119 ... LastLast

Similar Threads

  1. Sagepay Form V1.5.5
    By Nick1973 in forum Addon Payment Modules
    Replies: 10
    Last Post: 12 Jun 2019, 10:30 AM
  2. Need a Form Module for Sagepay
    By ukstuff in forum Addon Payment Modules
    Replies: 5
    Last Post: 18 Feb 2015, 03:51 PM
  3. v150 Nixaks Sagepay Form Module PHP Warning
    By sprocker in forum Addon Payment Modules
    Replies: 0
    Last Post: 13 Aug 2014, 11:24 AM
  4. looking for the protx - sagepay - FORM payment module
    By abs007 in forum Addon Payment Modules
    Replies: 3
    Last Post: 20 Jul 2009, 06:06 PM
  5. Help with Sagepay form payment module please
    By Nixak in forum Addon Payment Modules
    Replies: 1
    Last Post: 20 Jul 2009, 11:39 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR