Add to Cart Dealer Discount Pricing
I want to have a dealer pricing level triggered if a dealer session value is set by logging in through a dealer login page.
I am trying to alter the add to cart code.
if ( $_SESSION['SecurityAssist_dealerLevel'] > 0) {
$ATC_itemPrice = floatval("".$row_Recordset1['retailPrice']* $_SESSION['SecurityAssist_dealerLevel'] ."");
}
else {
$ATC_itemPrice = floatval("".$row_Recordset1['retailPrice'] ."");
}
I am getting the following errors when NOT logged in as a dealer.
Notice: Undefined index: SecurityAssist_dealerLevel in /home/hardkrom/public_html/motorcycle-exhaust.php on line 101
Warning: Cannot modify header information - headers already sent by (output started at /home/hardkrom/public_html/motorcycle-exhaust.php:101) in /home/hardkrom/public_html/motorcycle-exhaust.php on line 132
Any help appreciated,
Jack