4 replies [Last post]
nokinrecycler's picture
Offline
Joined: 05/13/2008
Juice: 10
Was this information Helpful?

Hi, I'm testing the ordering system, and have manually created an order for a customer. According to the documentation, there is supposed to be a link to to the "New Package" page.

The link is missing from that tab. I have the products in the order set as shippable, and am using a flat rate shipping cost. The order is marked as paid, and all address information is filled in.

Anyone have any idea why the link is missing from the packages page to create the package for shipment? I have attached a screenshot of the packages pane for reference.

PreviewAttachmentSize
pane.jpgpane.jpg21.03 KB
Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: Link missing to create packages

Just to make absolutely sure, the products in the uc_order_products table have s:9:"shippable";s:1:"1"; in their data column?

I expect you won't get any results, but try running this query directly in your database:

SELECT op.order_product_id, CAST(SUM(op.qty) / COUNT(pp.qty) AS UNSIGNED) AS total, SUM(pp.qty) AS packaged FROM uc_order_products AS op LEFT JOIN uc_packaged_products AS pp ON op.order_product_id = pp.order_product_id WHERE op.order_id = 4 AND op.data LIKE '%s:9:"shippable";s:1:"1"%' GROUP BY op.order_product_id HAVING SUM(pp.qty) IS NULL OR CAST(SUM(op.qty) / COUNT(pp.qty) AS UNSIGNED) > SUM(pp.qty)

Maybe it'll give some clue to what's wrong.

nokinrecycler's picture
Offline
Joined: 05/13/2008
Juice: 10
Re: Re: Link missing to create packages

Thanks for the reply Lyle. If I create an order as a customer, I am able to make a package. The data in the uc_order_products table shows up as:

a:3:{s:9:"shippable";s:1:"1";s:6:"module";s:10:"uc...

But if I create the order as an admin, the link is missing as stated before. The data in the column shows up as:

s:24:"a:1:{s:7:"contact";i:0;}";

Is this normal where I will not be able to create packages if I created the order as an admin?

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: Re: Re: Link missing to create packages

I've never seen "contact" in the product data before. It sounds like you've got a module that's got a bad hook_add_to_cart_data() that's screwing up all the other modules. But I'm not sure why it would only happen when the admin adds the product to the order.

I'm afraid I have to say I can't duplicate it.

lrobeson's picture
Offline
Joined: 02/17/2011
Juice: 11
Re: Link missing to create packages

Did you ever figure this out? I'm having the same problem. Customer orders are fine, but orders entered by an admin are unable to be packaged/shipped, there is no "create packages" link.