Hi again.
It's a new day for pc configurator, but I am afraid of that there should always be some changes in core code.
Let's do it from the start. Build a new configurator for ANY KIND of products !!!
Let's just name it PRODUCT CONFIGURATOR !
For those who DID NOT EVER MAKE ANY CHANGE in their files :
1. admin/categories.php
2. admin/includes/modules/category_product_listing.php
YOU CAN START HELPING IN THIS NEW CONFIGURATOR
I will include any change in every post so all can follow.
Have in mind that I run version 1.3.0.1 but tested on 1.3.8 works FINE
BEFORE YOU MAKE ANY CHANGE, BACK UP YOUR FILES :
1. admin/categories.php
2. admin/includes/modules/category_product_listing.php
Download the zip file included in this post and upload :
1. categories.php -> to your admin folder
2. category_product_listing.php -> to your admin/includes/modules folder
3. not_part_in_configurator.gif -> to your admin/images folder
4. part_in_configurator.gif -> to your admin/images folder
Go to :
Admin -> Install SQL Patches
and RUN this :
ALTER TABLE `categories` ADD COLUMN `pc_configurator` int(11) NOT NULL default '0' AFTER `categories_status`;
READY TO SEE THE RESULTS ?
Now go to Admin -> Categories/Products to see what happens :
In the top ( LEGEND ROW ) you will notice 2 new icons described
Configurator ON - Configurator OFF
Now take a look at the column Status :
Where categories have products, you will notice the new (icon)button in the right of the green (v) or red (x) (icon)button
Where categories have subcategories the button is hidding for the reason that we want to populate some drop down lists with products later, so we can select a category to be included in CONFIGURATOR only if there are products in it.
This is the CONFIGURATOR button, and the first steps for this new module.
PRESS this button to see what happens :
I added a new "case" ( new form, new action ) so we can update the new column 'pc_configurator' we added in table `categories` before.
Have in mind, that all modifications for a CONFIGURATOR in the future will be from an excel file.
I started writing the code for module "CONFIGURATOR_EASY_POPULATE" which is based on Easy_Populate module.
So, changing products, prices, descriptions, and any other information for configurator products will be ONE CLICK and independed from Easy Populate, if you have installed and using it.
That's it for now.
Please test and reply. If someone have an idea to override instead of making changes to core files categories.php and category_product_listing.php please post it.
Next step is to loop through categories with products, where CONFIGURATOR IS ON to produce DROP DOWN lists.
Any idea for the shorting ?
I am thinking of using some javascript to produce links(with 'url vars') for visitor page where configurator.php will be, and use "@extract($_GET)" to get all these vars, maybe to compare with vals from queries which have to do with categories which are included in Configurator module, so visitor can select which categories, or type of product to configure.
Thanks
Bookmarks