Second, we have a fixed shipping cost per item and there is no field per item to contain it.

Comments

matt westgate’s picture

Component: product.module » shipping.module

This functionality could easily be added by extending the shippingapi and creating another module, let's call it 'item_shipping.module'.

function item_shipping_shippingapi(&$items, $op, $arg) {

  if (user_access("access content")) {

    switch ($op) {

      case "method select":
        /* module name => desc */
        return array("item_shipping" => t("Shipping costs are calculated per item."));
        break;

      case "calculate":
        /* This is just a stub. This callback happens when an user clicks 'checkout' */
        return item_shipping_calculate($items);
        break;
    }
  }
}

Lastly, using the nodeapi 'form pre' or 'form post' hook, you can add the per item shipping form field to the product page.

I'll probably build this at some point and time, but it's not a high priority for me right now.

sime’s picture

Status: Active » Closed (fixed)

housekeeping ->closed
if I'm not mistaken this is no longer applicable.