Exchange/it exchange add product to shopping cart

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

Adds a product to the shopping cart based on the product_id


return boolean

History

Since 0.3.7

Parameters

<?php it_exchange_add_product_to_shopping_cart( $product_id, $quantity=1 ); ?>
  • string $product_id a valid wp post id with an iThemes Exchange product post_typp
  • int $quantity (optional) how many?

Returns

Personal tools
Namespaces
Variants
Actions
iThemes Codex
Codex Navigation
Toolbox