php shopping cart
free shopping cart   shopping cart software

Free Shopping Cart PHP Software

afc_check_if_product_exists

Back to Functions List
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: No

Paul's Examples


There are currently no examples for this function.



Back to Functions List




afc_check_if_product_exists

There are currently no posts for this topic.











AFCommerce Documentation


High End Website DevelopmentCompletely Free
Dating Service
Copyright 2004 - 2006
www.afcommerce.com
AFCommerce Website
And Cart Builder