Page 1 of 26 12311 ... LastLast
Results 1 to 10 of 255
  1. #1
    Join Date
    Apr 2006
    Location
    City Drama in Greece
    Posts
    160
    Plugin Contributions
    6

    Default PC Configurator Module [Support Thread]

    DOWNLOAD LINK:
    http://www.zen-cart.com/index.php?ma...roducts_id=667


    Dear all,

    I started a new module to create a pc configurator for ZEN CART.

    For the start it is going nice but I need help.

    I made a file to make some queries and all options are tracked automatically from database.

    I is not yet done but you can see a sample here

    http://www.lebrand.gr/eshop/index.php?main_page=page_4

    Prices change automatically and a product link is provided if you want to see details of the product you choosed.

    TRY THE FIRST OPTION TO SEE

    If some one thinks he can help please inform me

    I am thinking the possibility to make a product with 0 price.

    As you can see, prices are being changed automatically with java script

    Maybe there could be a way to change products price, and add it to the cart so it can be a normal order procedure.

    I include all files I made till now.
    Attached Files Attached Files

  2. #2
    Join Date
    Jul 2005
    Posts
    57
    Plugin Contributions
    0

    Default Re: Pc Configurator For Zen

    hey great start to this im not that great with certain parts but do have good friends so let see what happens will keep in touch with you on this.

  3. #3
    Join Date
    Apr 2006
    Location
    City Drama in Greece
    Posts
    160
    Plugin Contributions
    6

    Default Re: PC Configurator For Zen Cart

    Dear all,

    Because of the reason that nobody seems to be interested, I decided to make this module with other way.

    Below is a description of the project.

    Well, after pc configurator form is complete, I make a post to post.php

    There I assign all form values to variables :

    $case = $_POST[cpc];
    $case_price = $_POST[cpc_price];
    $mobo_intel = $_POST[motherboard_intel];
    $mobo_intel_price = $_POST[motherboard_intel_price];
    $mobo_amd = $_POST[motherboard_amd];
    $mobo_amd_price = $_POST[motherboard_amd_price];
    $cpu_intel = $_POST[cpu_intel];
    $cpu_intel_price = $_POST[cpu_intel_price];
    $cpu_amd = $_POST[cpu_amd];
    $cpu_amd_price = $_POST[cpu_amd_price];
    $ram1 = $_POST[ram1];
    $ram1_price = $_POST[ram1_price];
    $ram2 = $_POST[ram2];
    $ram2_price = $_POST[ram2_price];
    $graphics_card = $_POST[graphics_card];
    $graphics_card_price = $_POST[graphics_card_price];
    $floppy_disk_drive = $_POST[floppy_disk_drive];
    $floppy_disk_drive_price = $_POST[floppy_disk_drive_price];
    $hard_disk_drive1 = $_POST[hard_disk_drive1];
    $hard_disk_drive1_price = $_POST[hard_disk_drive1_price];
    $hard_disk_drive2 = $_POST[hard_disk_drive2];
    $hard_disk_drive2_price = $_POST[hard_disk_drive2_price];
    $cd_rom_drive = $_POST[cd_rom_drive];
    $cd_rom_drive_price = $_POST[cd_rom_drive_price];
    $dvd_writer_drive = $_POST[dvd_writer_drive];
    $dvd_writer_drive_price = $_POST[dvd_writer_drive_price];
    $keyboard = $_POST[keyboard];
    $keyboard_price = $_POST[keyboard_price];
    $keyboard_set = $_POST[keyboard_set];
    $keyboard_set_price = $_POST[keyboard_set_price];
    $mouse = $_POST[mouse];
    $mouse_price = $_POST[mouse_price];
    $display_monitor = $_POST[display_monitor];
    $display_monitor_price = $_POST[display_monitor_price];
    $sound_card = $_POST[sound_card];
    $sound_card_price = $_POST[sound_card_price];
    $speakers = $_POST[speakers];
    $speakers_price = $_POST[speakers_price];
    $modem_fax = $_POST[modem_fax];
    $modem_fax_price = $_POST[modem_fax_price];
    $operating_system = $_POST[operating_system];
    $operating_system_price = $_POST[operating_system_price];
    $power_supply_unit = $_POST[power_supply_unit];
    $power_supply_unit_price = $_POST[power_supply_unit_price];
    $printer = $_POST[printer];
    $printer_price = $_POST[printer_price];
    $scanner = $_POST[scanner];
    $scanner_price = $_POST[scanner_price];
    $software_applications = $_POST[software_applications];
    $software_applications_price = $_POST[software_applications_price];
    $extra_parts = $_POST[extra_parts];
    $extra_parts_price = $_POST[extra_parts_price];
    $services_and_internet = $_POST[services_and_internet];
    $services_and_internet_price = $_POST[services_and_internet_price];
    $extra_options = $_POST[extra_options];
    $extra_options_price = $_POST[extra_options_price];

    $netprice = $_POST[netprice];
    $totalprice = $_POST[totalpricegross];
    I am now thinking to assign all product details variables to one variable.

    Who can help in this ? I started with an array to assign all variables to one. Is this the right way ?

    I also have assigned netprice and total price in variables.

    My purpose is to prepare all variables needed, just when I put the data for a new product in admin/products.

    So, from the posted form, I just can take all values that has to do with products details and assign them to a variable so later I can use it as PRODUCTS DESCRIPTION to insert it in the DATA BASE.

    I also have netprice and totalprice values assigned to variables to use them for the same purpose.

    What I have to do now is to assign specific values to all variables I need when I insert a new product to the DATABASE. This is very easy to do even for me who started PHP recently.

    So, you may wonder how this is going to work ?

    DID YOU EVER THINK THAT CUSTOMERS CAN CREATE PRODUCTS FOR YOU ?

    SOME EASY STEPS :

    1. PC Configurator form is populated automatically with products that exists in our database.

    2. We POST the form to a file.php to gather the required information for product details and price to assign their values to specific variables and we also write some code in the file.php to assign spesific values to specific variables, those we need just when we insert a new product in the database.

    3. In the file.php we have prepared all needed variables. Now we present the product that our customer constructed in a good looking table and we PROVIDE a button; The MAGIC button. When customer press it, this constructed product is inserted into the database, in a specific category we had previously specified with variable, with specific image......and so on. Now we must REDIRECT our customer to HIS OWN CREATED PRODUCT because HE WANTS TO BUY IT. Now I am thinking that if I query the database for the last product id, to redirect the customer to his product, maybe someone else, almost the same time has created another product. So this will confuse the customer. So, to redirect the customer for sure to his product, we must add a new field to the database which could be a name or something else that customer provides in the PC Configurator form. Well if customer is logged in NO PROBLEM.

    4. Customer is now seeing his product in our shop and he is ready to order. So this way, customer buys what he wants and also creates products in our database. To improve this, we can assign a KEY VALUE to a variable for a specific PC Configuration Product so it is not imported twice in our database in the case that customer did not see this product and tried to create it again.
    The bad is that products and prices change. The good is that our form is being populated automatically with products and prices.

    But what about older products that customers had created and parts and prices changed ? Are we going to delete from database ?

    Well, I am waiting for your opinion. I am sure that many of you could write that code in an hour, but in my opinion the point here is if you find this idea workable or if you have something else in mind so this module can be improved before I start writing the code.

    Thank you all.

  4. #4
    Join Date
    Apr 2006
    Location
    City Drama in Greece
    Posts
    160
    Plugin Contributions
    6

    Default Re: PC Configurator For Zen Cart

    Dear all,

    Because of the reason that nobody seems to be interested, I decided to make this module with other way.

    Below is a description of the project.

    Well, after pc configurator form is complete, I make a post to post.php

    There I assign all form values to variables :

    $case = $_POST[cpc];
    $case_price = $_POST[cpc_price];
    $mobo_intel = $_POST[motherboard_intel];
    $mobo_intel_price = $_POST[motherboard_intel_price];
    $mobo_amd = $_POST[motherboard_amd];
    $mobo_amd_price = $_POST[motherboard_amd_price];
    $cpu_intel = $_POST[cpu_intel];
    $cpu_intel_price = $_POST[cpu_intel_price];
    $cpu_amd = $_POST[cpu_amd];
    $cpu_amd_price = $_POST[cpu_amd_price];
    $ram1 = $_POST[ram1];
    $ram1_price = $_POST[ram1_price];
    $ram2 = $_POST[ram2];
    $ram2_price = $_POST[ram2_price];
    $graphics_card = $_POST[graphics_card];
    $graphics_card_price = $_POST[graphics_card_price];
    $floppy_disk_drive = $_POST[floppy_disk_drive];
    $floppy_disk_drive_price = $_POST[floppy_disk_drive_price];
    $hard_disk_drive1 = $_POST[hard_disk_drive1];
    $hard_disk_drive1_price = $_POST[hard_disk_drive1_price];
    $hard_disk_drive2 = $_POST[hard_disk_drive2];
    $hard_disk_drive2_price = $_POST[hard_disk_drive2_price];
    $cd_rom_drive = $_POST[cd_rom_drive];
    $cd_rom_drive_price = $_POST[cd_rom_drive_price];
    $dvd_writer_drive = $_POST[dvd_writer_drive];
    $dvd_writer_drive_price = $_POST[dvd_writer_drive_price];
    $keyboard = $_POST[keyboard];
    $keyboard_price = $_POST[keyboard_price];
    $keyboard_set = $_POST[keyboard_set];
    $keyboard_set_price = $_POST[keyboard_set_price];
    $mouse = $_POST[mouse];
    $mouse_price = $_POST[mouse_price];
    $display_monitor = $_POST[display_monitor];
    $display_monitor_price = $_POST[display_monitor_price];
    $sound_card = $_POST[sound_card];
    $sound_card_price = $_POST[sound_card_price];
    $speakers = $_POST[speakers];
    $speakers_price = $_POST[speakers_price];
    $modem_fax = $_POST[modem_fax];
    $modem_fax_price = $_POST[modem_fax_price];
    $operating_system = $_POST[operating_system];
    $operating_system_price = $_POST[operating_system_price];
    $power_supply_unit = $_POST[power_supply_unit];
    $power_supply_unit_price = $_POST[power_supply_unit_price];
    $printer = $_POST[printer];
    $printer_price = $_POST[printer_price];
    $scanner = $_POST[scanner];
    $scanner_price = $_POST[scanner_price];
    $software_applications = $_POST[software_applications];
    $software_applications_price = $_POST[software_applications_price];
    $extra_parts = $_POST[extra_parts];
    $extra_parts_price = $_POST[extra_parts_price];
    $services_and_internet = $_POST[services_and_internet];
    $services_and_internet_price = $_POST[services_and_internet_price];
    $extra_options = $_POST[extra_options];
    $extra_options_price = $_POST[extra_options_price];

    $netprice = $_POST[netprice];
    $totalprice = $_POST[totalpricegross];
    I am now thinking to assign all product details variables to one variable.

    Who can help in this ? I started with an array to assign all variables to one. Is this the right way ?

    I also have assigned netprice and total price in variables.

    My purpose is to prepare all variables needed, just when I put the data for a new product in admin/products.

    So, from the posted form, I just can take all values that has to do with products details and assign them to a variable so later I can use it as PRODUCTS DESCRIPTION to insert it in the DATA BASE.

    I also have netprice and totalprice values assigned to variables to use them for the same purpose.

    What I have to do now is to assign specific values to all variables I need when I insert a new product to the DATABASE. This is very easy to do even for me who started PHP recently.

    So, you may wonder how this is going to work ?

    DID YOU EVER THINK THAT CUSTOMERS CAN CREATE PRODUCTS FOR YOU ?

    SOME EASY STEPS :

    1. PC Configurator form is populated automatically with products that exists in our database.

    2. We POST the form to a file.php to gather the required information for product details and price to assign their values to specific variables and we also write some code in the file.php to assign spesific values to specific variables, those we need just when we insert a new product in the database.

    3. In the file.php we have prepared all needed variables. Now we present the product that our customer constructed in a good looking table and we PROVIDE a button; The MAGIC button. When customer press it, this constructed product is inserted into the database, in a specific category we had previously specified with variable, with specific image......and so on. Now we must REDIRECT our customer to HIS OWN CREATED PRODUCT because HE WANTS TO BUY IT. Now I am thinking that if I query the database for the last product id, to redirect the customer to his product, maybe someone else, almost the same time has created another product. So this will confuse the customer. So, to redirect the customer for sure to his product, we must add a new field to the database which could be a name or something else that customer provides in the PC Configurator form. Well if customer is logged in NO PROBLEM.

    4. Customer is now seeing his product in our shop and he is ready to order. So this way, customer buys what he wants and also creates products in our database. To improve this, we can assign a KEY VALUE to a variable for a specific PC Configuration Product so it is not imported twice in our database in the case that customer did not see this product and tried to create it again.
    The bad is that products and prices change. The good is that our form is being populated automatically with products and prices.

    But what about older products that customers had created and parts and prices changed ? Are we going to delete from database ?

    Well, I am waiting for your opinion. I am sure that many of you could write that code in an hour, but in my opinion the point here is if you find this idea workable or if you have something else in mind so this module can be improved before I start writing the code.

    Thank you all.

  5. #5
    Join Date
    Apr 2006
    Location
    City Drama in Greece
    Posts
    160
    Plugin Contributions
    6

    Default Re: PC Configurator For Zen Cart

    The new module is being developed very fast and there are many changes.

    I include a zip file if somebody wants to see what is going on.
    Attached Files Attached Files

  6. #6
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: PC Configurator For Zen Cart

    Quote Originally Posted by lebrand2006 View Post
    The new module is being developed very fast and there are many changes.

    I include a zip file if somebody wants to see what is going on.
    No readme/instructions in download..so where do files go in a zencart install??

  7. #7
    Join Date
    Apr 2006
    Location
    City Drama in Greece
    Posts
    160
    Plugin Contributions
    6

    Default Pc Configurator Is Done !!

    Dear friends,

    This is a complete new module I managed to write from the start.

    Now Zen Cart, have it's OWN Pc Configurator !!!!

    Just a few lines of code missing for the distribution to be done.

    This is the first Version. Many version will come, based on your ideas.

    So if you have any suggestions, please POST it here.

    Well, you can try it here :

    http://www.lebrand.gr/eshop/index.php?main_page=page_4

    1. Create a custom pc, then press "Επόμενο - Next" button

    2. Now your configuration will be presented to you. Press "Επόμενο - Next" link

    3. In the last page your product has been created and added to the shop database.

    Only some lines of code, and you will be directly redirected to the product's info page !!!

    If you want to see the product you just created, go to :

    http://www.lebrand.gr/eshop/index.ph...ndex&cPath=183

    On the next few days, I will develop it to be ready.

    Then there will be some testing period to fix some bugs ( if we find ) and then I will upload it to downloads will complete instructions.

    Have in mind that it is working on 1.3.X.X

    You should also install quick updates, to be more easier because a new column is created in TABLE PRODUCTS DESCRIPTION and it can be updated automatically with the modified quick updates I made.

    Have fun

  8. #8
    Join Date
    Apr 2006
    Location
    City Drama in Greece
    Posts
    160
    Plugin Contributions
    6

    Default Re: PC Configurator For Zen Cart

    Hi Misty.

    I managed to make this module work just today. Many things have to be done. I will be testing it for 5-10 days to fix some bugs and make it better and then I will post here first , the first version for crash test.

    When all things go well, then I will upload it to downloads.

    Does anybody know any function to produce uniq numbers based on a limited value, like 99.999.999.999 ?

    I want to use it to produce a serial number for each custom pc. Now I use the session id without letters combined with floored price to produce a serial number.

    But if session id remains the same, this is not good, so I need a function like this.

    As for instructions, I will make it detailed and I will post it here latter with all needed files and modifications.

  9. #9
    Join Date
    Apr 2006
    Location
    City Drama in Greece
    Posts
    160
    Plugin Contributions
    6

    Default Re: PC Configurator For Zen Cart

    Just forgot to upload what has been done!!

    There are no instructions in the zip file but there is all code used.

    Also I inluded 2 nice pictures , one for Intel PC and one for AMD PC.
    Attached Files Attached Files

  10. #10
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: PC Configurator For Zen Cart

    Quote Originally Posted by lebrand2006 View Post
    Does anybody know any function to produce uniq numbers based on a limited value, like 99.999.999.999 ?

    I want to use it to produce a serial number for each custom pc. Now I use the session id without letters combined with floored price to produce a serial number.

    But if session id remains the same, this is not good, so I need a function like this.
    I might be inclined to start with a call to the zen_create_random_value() function, specify whether you alpha, numeric, or mixed, and maybe combine that with some other value, such as microtime or something. Then store the generated number in a new database table for comparison purposes and compare ... just to be sure no duplicates are ever generated.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 
Page 1 of 26 12311 ... LastLast

Similar Threads

  1. MultiSite Module Support Thread
    By Gerome in forum All Other Contributions/Addons
    Replies: 2220
    Last Post: 13 Mar 2024, 01:24 PM
  2. v154 WorldPay Module version 3.0 - Support thread
    By countrycharm in forum Addon Payment Modules
    Replies: 115
    Last Post: 20 Jul 2021, 04:00 PM
  3. Form Armor Module Support Thread
    By FormArmor in forum All Other Contributions/Addons
    Replies: 7
    Last Post: 29 Jan 2009, 05:08 AM
  4. Layaway Payment Module Support Thread
    By Danielle in forum Addon Payment Modules
    Replies: 0
    Last Post: 21 Nov 2006, 06:43 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR