TShoppingCartFoManage the front office shoppingcart
Located in /core/internal_components/front_sites/t_shoppingcart/t_shoppingcart_fo.class.php (line 60)
ObjectCached | --TShoppingCartFo
bool
addProduct
(integer $pm_id, &$ps_id, integer $quantity, [bool $is_from_full_shopping_cart = false], integer $ps_id)
bool
getDeliveryCosts
(float $p_price, string $p_cou_name, &$r_array_delivery_costs, array $r_array_delivery_costs)
bool
getDiscountTicketStructure
(string $p_pmo_title, string $p_discount_value, &$r_result, array $r_result)
bool
getForLittle
( &$r_infos, &$r_infos_for_floating_window, [integer $p_pm_id = 0], [integer $p_ps_id = 0], array $r_infos, array $r_infos_for_floating_window)
bool
getList
( &$r_array_products, &$r_total_price, &$r_total_price_without_discount, &$r_array_for_deliverycosts, array $r_array_products, float $r_total_price, float $r_total_price_without_discount, array $r_array_for_deliverycosts)
bool
updateToNewIfNecessary
(integer $p_pma_id, integer $p_psl_id, string $p_old_pma_title, float $p_old_psl_tax_included_price, string $p_old_psl_reference, float $p_old_psl_weight, float $p_old_tty_value, &$r_there_is_a_change_made, bool $r_there_is_a_change_made)
bool
xAdd
(integer $p_pma_id, &$p_psl_id, integer $p_quantity, &$r_product_modified, &$r_product_added, integer $p_psl_id, array $r_product_modified, array $r_product_added)
bool
xGetDeliveryCostsByCountryName
(string $p_type_value, float $p_price, string $p_cou_name, &$r_array_delivery_costs, array $r_array_delivery_costs)
bool
xGetDeliveryCostsByPrice
(float $p_price, &$r_array_delivery_costs, array $r_array_delivery_costs)
bool
xIsAlreadyInserted
(integer $p_psl_id, &$r_result_bool, [string $p_state = "ACTIVE&SAVED"], bool $r_result_bool)
bool
$m_already_a_product_added
= false (line 110)
A product is already added
DbConnexion
$m_object_dbconnexion
= null (line 67)
Database Connexion object
TSessionScopeFo
$m_object_sessionscope
= NULL (line 98)
TSessionScopeFo Object
TCustomerFo
$m_object_tcustomerfo
= NULL (line 104)
TCustomerFo Object
TProductMasterFo
$m_object_tproductmasterfo
= NULL (line 86)
TProductMasterFo Object
TProductSlaveFo
$m_object_tproductslavefo
= NULL (line 80)
TProductSlaveFo Object
TTvaTypeFo
$m_object_ttvatypefo
= NULL (line 92)
TTvaTypeFo Object
integer
$m_shopping_cart_time_to_life
= 8 (line 320)
Shopping cart time to life (in days) for saved shopping carts
string
$m_uid_prefix
= "sca_" (line 326)
Unique id prefix
string
$req_count
=
SQL Request : Count
string
$req_delete
= "delete from t_shoppingcart
SQL Request : Delete
string
$req_delete_by_sca_id
= "delete from t_shoppingcart where sca_id = '%s';" (line 256)
SQL Request : Delete by shopping cart id
string
$req_delete_one
= "delete from t_shoppingcart
SQL Request : Delete one
string
$req_exist
= "select sca_psl_id from t_shoppingcart
SQL Request : Exist
string
$req_exist_shoppingcart
= "select sca_psl_id from t_shoppingcart
SQL Request : Exist shoppingcart
string
$req_exist_twostate
= "select sca_psl_id from t_shoppingcart
SQL Request : Exist two states
string
$req_insert
= "insert into t_shoppingcart(sca_id, sca_psl_id, sca_pma_title
SQL Request : Insert
string
$req_select
= "SELECT
SQL Request : Select
string
$req_select_delivery_weight
= "" (line 249)
SQL Request : Select delivery weight
string
$req_select_for_clean
= "select distinct sca_id from t_shoppingcart
SQL Request : Select for clean
string
$req_select_little
= "select
SQL Request : Select little
string
$req_select_quantity
= "select sca_quantity
SQL Request : Select Quantity
string
$req_update
= "update t_shoppingcart
SQL Request : Update
string
$req_update_ses_id
= "update t_shoppingcart set sca_ses_id = '%s' where sca_id = '%s' and sca_state = 'SAVED';" (line 232)
SQL Request : Update session id
string
$req_update_state_to_active
= "update t_shoppingcart
SQL Request : Update state to active
string
$req_update_state_to_lost
= "update t_shoppingcart set sca_state = 'LOST' where sca_id = '%s' and sca_state in ('ACTIVE','SAVED');" (line 225)
SQL Request : Update state to lost
string
$req_update_state_to_saved
= "update t_shoppingcart
SQL Request : Update state to saved
string
$req_update_state_to_valid
= "update t_shoppingcart
SQL Request : Update state to valid
string
$req_update_state_to_valid_or_saved
= "update t_shoppingcart
SQL Request : Update state to valid or save
string
$req_update_to_new_value
= "update t_shoppingcart
SQL Request : Update to new value
Inherited from ObjectCached
ObjectCached::$m_array_already_loader
Constructor, init the requests and objects
Add a product
delete for customer delete
Test if exist
Retrieve number of item in shopping cart
Will determinate delivery cost()
Return a shopping cart entry with a ticket discount
Get for litlle shoppingcart
Get list
Get saved country
Parameter Integrity checker
Re new : Update a shopping cart with new prices
cette fonction permet de remettre au gout du jour un panier les nouveaux prix et autres
Set cookie to preferred country
Time to live in day for the saved shopping cart
Set current shopping cart to valid state
Update to new if necessary
Add a product (becarefull, a quantity to 0 delete the product)
Determinate delivery cost by country name and weight
Determine delivery cost according to price
get quantity
Insert
Is already inserted
Shopping cart exist
Update
Inherited From ObjectCached
ObjectCached::xClearRemember()
ObjectCached::xClearRememberAll()
ObjectCached::xIsRemembered()
ObjectCached::xRemember()
Documentation generated on Tue, 25 Mar 2008 15:37:23 +0100 by phpDocumentor 1.3.2