The chosen product was deleted from the Shopping Cart!"; } else { } if ( $delete_all ) { if ( session_is_registered ( "products" ) ) { session_unregister("products"); unset ( $products ); } $message = "All products were deleted from the Shopping Cart!"; } if (session_is_registered( "products" ) ) { $message = "This is the content of all items in your Shopping Cart!"; } else { $message = "Your Shopping Cart is empty!. You must click the add to cart button on the selected products page to store items in the shopping cart and then you may purchase."; } if ( $delete_all ) { if ( isset ( $products ) ) { session_unset(); session_destroy(); } $message = "All product(s) were deleted from the shopping cart!"; } if ( $delete_products ) { $message = "The chosen product(s) was deleted from the shopping cart!"; while ( list ( ,$val_delete ) = each ( $delete_products ) ) { if ( isset ( $products ) ) { unset ( $products[$val_delete] ); } } if ( empty ($products) ) { session_unregister("products"); unset ( $products ); } } elseif ( $delete && !$delete_products ) { $message = "No products(s) were selected to be deleted from the shopping cart!"; } else { } if ( isset ( $products ) ) { $product_price_total; $product_items_total; $subtotal = 0; foreach ( $products as $key => $val ) { $fin_val = explode("|", $val); $item_id = $fin_val[0]; $products_to_buy.= $item_id; $products_to_buy.= "|"; $item_title = $fin_val[1]; $products_to_buy.= $item_title; $products_to_buy.= "|"; $item_price = $fin_val[2]; $products_to_buy.= $item_price; $products_to_buy.= "|"; $item_size = $fin_val[3]; $products_to_buy.= $item_size; $products_to_buy.= "|"; $item_code = $fin_val[4]; $products_to_buy.= $item_code; $products_to_buy.= "|"; $item_qty = $fin_val[5]; $products_to_buy.= $item_qty; $products_to_buy.= "|"; $item_weight = $fin_val[6]; $products_to_buy.= $item_weight; //print $item_weight; $products_to_buy.= "|"; $products_total_price = $item_price * $item_qty; $products_to_buy.= $products_total_price; $products_to_buy.= "#"; $item_weight1 = $item_weight * $item_qty; $total_products_weight = $total_products_weight + $item_weight1; //print $total_products_weight; $item_price1 = $item_price * $item_qty; $total_products_price = $total_products_price + $item_price1; $total_product_items = $total_product_items + $item_qty; //$product_price_each_in_currency_formated = sprintf( "%.2f", $product_price_each_in_currency ); $get_itemid = "SELECT bulk FROM products WHERE prodid = '$item_id'"; $get_itemid_res = mysql_query($get_itemid) or die (mysql_error()); $bulk_item = mysql_result($get_itemid_res,0,'bulk'); if ($bulk_item == Yes && $shipping_weight >= $total_products_weight) { $shipping_cost = 4.99; } elseif ($bulk_item == Yes && $shipping_weight < $total_products_weight) { $shipping_cost = 4.99 + (($total_products_weight - $shipping_weight) * 0.20); } $product_price1 = sprintf( "%.2f", $item_price1 ); //new cart layout///////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////////// $html_data1.= $product_price_each_in_currency_formated; $html_data1.= $product_price_quantity_in_currency_formated; //$html_data.= "
"; } $html_data1.= "The total number of items : "; $html_data1.= "$total_product_items"; $html_data1.= "
"; $html_data1.= "The total cost of all your products : "; $html_data1.= "£ "; $total_products_price = sprintf( "%.2f", $total_products_price ); $html_data1.= "$total_products_price
"; $grand_total = $shipping_cost + $total_products_price; $html_cart_data ="$total_product_items items : £$grand_total
"; $html_cart_data .="View Shopping Cart"; } else { $html_cart_data.= " "; } ///////////////////////////////////////////////shoppingcart items ?> Wildbird Food, Feeders, Nest Boxes and Tables
Kershaws - Wildbird Food
Wildbird Products Wildbird Products
Links to Kershaws Wildbird Products Links to Kershaws Wildbird Products Links to Kershaws Wildbird Products Links to Kershaws Wildbird Products Links to Kershaws Wildbied Products
In Your Garden

This section of the website is coming soon!

 

FORUM
NEWS
LINKS
Links to Top of page
About Us | Special Offers | New Products | In Your Garden | Contact Us | Terms and Conditions