Exchange/it exchange update cart product quantity

From IThemes Codex
Revision as of 09:52, June 13, 2013 by Gaarai (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Description

Updates the quantity for a specific cart item

History

Since 0.4.0

Parameters

<?php it_exchange_update_cart_product_quantity( $cart_product_id, $quantity, $add_to_existing=true ); ?>
  • int $cart_product_id the product ID prepended to the itemized hash by a hyphen
  • int $quantity the incoming quantity
  • boolean $add_to_existing if set to false, it replaces the existing.

Returns

void

Personal tools
Namespaces
Variants
Actions
iThemes Codex
Codex Navigation
Toolbox