This Function Has Been Available Since:
(AFCommerce v 2.1, Functions v 1.1)
Checks to see if a user is trying to access a product that has been deleted or never existed.
Description
afc_check_if_product_exists (pid)
This function adds some security to your online store by not allowing someone to add a product to their cart that does not exist. This would not be a large security threat, but this feature is there just in case someone figures out some way to add a negative value for a product that does not exist. This function is used by the addtocart.php script, and most likely will not be used for anything else in the future.
Parameters
pid (integer) - The product id that the customer is trying to add to their shopping basket.
Return Values
This function does not return a value. If the product does not exist, the entire script is halted to prevent hacking.
Open Source: NoPaul's Examples There are currently no examples for this function.
|
Back to Functions List
|