One item in an order and the item is shippable. The delivery address appears when the following item is switched off but disappears when the option is on.
Hide delivery information when carts have no shippable items.

We have a mixture of shippable and non shippable items. Most people will order one item and most of the items are non shippable. We do not want the delivery address appearing for non shippable orders.

I tested the following line without uc_cap_quotes_enabled because I could not find uc_cap_quotes_enabled. Did not fix the problem.
if (!variable_get('uc_cap_quotes_enabled', FALSE) || (variable_get('uc_cart_delivery_not_shippable', TRUE) && !uc_cart_is_shippable())) {

Comments

peterx’s picture

uc_roles is screwing up the results. There is a shippable indicator in uc_roles. We have one role for subscriptions and subscriptions can be included with shippable products. It is the product, not the role, determining shipping so I commented can_ship out of uc_roles.

longwave’s picture

Status: Active » Closed (duplicate)

Duplicate of #613498: uc_product_add_to_cart_data does not respect non-shippable attributes, see #46 onwards for a summary of the whole situation.