Page 1 of 6 123 ... LastLast
Results 1 to 10 of 54
  1. #1
    Join Date
    Mar 2009
    Posts
    57
    Plugin Contributions
    0

    bug Custom purolator module won't allow checkout to continue to page 2

    Clean install of Zencart 1.39h
    I've built my own Purolator module. It's working in that it fetches a proper quote with pricing. See attached image.
    The problem is, when I try to continue, I keep coming back to page 1, it will never move on to page 2.
    Using any other module, pickup, free shipping, etc, works fine and it continues. But using my Purolator module, it stalls.
    Any ideas?
    Is there any place that tells you what exactly is required in a shipping module and where?
    By the way, the 'currently unavailable' is there on purpose from me, and the 'confirm before shipping' is also a module I wrote, and it works.

    [SCR]http://Mediagoldshop.com/images/snapshot1.png[/SCR]
    Last edited by Kim; 1 Mar 2011 at 03:10 AM.

  2. #2
    Join Date
    Mar 2009
    Posts
    57
    Plugin Contributions
    0

    Default Re: module works, but won't continue to page 2

    More info:
    There are NO errors on the page, it just keeps refreshing back to page 1 of 3 of the shipping screen.

    This is what I'm providing in the 'quote()' method:

    $this->quotes( $id, $module, $method($id, $title, $cost) )

    It makes no sense that the page would just reload without throwing some sort of error, and that any other module would work.

    Ideas?

  3. #3
    Join Date
    Mar 2009
    Posts
    57
    Plugin Contributions
    0

    Default Re: module works, but won't continue to page 2

    Ok, how about this, can anyone tell me which files do the processing of the order?

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: module works, but won't continue to page 2

    It will not advance to the payment screen unless the shipping method being selected is confirmed to be valid.
    .

    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.

  5. #5
    Join Date
    Mar 2009
    Posts
    57
    Plugin Contributions
    0

    Default Re: module works, but won't continue to page 2

    Thank you, a reply!!

    Quote Originally Posted by DrByte View Post
    It will not advance to the payment screen unless the shipping method being selected is confirmed to be valid.
    Yes, that's what I figured was happening.
    Where can I find what is required to be valid?
    Why can't it at least throw some sort of error so I know what doesn't validate?
    It's very difficult writing this kind of code without an API.

    I'm thankful for any advise. As a Java programmer, I find PHP very frustrating.

  6. #6
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: module works, but won't continue to page 2

    The list of quotes is presented to the customer, using the quotes returned in the array by the quotes() method.
    The validation requests the quotes() again, and takes what the customer submitted and compares that against the list of quotes returned. If there's a match, it sets that as the shipping method, and moves on to the payment page. If it fails, it stays on the shipping-options page, and lets the customer choose from the list of available options.
    .

    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.

  7. #7
    Join Date
    Mar 2009
    Posts
    57
    Plugin Contributions
    0

    Default Re: module works, but won't continue to page 2

    Quote Originally Posted by DrByte View Post
    The list of quotes is presented to the customer, using the quotes returned in the array by the quotes() method.
    That part I got. I have a quote($method) function.
    Q: is it quote, or quotes? I see both in different places.
    I have a quote() function, and a this->quotes array.
    Here's what I put in it:
    PHP Code:
    $this->quotes = array('id' => $this->code,
                    
    'module' => $this->title,
                    
    $methods = array());
    $methods[] = array('id' => $type,  // with an iteration here
                            
    'title' => $type,     // for each service type
                            
    'cost' =>  $cost);  // like am or weekend
    $this->quotes['methods'] = $methods;
    return 
    $this->quotes
    Obviously I took out some details for clarity, but that's what I have.
    Quote Originally Posted by DrByte View Post
    The validation requests the quotes() again, and takes what the customer submitted and compares that against the list of quotes returned. If there's a match, it sets that as the shipping method, and moves on to the payment page. If it fails, it stays on the shipping-options page, and lets the customer choose from the list of available options.
    Now it shows up on the screen, why doesn't it validate? I feel like I'm almost there, but something simple is missing.

    Lux

  8. #8
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: module works, but won't continue to page 2

    I wasn't looking at actual code, so I apologize for referring to quotes() when the method name is actually quote().

    Can you zip and attach your module as you have it now?
    .

    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.

  9. #9
    Join Date
    Mar 2009
    Posts
    57
    Plugin Contributions
    0

    Default Re: module works, but won't continue to page 2

    here's the zip. er.. assuming I can figure it out.
    I will open-source this, with the rest of the files (language files and such) as soon as it's working. Also, this one uses nusoap libraries. I have a non-nusoap one available too.
    Also, the error handling codes have been stripped out except for one, just because they triple the filesize and don't affect functionality.

    Hopefully you can see what's wrong, I'm so close...purolator.php.zip

  10. #10
    Join Date
    Mar 2009
    Posts
    57
    Plugin Contributions
    0

    Default Re: module works, but won't continue to page 2

    ok, I haven't had any answers, and haven't figured it out, so I will provide the entire module to the community in its current form.

    I'm asking that if you try this, you let me know if it works for you or not, and if it does, what version and modules you have installed.
    Thanks

    Download Purloator Shipping Module from mediagoldshop.com

 

 
Page 1 of 6 123 ... LastLast

Similar Threads

  1. Canada post Module won't allow large pieces
    By RobertG in forum Addon Shipping Modules
    Replies: 1
    Last Post: 16 Mar 2012, 08:17 AM
  2. Custom Payment module won't redirect to "checkout success" page
    By eurorage in forum Addon Payment Modules
    Replies: 2
    Last Post: 5 Feb 2011, 08:14 PM
  3. Purolator Module
    By eluke in forum Addon Shipping Modules
    Replies: 7
    Last Post: 29 Oct 2009, 01:33 AM
  4. Blank Page when continue checkout - paypal module
    By scottwww1 in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 2 Oct 2009, 05:15 AM
  5. Cart won't allow checkout
    By jaredbbauer in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 20 Jul 2007, 05:30 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