evoShop.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.

    evoShop.shipping(function(){
      return 10;
    });
    
    evoShop.shipping(); // 10