EDD_Cart::set_item_quantity( int $download_id, int $quantity = 1, array $options = array() )

Set the quantity of an item in the cart.


Description Description


Parameters Parameters

$download_id

(Required) Download ID of the item

$quantity

(Optional) Updated quantity of the item

Default value: 1

$options

(Optional)

Default value: array()


Top ↑

Return Return

(array) $contents Updated cart object.


Top ↑

Source Source

File: includes/cart/class-edd-cart.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.7 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.