Preface

The goal of the parts explosion diagram module is to assign one or more service codes to each product. Then, instead of manually assigning vehicles to SKUs, you assign vehicles to service codes, which will cause the system to add the applicable vehicles for you. Then when the customer searches on a vehicle, products with similiar service codes are grouped, accompanied by a diagram showing the relationship between parts. Customers can choose multiple products from this diagram and add to cart in one operation.

Product Service Codes

Minimal:

Full:

First you must assign each product (sku) to a service code. The service code & illustartion ID are any arbitrary combination of letters &amp numbers. You can also optionally specify up to 4 categories.

Navigate to Elite/Vafdiagram/cron/. Place the above data (comma delimited CSV) into a file called product-service-codes.csv. Run the below command to import it:

linux:
nohup php ProductServiceCodeImporter.php > log &
windows:
php ProductServiceCodeImporter.php > log

Diagram Fitments Import

Only once a product has a 'service code' can we add vehicle fitments with service codes.

Create a file just like a regular fitments import, but add 'service_code', & 'sku'. Sku must be left blank. Service code corresponds of course to the service codes you added to the products in the previous step. They will be cross referenced to generate your fitments. Navigate to Elite/Vafdiagram/cron/. Place the above data (comma delimited CSV) into a file called fitments-import.csv. Run the below command to import it:

linux:
nohup php FitmentsImport.php > log &
windows:
php FitmentsImport.php > log

User Category Selection

After executing a search the user arrives at a category listing. This corresponds to the "category1, category2, etc.". After clicking the first level category the second level categories are listed, and so on.. until the user has no category choices left to make.

For the category images use the category name & create a file in your web-root:

/category-images/ELECTRICAL.jpg