{% set path_parts = current_path.strip('/').split('/') %} {% set location = site.locations[0] %} {% if path_parts|length == 1 %}

Products

    {% set list1 = site.custom_fields['product_skus'].split(', ') %} {%- for product in updated_product -%} {% if product['sku_slug'] in list1 %}
    • {{ product['ModelNumber']|safe }}
    • {{ product['Name']|safe }}
    • Model #{{ product['ModelNumber']|safe }}{% if site.custom_fields['do_you_want_to_hide_the_msrp_of_the_generac_products_on_your_site'] == 'Yes' %}Contact us for pricing{% else %}Starting At${{ product['MSRP']|safe }}MSRP{% endif %}
    • View Details
  • {% endif %} {% endfor %}
{% elif path_parts|length == 2 %} {% set grouped_category_mapping = { 'transfer-switches': ['automatic-transfer-switches', 'homelink-manual-transfer-switches_1', 'manual-transfer-switches-portable_1', 'g0063'], 'portable-generators': ['portable'], 'water-pumps': ['water-trash-pumps_1', 'pumps_2'], 'generac-chore': ['pressure-washers'], 'home-standby-generators': ['home-standby-generators', 'gaseous-generators', 'diesel-generators'], 'business-standby': ['home-standby-generators', 'gaseous-generators', 'diesel-generators'] } %} {% set category = path_parts[1] %} {% set valid_subcategories = grouped_category_mapping[category] if category in grouped_category_mapping else [] %}

{% if category == 'transfer-switches' %} Transfer Switches {% elif category == 'portable-generators' %} Portable Generators {% elif category == 'water-pumps' %} Water Pumps {% elif category == 'generac-chore' %} Generac Chore {% elif category == 'home-standby-generators' %} Home Standby Generators {% elif category == 'business-standby' %} Business Standby Generators {% endif %}

    {%- for product in updated_product -%} {% set list1 = site.custom_fields['product_skus'].split(', ') %} {% if product['sku_slug'] in list1 and product['ProductCategory']|slugify in valid_subcategories %} {% set concatvalue = ["Generac Products | ", location.city, ", ", location.state, "Generac Power Systems"]|join %} {% set concatvaluetwo = ["Find Generac products to meet your power system needs. We offer portable, residential, commercial, and industrial ", product.ProductCategory]|join %} {% set overrides = {'title': concatvalue, 'meta_description': concatvaluetwo} %} {% do set_page_overrides(overrides) %}
    • {{ product['ModelNumber']|safe }}
    • {{ product['Name']|safe }}
    • Model #{{ product['ModelNumber']|safe }} {% if site.custom_fields['do_you_want_to_hide_the_msrp_of_the_generac_products_on_your_site'] == 'Yes' %} Contact us for pricing {% else %} Starting At ${{ product['MSRP']|safe }}MSRP {% endif %}
    • View Details
  • {% endif %} {% endfor %}
{% elif path_parts|length == 3 %} {%- for product in updated_product -%} {% if path_parts[2] == product['sku_slug'] %} {% set concatvalue = ["Generac Products | ",location.city, ", ",location.state, "Generac Power Systems"]|join %} {% set concatvaluetwo = ["Find Generac products to meet your power system needs. We offer portable, residential, commercial, and industrial ",product.Name]|join %} {% set overrides = {'title': concatvalue,'meta_description': concatvaluetwo} %} {% do set_page_overrides(overrides) %}
{% if product['ProductImage_1'] or product['ProductImage_2'] or product['ProductImage_3'] %} {% else %}
{% endif %}

{{ product['Name']|slugify }}

Model #{{ product['ModelNumber'] }}
{% if site.custom_fields['do_you_want_to_hide_the_msrp_of_the_generac_products_on_your_site'] == 'Yes' %} {% if not site.custom_fields['canreceiveleads']== 'No' %}

Contact us for pricing

Contact Us {% endif %} {% else %}

Starting At

${{ product['MSRP'] }} MSRP Contact Us

{% endif %}
{% if product['ProductDocument_Name_1'] or product['ProductDocument_Name_2'] or product['ProductDocument_Name_3'] or product['ProductDocument_Name_4'] %}

Downloads:

{% endif %}
{% if product['FeatureContentGroup_Heading_1'] %}

{{ product['FeatureContentGroup_Heading_1']|safe }}

{{ product['FeatureContentGroup_Description_1']|safe }}
{% if product['FeatureContentGroup_ImageURL_1'] %} Product Image {% else %} No Image Available {% endif %}
{% elif product['FeatureContentGroup_FeaturedLeftHeadingText_1'] or product['FeatureContentGroup_FeaturedLeftHeadingText_2'] or product['FeatureContentGroup_FeaturedLeftHeadingText_3'] or product['FeatureContentGroup_FeaturedMiddleHeadingText_1'] or product['FeatureContentGroup_FeaturedMiddleHeadingText_2'] or product['FeatureContentGroup_FeaturedMiddleHeadingText_3'] or product['FeatureContentGroup_FeaturedRightHeadingText_1'] or product['FeatureContentGroup_FeaturedRightHeadingText_2'] or product['FeatureContentGroup_FeaturedRightHeadingText_3'] %}
{% if product['FeatureContentGroup_FeaturedLeftHeadingText_1'] %}

{{ product['FeatureContentGroup_FeaturedLeftHeadingText_1'] }}

{{ product['FeatureContentGroup_FeaturedLeftText_1']|safe }}
{% endif %} {% if product['FeatureContentGroup_FeaturedLeftHeadingText_2'] %}

{{ product['FeatureContentGroup_FeaturedLeftHeadingText_2'] }}

{{ product['FeatureContentGroup_FeaturedLeftText_2']|safe }}
{% endif %} {% if product['FeatureContentGroup_FeaturedLeftHeadingText_3'] %}

{{ product['FeatureContentGroup_FeaturedLeftHeadingText_3'] }}

{{ product['FeatureContentGroup_FeaturedLeftText_3']|safe }}
{% endif %} {% if product['FeatureContentGroup_FeaturedMiddleHeadingText_1'] %}

{{ product['FeatureContentGroup_FeaturedMiddleHeadingText_1'] }}

{{ product['FeatureContentGroup_FeaturedMiddleText_1']|safe }}
{% endif %} {% if product['FeatureContentGroup_FeaturedMiddleHeadingText_2'] %}

{{ product['FeatureContentGroup_FeaturedMiddleHeadingText_2'] }}

{{ product['FeatureContentGroup_FeaturedMiddleText_2']|safe }}
{% endif %} {% if product['FeatureContentGroup_FeaturedMiddleHeadingText_3'] %}

{{ product['FeatureContentGroup_FeaturedMiddleHeadingText_3'] }}

{{ product['FeatureContentGroup_FeaturedMiddleText_3']|safe }}
{% endif %} {% if product['FeatureContentGroup_FeaturedRightHeadingText_1'] %}

{{ product['FeatureContentGroup_FeaturedRightHeadingText_1'] }}

{{ product['FeatureContentGroup_FeaturedRightText_1']|safe }}
{% endif %} {% if product['FeatureContentGroup_FeaturedRightHeadingText_2'] %}

{{ product['FeatureContentGroup_FeaturedRightHeadingText_2'] }}

{{ product['FeatureContentGroup_FeaturedRightText_2']|safe }}
{% endif %} {% if product['FeatureContentGroup_FeaturedRightHeadingText_3'] %}

{{ product['FeatureContentGroup_FeaturedRightHeadingText_3'] }}

{{ product['FeatureContentGroup_FeaturedRightText_3']|safe }}
{% endif %}
{% else %} {% endif %}
{% if product['ProductImage_1'] or product['ProductImage_2'] or product['ProductImage_3'] %} {% endif %} {% endif %} {% endfor %} {% endif %}