> 'checkout' || (response_filepath) >> 'account') && (server_port) == 80; redirect_url: 'https://www.flobeds.com' + (response_filepath); /if; If: !(Var_Defined: 'BypassHeader'); Include: '/admin/allowed-ips.inc'; If: !(Var_Defined: 'DontIncludeCookie'); Include: '/cookie.inc'; /If; If: (Action_Param: 'FromFriend'); Var: 'CSSToUse' = (Array: 'compare' ); /If; // If a customer sends a compare page to a friend and that friend // clicks the link, we don't want to limit the body width to 750 pixels If: (Action_Param: 'FromFriend'); Var: 'BodyWidth' = '99%'; Else; Var: 'BodyWidth' = '750px'; /If; if: (cookie: 'ref') == ''; if: (referrer_url) >> 'flobeds.com'; else; cookie_set: 'ref' = (Referrer_URL), -expires = '1296000', -path = '/'; /if; /if; if: (referrer_url) >> 'google' || (action_param: 'id') != ''; // This page Tracks Refferers from Google // Click for ads are tracked on the individual .lasso pages (latex.lasso etc) if: (referrer_url) >> 'id=google'; // If the referrer contains id=google then they did come from google the page before else; // At this point they came from google. We want to count regular hits different // from banner and adword clicks: if: (form_param: 'id') == ''; var_set: 'SearchDBID' = 'google000'; // No ID regular search else; var_set: 'SearchDBID' = 'google0000'; // ID Came from a banner page /if; //Look the record up in the Affiliates table and update the count. inline: -password = 'webSecFlobeds', -username = 'flobeds', -database = 'flobeds', -table = 'Affiliate', -op = 'eq', 'IDent' = (var: 'SearchDBID'), -search; // error_currenterror; records; inline: -password = 'webSecFlobeds', -username = 'flobeds', -database = 'flobeds', -table = 'Affiliate', -KeyField = 'id', -KeyValue = (column: 'id'), 'Hits' = (math_add: (field: 'hits'), '1'), 'home'= (math_add: (field: 'home'), '1'), -update; // error_currenterror; /inline; /records; /inline; /if; /if; if: (action_param: 'id') != '' || (action_param: 'aff') != ''; if: (form_param: 'aff') != ''; var_set: 'SearchDBID' = (action_param: 'aff'); else; var_set: 'SearchDBID' = (action_param: 'id'); /if; inline: -password = 'webSecFlobeds', -username = 'flobeds', -database = 'flobeds', -table = 'Affiliate', -op = 'eq', 'IDent' = (var: 'SearchDBID'), -search; // error_currenterror; records; inline: -password = 'webSecFlobeds', -username = 'flobeds', -database = 'flobeds', -table = 'Affiliate', -KeyField = 'id', -KeyValue = (column: 'id'), 'Hits' = (math_add: (field: 'hits'), '1'), 'home'= (math_add: (field: 'home'), '1'), -update; // error_currenterror; /inline; /records; /inline; /if; if: (referrer_url) >> 'google' || (form_param: 'id') != ''; var_set: 'refer_begins' = (string_extract: (referrer_url), -startposition = '1', -endposition = '22'); var_set: 'refer_begins2' = (string_extract: (referrer_url), -startposition = '1', -endposition = '18'); if: (var: 'refer_begins') != 'http://www.flobeds.com' && (var: 'refer_begins2') != 'http://flobeds.com' && (referrer_url) != ''; // Don't track internal referal var_set: 'DateStamp' = (date_format: (date_getcurrentdate), -dateformat = '%Y-%m-%d %H:%M:%S'); // Store IP, Referrer, and Affiliate with a Date Time Stamp for Detail processing // For all hits that have an id or came from google inline: -password = 'webSecFlobeds', -username = 'flobeds', -database = 'flobeds', -table = 'IncomingTrack', 'clientip' = (client_ip), 'referrer_url' = (referrer_url), 'affiliate' = (form_param: 'id'), 'dateStamp' = (var: 'DateStamp'), 'path' = (response_filepath), -add; /inline; /if; /if; if: (var: 'type') == ''; var_set: 'typeforlink' = (cookie: 'type'); else; var_set: 'typeforlink' = (var: 'type'); /if; if: ((action_param: 'id') != '' || (action_param: 'aff') != '') && !((referrer_url) >> 'flobeds.com'); cookie_set: 'aff-id' = ((cookie: 'aff-id') + '|' + (var: 'SearchDBId')), -expires = '129600', -path = '/'; /if; Include: '/links.inc'; If: (Var: 'AuthorizedIP') == 'True'; If: (Cookie: 'Debug'); Var: 'Debug' = 'On'; Else; Var: 'Debug' = 'Off'; /If; /If; ?> [If: (Var_Defined: 'Title')][$Title] - [Else][Var: 'Title' = (String)][/If]FloBeds.com [If: (Var: 'AuthorizedIP') == 'True'] [/If][If: (Var_Defined: 'CSSToUse')][Iterate: $CSSToUse, (Var: 'CurrentCSSFile')][If: (Var: 'CurrentCSSFile') >> 'iefix' || (Var: 'CurrentCSSFile') >> 'ie6fix'] [If: (Var: 'CurrentCSSFile') >> 'iefix' && Client_Type >> 'MSIE'][Else: (Var: 'CurrentCSSFile') >> 'ie6fix' && Client_Type >> 'MSIE 6'][/If][Else] [/If][/Iterate][/If][If: (Var_Defined: 'IncludeProductPageCSS')] [/If] [If: (Var_Defined: 'JavaScriptsToUse')][Iterate: $JavaScriptsToUse, (Var: 'CurrentJavaScript')][If: !((Client_Type) >> 'Opera' && $CurrentJavaScript == 'cmxform')] [If: $CurrentJavaScript == 'highslide-html'] [/If][/If][/Iterate][/If] [If: (Var_Defined: 'IncludeSubmitProductJavaScript')] [/If][If: (Var_Defined: 'IncludeExchangeCoresJavaScript')] [/If][If: $Title == 'Shopping Cart' || $Title == 'Exchange Cores'] [/If][If: $Title == 'Shopping Cart' || $Title == 'Saved Carts' || $Title == 'Manage Addresses' || $Title == 'Manage Credit Cards'] [/If][If: (Var_Defined: 'IncludeOnlyOneSideNameJS')] [/If][If: (Var_Defined: 'IncludeCompareJavaScript')] [/If][If: (Var_Defined: 'SmallImageOfBed') || $Title == 'Review Your Order'] [/If] [If: (Var: 'AuthorizedIP') == 'True'] [Include: '/admin/header-links.inc']
Turn [If: $Debug == 'On']off[Else]on[/If] debug[If: (Cookie: 'SignedIn')] [If: (Var_Defined: 'CustomerEmailAddress')]You are currently signed in under the e-mail address of [$CustomerEmailAddress][Else]This customer has no e-mail address associated with their account[/If] (customer ID: [$FlobedsCustomer]).[/If]
  Sign in using customer ID:
  View order #:
[/If]

FloBeds

[If: (Var_Defined: 'SmallImageOfBed')](Split: '|'); $SQL = $SQL + ' OR ID = \'' + $FoundationSplit->(Join: '\' OR ID = \'') + '\''; //$sql = $sql + 'or id like \'' + (string_extract: -startposition = 1, -endposition = 4, (action_param: 'foundation')) + '%\''; /If; If: (Action_Param: 'Support'); Var: 'SupportSplit' = (Action_Param: 'Support')->(Split: '|'); $SQL = $SQL + ' OR ID = \'' + $SupportSplit->(Join: '\' OR ID = \'') + '\''; //$sql = $sql + 'or id like \'' + (string_extract: -startposition = 1, -endposition = 4, (action_param: 'Support')) + '%\''; /If; If: (Var_Defined: 'Linens'); Var: 'HeaderLinens' = (Decode_Base64: $Linens); $HeaderLinens->(Unserialize: $HeaderLinens); if: $HeaderLinens->(size); iterate: $HeaderLinens, (var: 'CurrentLinens'); $sql = $sql + ' OR ID = \'' + ($CurrentLinens->(First)) + '\''; /iterate; /if; Else; Var: 'HeaderLinens' = (Map); /If; $SQL = $SQL + ' GROUP BY ProductID ORDER BY Position'; inline: -database = 'flobeds', -Username = 'flobeds', -Password = 'webSecFlobeds', -sql = $sql; var: 'InBasket' = (map); records; $InBasket->(insert: (field: 'productid') = 1); /records; /inline; /If; ?>[If: (Var: 'Size') !>> 'Twin']
Your bed
[If: (Var_Defined: 'Side1Name')]

[$Side1Name]

[/If][If: (Var_Defined: 'Side2Name') && !(Action_Param: 'OnlyOneSideName')]

[$Side2Name]

[/If]
Close
Your bed [If: (Var_Defined: 'Side1Name')]

[$Side1Name]

[/If][If: (Var_Defined: 'Side2Name')]

[$Side2Name]

[/If] Your Bed:
    (split: ','); var: 'PriceField' = 'Price'; if: (field: 'price2') != 0 && (field: 'price2') != (field: 'price'); $PriceField = 'Price2'; /if; If: (Var_Defined: 'InBasket'); iterate: $CurrentOtherItems, (var: 'CurrentItem'); if: $InBasket->(find: $CurrentItem); $PriceField = 'Price3'; /if; /iterate; /If; '
  • '; if: (field: 'category') >> 'mattress'; field: 'Size'; ' '; /if; if: (field: 'category') >> 'sheets'; 'Insert quantity here'; /if; (field: 'name') + '
    '; if: $PriceField == 'price2'; '' + (money: (field: $PriceField)) + ' On Sale'; else; (money: (field: $PriceField)); /if; '
  • '; $total = (math_add: $total, (field: $PriceField)); /records; '
  • Total
    ' + (money: $total) + '
  • '; '
'; /inline; ?>
[/If][/If]
BlogOur Blog Sheep Liberated from Serta/Furniture Mart

revolutionary sleeprevolutionary sleepSave up to $718! (and sleep your way to better health;).
As you build your dream bed, you will be offered a "free foundation"... take it!
(Because everybody knows it all starts with a good foundation.)

And get a free Twice Fluffed pillow to finish revolutionizing your sleep and dreams.

[/if]
Thank you... remember, "your dreams may vary."'; /If; Define_AtEnd: { if: !(var_defined: 'FooterShown'); $__html_reply__ += (include: '/footer.inc'); /if; } ?> [/if]