{"id":2574,"date":"2025-03-06T07:17:08","date_gmt":"2025-03-06T07:17:08","guid":{"rendered":"https:\/\/avenirenergy.ca\/wordpress\/?page_id=2574"},"modified":"2026-01-22T21:34:36","modified_gmt":"2026-01-22T21:34:36","slug":"contact-avenir-energy-request-a-quote","status":"publish","type":"page","link":"https:\/\/avenirenergy.ca\/fr\/contact-avenir-energy-request-a-quote\/","title":{"rendered":"Demander un devis"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"2574\" class=\"elementor elementor-2574\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-8611397 e-flex e-con-boxed e-con e-parent\" data-id=\"8611397\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t<div class=\"elementor-element elementor-element-1d03a55e e-con-full e-flex e-con e-child\" data-id=\"1d03a55e\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-33a3328e elementor-widget elementor-widget-heading\" data-id=\"33a3328e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h1 class=\"elementor-heading-title elementor-size-default\">Request a Quote<\/h1>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-27b60697 e-flex e-con-boxed e-con e-parent\" data-id=\"27b60697\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t<div class=\"elementor-element elementor-element-325dad8e e-con-full e-flex e-con e-child\" data-id=\"325dad8e\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-a04ca44 elementor-widget elementor-widget-text-editor\" data-id=\"a04ca44\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t\t\t\t\t\t<p>Choose Avenir Energy as your trusted local propane supplier and let our knowledgeable team guide you through the best option for your home\u2019s propane needs. Whether you currently use propane or are looking to convert to propane, we can provide the right cost-effective solution for you!<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-1a13ae0 elementor-widget elementor-widget-text-editor\" data-id=\"1a13ae0\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t\t\t\t\t\t<p>All fields are required.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-75156a9 e-con-full e-flex e-con e-child\" data-id=\"75156a9\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-16aaf5a elementor-widget elementor-widget-html\" data-id=\"16aaf5a\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t\t<form action=\"https:\/\/avenirenergy.work\/external_tickets\/save\" role=\"form\" method=\"post\" accept-charset=\"utf-8\" id=\"external-ticket-form\">\n\n    <input type=\"hidden\" name=\"is_embedded_form\" value=\"1\" \/>\n    <input type=\"hidden\" name=\"redirect_to\" value=\"https:\/\/www.avenirenergy.ca\/avenir-energy-thank-you-ont\" \/>\n\n        <input type=\"hidden\" name=\"assigned_to\" id=\"assigned_to\" value=\"\" data-default-value=\"\" \/>\n<input type=\"hidden\" name=\"custom_field_485\" \/>\n<input type=\"hidden\" name=\"custom_field_489\" \/>\n    \n    <input type=\"text\" name=\"first_name\" id=\"first_name\" placeholder=\"First name\" required=\"required\" \/>\n\n    <input type=\"text\" name=\"last_name\" id=\"last_name\" placeholder=\"Last name\" required=\"required\" \/>\n\n    <input type=\"text\" name=\"company_name\" id=\"company_name\" placeholder=\"Company name\" \/>\n\n    <input type=\"email\" name=\"email\" id=\"email\" placeholder=\"Email\" autocomplete=\"off\" required=\"required\" \/>\n\n    <input type=\"text\" name=\"address\" id=\"address\" placeholder=\"Address\" autocomplete=\"off\" required=\"required\" \/>\n\n    <input type=\"text\" name=\"city\" id=\"city\" placeholder=\"City\" required=\"required\" \/>\n\n    <select name=\"state\" id=\"state\" required=\"required\">\n        <option value=\"\">- Select Province -<\/option>\n        <option value=\"Alberta\">Alberta<\/option>   <option value=\"New Brunswick\">New Brunswick<\/option>\n        <option value=\"Nova Scotia\">Nova Scotia<\/option>\n        <option value=\"Prince Edward Island\">Prince Edward Island<\/option>\n        <option value=\"Quebec\">Quebec<\/option>\n        <option value=\"Ontario\">Ontario<\/option>\n        <option value=\"Manitoba\">Manitoba<\/option>\n        <option value=\"Northwest Territories\">Northwest Territories<\/option>\n          <option value=\"Saskatchewan\">Saskatchewan<\/option>\n        <option value=\"British Columbia\">British Columbia<\/option>\n    <\/select>\n\n    <input type=\"text\" name=\"zip\" id=\"zip\" placeholder=\"Postal Code\" required=\"required\" \/>\n\n    <input type=\"hidden\" select name=\"lead_source_id\" id=\"lead_source_id\" required=\"required\">\n        \n\n    <input type=\"tel\" name=\"phone\" id=\"phone\" placeholder=\"Phone\" minlength=\"10\" required=\"required\" \/>\n\n  \n\n            <input type=\"hidden\" name=\"ticket_type_id\" value=\"7\" \/>\n    \n                    <select name=\"custom_field_291\" id=\"custom_field_291\">\n                    <option value=\"\">Type of Service<\/option>\n                                            <option value=\"Delivery Quote\">Delivery Quote<\/option>\n                                            <option value=\"Equipment Quote\">Equipment Quote<\/option>\n                                            <option value=\"Delivery &amp; Equipment\">Delivery &amp; Equipment<\/option>\n                                            <option value=\"Other\">Other<\/option>\n                                    <\/select>\n                \n    <textarea name=\"description\" id=\"description\" placeholder=\"Additional Details (Please tell us more about your propane requirements)\" required=\"required\"><\/textarea>\n\n    <button type=\"submit\">Submit<\/button>\n\n<\/form>\n\n<script type=\"text\/javascript\">\n(function () {\n        var form = document.getElementById('external-ticket-form');\n    var submitButton = form ? form.querySelector('button[type=\"submit\"]') : null;\n    var stateField = document.getElementById('state');\n    var cityField = document.getElementById('city');\n    var leadSourceField = document.getElementById('lead_source_id');\n    var assignedField = document.getElementById('assigned_to');\n\n    var defaultAssignee = assignedField ? (assignedField.getAttribute('data-default-value') || assignedField.value || '') : '';\n\n    var ownerMap = {\n        '2': '254',\n        '3': '253',\n        '4': '251',\n        '5': '3827',\n        '6': '1014'\n    };\n\n    var sourceMap = {\n        'Alberta': '3',\n        'New Brunswick': '4',\n        'Nova Scotia': '4',\n        'Prince Edward Island': '4',\n        'Quebec': '5',\n        'Ontario': '6',\n        'Manitoba': '3',\n         'Saskatchewan': '3',\n        'Northwest Territories': '3',\n        'British Columbia': '3'\n    };\n\n    var bcCitiesKeywords = [\n        'vancouver', 'burnaby', 'richmond', 'surrey', 'delta', 'new westminster',\n        'langley', 'white rock', 'maple ridge', 'pitt meadows', 'coquitlam',\n        'port coquitlam', 'port moody', 'north vancouver', 'west vancouver',\n        'belcarra', 'anmore', 'bowen island', 'lions bay',\n        'abbotsford', 'chilliwack', 'mission', 'kent', 'agassiz',\n        'harrison hot springs', 'hope',\n        'sechelt', 'gibsons',\n        'victoria', 'saanich', 'oak bay', 'esquimalt', 'view royal', 'colwood',\n        'langford', 'metchosin', 'highlands', 'sooke', 'central saanich', 'north saanich',\n        'sidney', 'duncan', 'north cowichan', 'lake cowichan', 'ladysmith', 'nanaimo',\n        'lantzville', 'parksville', 'qualicum beach', 'port alberni', 'tofino',\n        'ucluelet', 'courtenay', 'comox', 'cumberland', 'campbell river', 'gold river',\n        'tahsis', 'zeballos', 'port hardy', 'port mcneill', 'port alice', 'alert bay'\n    ];\n\n    function applyOwner(leadSourceId) {\n        if (!assignedField) {\n            return;\n        }\n\n        var leadSourceKey = leadSourceId ? String(leadSourceId) : '';\n\n        if (ownerMap.hasOwnProperty(leadSourceKey) && ownerMap[leadSourceKey]) {\n            assignedField.value = ownerMap[leadSourceKey];\n        } else {\n            assignedField.value = defaultAssignee;\n        }\n    }\n\n    function updateLeadSourceFromLocation() {\n        if (!leadSourceField || !stateField) {\n            return;\n        }\n\n        var provinceVal = stateField.value;\n\n        if (!provinceVal) {\n            leadSourceField.value = '';\n            applyOwner('');\n            return;\n        }\n\n        var leadSource = sourceMap.hasOwnProperty(provinceVal) ? String(sourceMap[provinceVal]) : '';\n\n        if (provinceVal === 'British Columbia') {\n            var cityVal = cityField ? cityField.value.trim().toLowerCase() : '';\n            for (var i = 0; i < bcCitiesKeywords.length; i++) {\n                if (cityVal.indexOf(bcCitiesKeywords[i]) !== -1) {\n                    leadSource = '2';\n                    break;\n                }\n            }\n        }\n\n        leadSourceField.value = leadSource;\n        applyOwner(leadSource);\n    }\n\n    if (stateField) {\n        stateField.addEventListener('change', updateLeadSourceFromLocation);\n    }\n\n    if (cityField) {\n        cityField.addEventListener('change', updateLeadSourceFromLocation);\n        cityField.addEventListener('keyup', updateLeadSourceFromLocation);\n    }\n\n    if (leadSourceField) {\n        leadSourceField.addEventListener('change', function () {\n            applyOwner(leadSourceField.value);\n        });\n    }\n\n    updateLeadSourceFromLocation();\n    if (leadSourceField) {\n        applyOwner(leadSourceField.value);\n    }\n     if (form) {\n        var isSubmitting = false;\n\n        form.addEventListener('submit', function (event) {\n            if (isSubmitting) {\n                event.preventDefault();\n                return;\n            }\n\n            isSubmitting = true;\n\n            if (submitButton) {\n                submitButton.disabled = true;\n            }\n        });\n    }\n})();\n<\/script>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Request a Quote Choose Avenir Energy as your trusted local propane supplier and let our knowledgeable team guide you through&#8230;<\/p>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"slim_seo":{"facebook_image":"https:\/\/avenirenergy.ca\/wp-content\/uploads\/2025\/09\/avi.jpg","twitter_image":"https:\/\/avenirenergy.ca\/wp-content\/uploads\/2025\/09\/avi.jpg","title":"Request a Quote - Avenir Energy","description":"Request a Quote Choose Avenir Energy as your trusted local propane supplier and let our knowledgeable team guide you through the best option for your home\u2019s pro"},"footnotes":""},"class_list":["post-2574","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/avenirenergy.ca\/fr\/wp-json\/wp\/v2\/pages\/2574","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/avenirenergy.ca\/fr\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/avenirenergy.ca\/fr\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/avenirenergy.ca\/fr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/avenirenergy.ca\/fr\/wp-json\/wp\/v2\/comments?post=2574"}],"version-history":[{"count":6,"href":"https:\/\/avenirenergy.ca\/fr\/wp-json\/wp\/v2\/pages\/2574\/revisions"}],"predecessor-version":[{"id":4741,"href":"https:\/\/avenirenergy.ca\/fr\/wp-json\/wp\/v2\/pages\/2574\/revisions\/4741"}],"wp:attachment":[{"href":"https:\/\/avenirenergy.ca\/fr\/wp-json\/wp\/v2\/media?parent=2574"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}