Closed (duplicate)
Project:
Ubercart
Version:
7.x-3.x-dev
Component:
Shipping
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Nov 2011 at 05:33 UTC
Updated:
25 Nov 2011 at 13:23 UTC
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
Comment #1
peterx commenteduc_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.
Comment #2
longwaveDuplicate of #613498: uc_product_add_to_cart_data does not respect non-shippable attributes, see #46 onwards for a summary of the whole situation.