Collections functions
General functions
Render functions
Theme permission functions
Resource functions

purchase_set_size()

Parameters

ColumnTypeDefaultDescription
$collection
$resource
$size
$price

Location

include/resource_functions.php lines 7619 to 7624

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 5th October 2022 03:35 Europe/London time based on the source file dated 30th September 2022 14:20 Europe/London time.