Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

Package/Ship Items Seperately?


  • You cannot reply to this topic
24 replies to this topic

#21 Jan Zonjee

  • Team Member
  • 7,001 posts
  • Real Name:Jan Zonjee
  • Gender:Male
  • Location:the Netherlands

Posted 29 December 2004, 19:49

Good move, now we have to figure out where we lose the package. We know three packages go into packProducts($productsArray) but we don't know if they get out.
Can you insert
 echo '</pre>'; 
print_r($boxesToShip); 
echo '</pre>';
in between
            $boxesToShip = $this->packProducts($productsArray);
and
    // Quote for the number of boxes
somewhere around line 198?

#22 txcrew

  • Community Member
  • 99 posts
  • Real Name:txcrew

Posted 30 December 2004, 00:02

Added the code, here are the results:


Array
(
    [0] => Array
        (
            [id] => 34
            [name] => Plenty Hungry Combo
            [model] => 
            [image] => 
            [price] => 149.5000
            [quantity] => 3
            [weight] => 25.00
            [length] => 16.00
            [width] => 9.00
            [height] => 14.00
            [ready_to_ship] => 1
            [final_price] => 149.5
            [tax_class_id] => 0
            [attributes] => 
        )

    [1] => Array
        (
            [id] => 34
            [name] => Plenty Hungry Combo
            [model] => 
            [image] => 
            [price] => 149.5000
            [quantity] => 3
            [weight] => 25.00
            [length] => 16.00
            [width] => 9.00
            [height] => 14.00
            [ready_to_ship] => 1
            [final_price] => 149.5
            [tax_class_id] => 0
            [attributes] => 
        )

    [2] => Array
        (
            [id] => 34
            [name] => Plenty Hungry Combo
            [model] => 
            [image] => 
            [price] => 149.5000
            [quantity] => 3
            [weight] => 25.00
            [length] => 16.00
            [width] => 9.00
            [height] => 14.00
            [ready_to_ship] => 1
            [final_price] => 149.5
            [tax_class_id] => 0
            [attributes] => 
        )

)


Array ( [0] => Array ( [length] => 16.00 [width] => 9.00 [height] => 14.00 [current_weight] => 25.00 ) [1] => Array ( [length] => 16.00 [width] => 9.00 [height] => 14.00 [current_weight] => 25.00 ) )

Looks like only 2 are getting out.

Edited by txcrew, 30 December 2004, 00:04.


#23 txcrew

  • Community Member
  • 99 posts
  • Real Name:txcrew

Posted 30 December 2004, 00:09

This was interesting, I reduced my cart to just one item and look at the results:
Array
(
    [0] => Array
        (
            [id] => 34
            [name] => Plenty Hungry Combo
            [model] => 
            [image] => 
            [price] => 149.5000
            [quantity] => 1
            [weight] => 25.00
            [length] => 16.00
            [width] => 9.00
            [height] => 14.00
            [ready_to_ship] => 1
            [final_price] => 149.5
            [tax_class_id] => 0
            [attributes] => 
        )

)


Array ( )


#24 txcrew

  • Community Member
  • 99 posts
  • Real Name:txcrew

Posted 30 December 2004, 01:00

Just ran some more tests and somthing very odd just happened...

I removed all of the code that you me put into upsxml.php, truncated the sessions table and now, for some reason, it works just how its supposed to. 5 food combos and 5 boxes. I checked the price against the ups site and its exactly right.

However, if I want to make a package 'ready to ship' I have to do that through phpmyadmin. It still somehow does not post to the database from the admin. As a temp workaround, I set all pakcages ready to ship by default in phpmyadmin.

Things are starting to work slowly and in strange ways ;)

#25 Jan Zonjee

  • Team Member
  • 7,001 posts
  • Real Name:Jan Zonjee
  • Gender:Male
  • Location:the Netherlands

Posted 30 December 2004, 09:23

Quote

I removed all of the code that you me put into upsxml.php, truncated the sessions table and now, for some reason, it works just how its supposed to. 5 food combos and 5 boxes.
I can't offer an explanation. The added code should only work on the things that come back from UPS after the packing and such has been done...
The fact that the code appears to lose the first package, but picks up the later ones.... :'(