Collection: Vehicle Fitment
{% if product.tags contains "universal parts" %}
This is a Universal Product and may or may not be applicable to your vehicle. If you are unsure, please reach out to us to verify fitment and functionality.
{% else %}
{% endif %}
-
{% assign first = true %}
{% assign withoutYearCompare = '' %}
{% assign minYear = 0 %}
{% assign maxYear = 0 %}
{% for tag in product.tags %}
{% if tag contains '(' %}
{% else %}
{% comment %} split tag by - {% endcomment %}
{% assign mmySplit = tag | split: '-' %}
{% comment %} get last part of tag, convert to number, and check if it matches criteria of a year {% endcomment %}
{% assign mmyYear = mmySplit.last | plus: 0%}
{% comment %} if number is in range of 1900 to 2050, we assume it's a year {% endcomment %}
{% if mmyYear > 1900 and mmyYear < 2050 %}
{% comment %} get vehicle tag without year portion. we do this to avoid repeating same vehicle with different year, and simply append year range to end {% endcomment %}
{% assign withoutYear = tag | split: mmyYear %}
{% comment %} if different vehicle (without year), which doesn't match previous {% endcomment %}
{% if withoutYear != withoutYearCompare %}
{% if first == false %}
{% capture vehicleText %}{{ withoutYearCompare }}{% endcapture %}
{% assign vehicleTags = vehicleText | split: '-' %}
{% capture titlecase %}{% for tag in vehicleTags %}{{ tag | capitalize }} {% endfor %}{% endcapture %}
- {{ titlecase}}{{ minYear }}{% if maxYear > 0 %} to {{ maxYear }}{% endif %} {% else %} {% assign first = false %} {% endif %} {% comment %} reset variables {% endcomment %} {% assign withoutYearCompare = withoutYear %} {% assign minYear = mmyYear %} {% assign maxYear = 0 %} {% else %} {% comment %} same vehicle, but different year. let's track min/max year {% endcomment %} {% if mmyYear > maxYear %} {% assign maxYear = mmyYear %} {% endif %} {% if mmyYear < minYear %} {% assign minYear = mmyYear %} {% endif %} {% endif %} {% endif %} {% endif %} {% if forloop.last %} {% capture vehicleText %}{{ withoutYearCompare }}{% endcapture %} {% assign vehicleTags = vehicleText | split: '-' %} {% capture titlecase %}{% for tag in vehicleTags %}{{ tag | capitalize }} {% endfor %}{% endcapture %}
- {{ titlecase}}{{ minYear }}{% if maxYear > 0 %} to {{ maxYear }}{% endif %} {% endif %} {% endfor %}
Our Location
Precision Raceworks
713-770-6977
sales@precisionraceworks.com
- Mon - Fri: 8am - 5pm CST
- Saturday: CLOSED
- Sunday: CLOSED
36685 High Meadow Industrial Ln, Magnolia, TX 77355