Zen Cart Logo
Forums / Addon Shipping Modules / New shipping module for Schenker, only refreshes page

New shipping module for Schenker, only refreshes page

Locked

Views: 843

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
13 Oct 2010, 12:10 PM
#1
flopp avatar

flopp

New Zenner

Join Date:
Oct 2010
Posts:
6
Plugin Contributions:
0

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

18 Oct 2010, 5:48 PM
#2
flopp avatar

flopp

New Zenner

Join Date:
Oct 2010
Posts:
6
Plugin Contributions:
0

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 )

18 Oct 2010, 6:05 PM
#3
flopp avatar

flopp

New Zenner

Join Date:
Oct 2010
Posts:
6
Plugin Contributions:
0

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 :-/