Collections functions
General functions
Render functions
Theme permission functions
User functions
Resource functions

purchase_set_size()

Parameters

ColumnTypeDefaultDescription
$collection
$resource
$size
$price

Location

include/resource_functions.php lines 8104 to 8109

Definition

 
function purchase_set_size($collection,$resource,$size,$price)
    {
    
// Set the selected size for an item in a collection. This is used later on when the items are downloaded.
    
ps_query("update collection_resource set purchase_size=?,purchase_price=? where collection=? and resource=?", array("s",$size,"d",$price,"i",$collection,"i",$resource));
    return 
true;
    }

This article was last updated 2nd December 2023 08:35 Europe/London time based on the source file dated 30th November 2023 17:05 Europe/London time.