Jump to content

sw45859

Members
  • Content count

    302
  • Joined

  • Last visited

Everything posted by sw45859

  1. sw45859

    custom computer configurator

    just got around to reading this thread and i must give a few responses, first: yes it does because when the customer creates the computer it saves the information so that it can be sold as a product in the future, kind of a report i guess you can call it to see what your customers are interested in. second: if you want to mess with it that particular code is in the custom_checkout.php third: i am gathering that some of you are wanting to know why the parts don't show up on the invoice, well i just didn't do that, i have however created some code to allow you to view the invoice in the admin and click on the custom computer link on the invoice to see what computer parts are needed, in the admin/orders.php about line 210 you'll see for ($i=0; $i<sizeof($order->products); $i++) { echo ' <tr class="dataTableRow">' . "n" . ' <td class="dataTableContent" valign="top" align="right">' . $order->products[$i]['qty'] . ' x</td>' . "n"; add this after it if ($order->products[$i]['model'] == 'Custom'){ echo ' <td class="dataTableContent" valign="top"><a href="http://www.snjcomputers.com/product_info.php?cPath=19&products_id=' . $order->products[$i]['product'] . '">' . $order->products[$i]['name'] . '</a>'; } else { echo ' <td class="dataTableContent" valign="top">' . $order->products[$i]['name']; } i think that was all i really needed to address, thank you all for using the contribution, and remember the new version is for the new checkout code, and if you don't edit anything and follow all my steps it should just plug in and go. bye now Stephen www.snjcomputers.com new design check it out.
  2. I have release version 5 and hopefully the final version of this mod, i have another contribution coming up i am calling it the customer customizer, best name i could think of, i need to know if there is anything out there like it, it will allow the customer to choose which boxes appear on which side, or if they appear at all, and will include other things as i go along, let me know please if you know of anything out there.
  3. sw45859

    Consignment Store, I need a special Mod

    best tip i can think of right now is to add another table and don't have everything added until they pay for it. might not be much help but thats a starting point.
  4. forgot to tell anyone who downloads the contribution the custom.php is no longer used please diregard that file and link to the build.php
  5. sw45859

    Download Page For Pending Downloads

    i don't think it is possible to get rid of the cancel button, but then again i may be wrong.
  6. i thought about that but couldn't find a way to tell the payment.php class to pull that payment module out if the user wasn't able to use it.
  7. i can if i can see the page on your site, i would like to get the new one working for you cause it is alot better. adn i also have a new one coming up and i would like to have that problem fixed just in case.
  8. also do you have the computer mod installed on the live site, and where's it at on there
  9. on your page after they login does it display their name somewhere on the page constantly or only after the login?
  10. you mean when they are already logged in it will lose their name?
  11. make sure that there is a description in the products_model in the database. that would be what you would see when you look at the build in the admin or the catalog.
  12. sw45859

    Data exchanges with Accounting Programs

    i would like to see one for quicken, i write some contributions but i don't even know where to begin on this types of contribution.
  13. this new version i wrote with the nov1 + snapshot so i guess that function is a new one to this snapshot.
  14. //// // Parse the data used in the html tags to ensure the tags will not break function tep_parse_input_field_data($data, $parse) { return strtr(trim($data), $parse); } put that into includes/functions/html_output.php at the top.
  15. sw45859

    Generating an automatic e-mail

    ok then you put in the onClick="" statement the mail function. <input type=submit name="reguser" onClick=<?php echo tep_mail();?> > just put your values in for the mail. you will probably have to do a query on the database first to get the correct user information. probably put a checkbox next to their name and a onClick="" statement <input type=checkbox name="getinfo" onClick=<?php echo tep_db_query();?> and put the correct info into it. hope this helps :lol:
  16. sw45859

    Generating an automatic e-mail

    where do you have it set up at so i can see the file in action?
  17. sw45859

    Generating an automatic e-mail

    tep_mail(); is the function you will put at the end when the custom has been accepted. you can see what goes in the () inside the includes/functions/general.php file. about line 925
  18. sw45859

    wondering

    <table border="0" width="100%" cellspacing="2" cellpadding="2"> <tr> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="1" cellpadding="1" class="columnLeft"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); $builds_query = tep_db_query("select motherboard, customers_name, videocard, memory, processor, harddrive, opersys, tower, soundcard, networkcard, modem, usb, firewire, monitor, customers_email, comment from custom_builds"); $builds = tep_db_fetch_array($builds_query); ?> <!-- left_navigation_eof //--> </table></td> <!-- body_text //--> <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"><?php echo $cfg_group['configuration_group_title']; ?></td> <td class="pageHeading" align="right"><?php echo tep_draw_separator('pixel_trans.gif', HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> </tr> </table></td> </tr> <tr> <td><table border="1" width="100%" cellspacing="0" cellpadding="0"> <tr> <td valign="top"><table border="2" width="100%" cellspacing="2" cellpadding="2"> <tr class="dataTableHeadingRow"> <td class="dataTableHeadingContent"><b>Customers Name</b></td> <td class="dataTableHeadingContent"><b>Customers E-mail</b></td> <td class="dataTableHeadingContent"><b>MotherBoard</b></td> <td class="dataTableHeadingContent"><b>Video Card</b></td> <td class="dataTableHeadingContent"><b>Sound Card</b></td> <td class="dataTableHeadingContent"><b>Network Card</b></td> <td class="dataTableHeadingContent"><b>Usb 2.0 Card</b></td> <td class="dataTableHeadingContent"><b>Fire Wire Card</b></td> <td class="dataTableHeadingContent"><b>Case</b></td> <td class="dataTableHeadingContent"><b>Processor</b></td> <td class="dataTableHeadingContent"><b>Hard Drive</b></td> <td class="dataTableHeadingContent"><b>Memory</b></td> <td class="dataTableHeadingContent"><b>Operating System</b></td> <td class="dataTableHeadingContent"><b>Modem Card</b></td> <td class="dataTableHeadingContent"><b>Monitor</b></td> <td class="dataTableHeadingContent"><b>Comments</b></td> </tr> <tr> <td><b><?php echo $builds['customers_name'] ?></b></td> <td><b><?php echo $builds['customers_email'] ?></b></td> <td><b><?php echo $builds['motherboard'] ?></b></td> <td><b><?php echo $builds['videocard'] ?></b></td> <td><b><?php echo $builds['soundcard'] ?></b></td> <td><b><?php echo $builds['networkcard'] ?></b></td> <td><b><?php echo $builds['usb'] ?></b></td> <td><b><?php echo $builds['firewire'] ?></b></td> <td><b><?php echo $builds['tower'] ?></b></td> <td><b><?php echo $builds['processor'] ?></b></td> <td><b><?php echo $builds['harddrive'] ?></b></td> <td><b><?php echo $builds['memory'] ?></b></td> <td><b><?php echo $builds['opersys'] ?></b></td> <td><b><?php echo $builds['modem'] ?></b></td> <td><b><?php echo $builds['monitor'] ?></b></td> <td><b><?php echo $builds['comment'] ?></b></td> </tr> this works but the only problem is that, i am not sure how to display many tables, instead of just one??????
  19. well almost done with this one, if anyone has a need for a custom computer computer build mod, let me know. just have to get the admin side done.
  20. this is probably an easy to solve problem, but i just am too tired and can't get it, the following code will not write the information to mysql database, please let me know why if you do....(the custom_data_array) is what i am trying to write to the database. require('includes/application_top.php'); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CONTACT_US); $custom_data_array = array('motherboard' => $mboard, 'name' => $name, 'memory' => $mem, 'processor' => $proc, 'harddrive' => $hddsiz, 'videocard' => $vidcrd, 'tower' => $tower, 'soundcard' => $sndcard, 'modem' => $mdmcrd, 'usb' => $usbcrd, 'firewire' => $frwcrd, 'opersys' => $opers, 'monitor' => $monsiz, 'customers_email' => $email, 'comment' => $HTTP_POST_VARS['enquiry'], 'networkcard' => $netcrd ); $error = false; if ($HTTP_GET_VARS['action'] == 'send') { tep_db_perform(CUSTOM_BUILDS, $custom_data_array); if (tep_validate_email(trim($HTTP_POST_VARS['email']))) { tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, $HTTP_POST_VARS['enquiry'], $HTTP_POST_VARS['name'], $HTTP_POST_VARS['email'], ''); tep_redirect(tep_href_link(FILENAME_CONTACT_US, 'action=success', 'NONSSL')); } else { $error = true; } } $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_BUILDS)); ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <base href="<?php echo (getenv('HTTPS') == 'on' ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> <table border="0" width="100%" cellspacing="3" cellpadding="3"> <tr> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> <!-- body_text //--> <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading">Custom Built Computer</td> <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_contact_us.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php if ($HTTP_GET_VARS['action'] == 'success') { ?> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="main"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_man_on_board.gif', HEADING_TITLE, '0', '0', 'align="left"') . TEXT_SUCCESS; ?></td> </tr> <tr> <td align="right"><br><a href="<?php echo tep_href_link(FILENAME_DEFAULT, '', 'NONSSL'); ?>"><?php echo tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></a></td> </tr> </table></td> </tr> <?php } else { ?> <tr> <td><form action="<?php echo tep_href_link(FILENAME_CONTACT_US, 'action=send', 'NONSSL'); ?>" method="post"><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="main"><?php echo ENTRY_NAME; ?><br><?php echo tep_draw_input_field('name', ($error ? $HTTP_POST_VARS['name'] : $first_name)); ?></td> <td class="main"><?php echo ENTRY_EMAIL; ?><br><?php echo tep_draw_input_field('email', ($error ? $HTTP_POST_VARS['email'] : $email_address)); if ($error) echo ENTRY_EMAIL_ADDRESS_CHECK_ERROR; ?></td> </tr> <tr> <td class="main"> </td> <td class="main"> </td> </tr> <tr> <td class="main">MotherBoard:<br><?php echo tep_draw_input_field('mboard', ($error ? $HTTP_POST_VARS['mboard'] : $mboard)); ?></td> <td class="main">Amount Of Memory:<br><?php echo tep_draw_input_field('mem', ($error ? $HTTP_POST_VARS['mem'] : $mem)); ?></td> </tr> <tr> <td class="main">Processor:<br><?php echo tep_draw_input_field('proc', ($error ? $HTTP_POST_VARS['proc'] : $proc)); ?></td> <td class="main">Case Preference (If Any):<br><?php echo tep_draw_input_field('tower', ($error ? $HTTP_POST_VARS['tower'] : $tower)); ?></td> </tr> <tr> <td class="main">Hard Drive Size:<br><?php echo tep_draw_input_field('hddsiz', ($error ? $HTTP_POST_VARS['hddsiz'] : $hddsiz)); ?></td> <td class="main">Video Card:<br><?php echo tep_draw_input_field('vidcrd', ($error ? $HTTP_POST_VARS['vidcrd'] : $usbcrd)); ?></td> </tr> <tr> <td class="main">Sound Card (If Not Using On Board Sound):<br><?php echo tep_draw_input_field('sndcrd', ($error ? $HTTP_POST_VARS['sndcrd'] : $sndcrd)); ?></td> <td class="main">Operating System Preference:<br><?php echo tep_draw_input_field('opers', ($error ? $HTTP_POST_VARS['opers'] : $opers)); ?></td> </tr> <tr> <td class="main">Network Card (Yes Or No):<br><?php echo tep_draw_input_field('netcrd', ($error ? $HTTP_POST_VARS['netcrd'] : $netcrd)); ?></td> <td class="main">Modem (Yes Or No):<br><?php echo tep_draw_input_field('mdmcrd', ($error ? $HTTP_POST_VARS['mdmcrd'] : $mdmcrd)); ?></td> </tr> <tr> <td class="main">Firewire (Yes Or No):<br><?php echo tep_draw_input_field('frwcrd', ($error ? $HTTP_POST_VARS['frwcrd'] : $frwcrd)); ?></td> <td class="main">Usb 2.0 (If Not On Motherboard):<br><?php echo tep_draw_input_field('usbcrd', ($error ? $HTTP_POST_VARS['usbcrd'] : $usbcrd)); ?></td> </tr> <tr> <td class="main">Monitor Size And Brand (If Preferred)<br><?php echo tep_draw_input_field('monsiz', ($error ? $HTTP_POST_VARS['monsiz'] : $monsiz)); ?></td> </tr> <tr> <td class="main">Extra Comments</td> </tr> <tr> <td><?php echo tep_draw_textarea_field('enquiry', 'soft', 50, 15, $HTTP_POST_VARS['enquiry']); ?></td> </tr> <tr> <td class="main" align="right"><br><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td> </tr> </table></form></td> </tr> <?php } ?> </table></td> <!-- body_text_eof //--> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> </table></td> </tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> <br> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
  21. i changed it, that did fix one minor problem, but the major one is still there, that it isn't putting the values into the database.
  22. sw45859

    seperate_pricing_per_customer help

    i am getting this error when trying to enter a product with the seperate pricing mod 1062 - Duplicate entry '1' for key 1 insert into products_groups (products_id, products_price, customers_group_id, customers_group_price) values ('9', '55', '1', '40') :cry: :cry: :cry: :cry: :cry:
×