Exchange/it exchange add product to shopping cart

From IThemes Codex
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