
Originally Posted by
DrByte
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.

Originally Posted by
DrByte
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
Bookmarks