Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Oct 2010
    Posts
    6
    Plugin Contributions
    0

    Default New shipping module for Schenker, only refreshes page

    Hi!

    I'm developing a new shipping plugin for Schenker in Norway.
    On "index.php?main_page=checkout_shipping" it calculates the cost correctly, but when i click "Next step" the page just refreshes.
    Post parameters:
    action process
    comments
    shipping schenker_partigods_schenker_partigods
    x 43
    y 10

    Any idea why it won't go to payment page?
    I have another shipping option, "Pickup in store" which works perfectly.

    Code of my plugin:
    http://pastebin.com/v8aMGV8v

    print_r of $this->quotes:
    Array ( [id] => schenker_partigods [module] => Schenker Partigods [methods] => Array ( [0] => Array ( [id] => schenker_partigods [title] => Partigods [cost] => 275 ) ) [tax] => 25 )

    print_r of $estimate:
    Array ( [status] => 1 [weight] => 41 [to_zip] => 3472 [from_zip] => 1367 [price] => 275.00 )

    Zen Cart 1.3.9e

  2. #2
    Join Date
    Oct 2010
    Posts
    6
    Plugin Contributions
    0

    Default Re: New shipping module for Schenker, only refreshes page

    I have now investigated further.

    When I add the line "print_r($this->quotes);" in function quote($method = ''),

    in a working shipping module the screen gets white with the following contents:
    Array ( [id] => bringservicepakke [module] => På postkontor eller post i butikk [methods] => Array ( [0] => Array ( [id] => bringservicepakke [title] => Servicepakke [description] =>
    Slemmestad postkontor. Åpningstider Man - Fre: 0930-1800, Lør: 1000-1500 [cost] => 198 ) ) [tax] => 25 [icon] => Posten Servicepakke (Bring Fraktguide) )

    But in my module, it refresh the page, with the following at top:
    Array ( [id] => schenker_stykkgods [module] => Schenker Stykkgods [methods] => Array ( [0] => Array ( [id] => schenker_stykkgods [title] => Stykkgods [cost] => 165 ) ) [tax] => 25 )

  3. #3
    Join Date
    Oct 2010
    Posts
    6
    Plugin Contributions
    0

    Default Re: New shipping module for Schenker, only refreshes page

    After hours of trying and failing my solution was to rename the module class and construct function.
    It does not allow "_".

    *dogh* :-/

 

 

Similar Threads

  1. v139h New USPS shipping module not working for international orders
    By ts232 in forum Built-in Shipping and Payment Modules
    Replies: 6
    Last Post: 14 Feb 2014, 02:26 AM
  2. v150 How can I use the UPS shipping module only for my electronics products?
    By TheMortician4 in forum Addon Shipping Modules
    Replies: 0
    Last Post: 15 Apr 2012, 07:59 PM
  3. Replies: 1
    Last Post: 17 Aug 2010, 07:21 PM
  4. USPS shipping module: Estimates appear for US only, no int'l locations
    By shinyadornments in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 15 Feb 2008, 03:05 AM
  5. New products for month box on main page only?
    By wolf99 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 8 Dec 2006, 10:25 AM

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