simpleCart(js)

items
Items:
Total:

simpleCart.shipping( [shipping_function] );

arguments:

  • shipping_function (optional): custom shipping function that will be used to calculate shipping for the cart

returns:

  • If no function argument is provided, the cost of shipping for the cart will be returned.

View the full shipping documentation for more information.

simpleCart.shipping(function(){
  return 10;
});

simpleCart.shipping(); // 10

Comments

  1. There are no comments for this entry yet.
Commenting is not available in this channel entry.