//error_reporting(E_ALL);
//ini_set('display_errors', 1);
include_once(getenv('BASE_DIR')."include/bootstrap/fbafront.php");
$webpagetitle="House Plan Books | Frank Betz Associates";
$keywords="House Plan Books";
$metadescription="Frank Betz Associates home plan books exhibit our best selling plans, along with both new and classic designs. View the large variety of plans we offer!";
//
require(Config::read('front.fba_path') . "/inc/header.php");
//$aCart = new Cart;
//$aPlan = new Plan;
$aProduct = new Product;
?>
House Plan Books
These plan books exhibit new plans, best selling house plans, classic designs and provide an excellent means to see the large variety of house plans we have to offer.
foreach($aProduct->getProducts("2") as $row) {
$product_id = $row->product_id;
$product_type_id = $row->product_type_id;
$product_description = $row->product_description;
$product_text = $row->product_text;
$product_image_thumbnail = $row->product_image_thumbnail;
$product_image_full = $row->product_image_full;
$product_pricing_group_price = $row->product_pricing_group_price;
$product_electronic = $row->product_electronic;
$product_url = $row->product_url;
if ($product_pricing_group_price == "0.00" || $product_pricing_group_price == 0) {
$product_pricing_group_price = "FREE";
$product_price = '0.00';
} else { $product_pricing_group_price = '$' . number_format($product_pricing_group_price,2);
$product_price = number_format(substr($product_pricing_group_price,1),2);
}
if ((@$product_electronic == 'Y') && (@$product_url)) {
$button_text = 'Get it Free';
$button_js = 'class="button small cart-button add_product_to_cart2 js-nav-to" data-href="' . htmlspecialchars($product_url, ENT_QUOTES) . '"';
} else {
$button_text = 'Add to Cart';
$button_js = 'class="button small cart-button add_product_to_cart"';
}
//probably should add another field to handle this logic, but it might work like this... check for a url - if there is one, display a learn more link to the url... issue is with the free electronic products that may also have a learn more need
if (@$product_url) {
$learn_more = '';
} else {
$learn_more = '';
}
echo '