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.
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.
pid (integer) - The product id that the customer is trying to add to their shopping basket.
This function does not return a value. If the product does not exist, the entire script is halted to prevent hacking.
Open Source: No
There are currently no examples for this function.
Back to Functions List