sw45859
-
Posts
302 -
Joined
-
Last visited
Posts posted by sw45859
-
-
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
-
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.
-
i don't think it is possible to get rid of the cancel button, but then again i may be wrong.
-
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.
-
if you have any problems post them here or iqc me below.
-
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.
-
also do you have the computer mod installed on the live site, and where's it at on there
-
on your page after they login does it display their name somewhere on the page constantly or only after the login?
-
Only problem I have found with this is that when you add:
you mean when they are already logged in it will lose their name?
-
I can select the items in the pulldown, price is written to the database, nosel too, but descriptions are missing. Any help?
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.
-
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.
-
this new version i wrote with the nov1 + snapshot so i guess that function is a new one to this snapshot.
-
//// // 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.
-
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:
-
where do you have it set up at so i can see the file in action?
-
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
-
<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??????
-
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.
-
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.
-
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'); ?>
-
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:
-
every thing is working ok except for when i add a product i get an error that the product_id already exists, has anyone else had this error and if so how did you fix it, and still have the discount on the items????
Consignment Store, I need a special Mod
in General Add-Ons Support
Posted
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.