

RichSM
Members-
Content count
51 -
Joined
-
Last visited
Profile Information
-
Real Name
Richard
- Website
-
Yeees Zappo, you were right! excellent diagnose. I had the .css file merged with the admin/include/stylesheet.css file. My mistake. Should have paid more attention. ..full of appreciation! Now I can go and show off my new tool. Nice one Zappo! Just another question regarding this: Is it possible to display font images twice or more. e.g. Font1 and Font2. I need to do this because I have a lot of different images to display. I could of course bang them all together but it looks confusing and untidy. (All the images are loaded automatically into one option name anyway) So I really need to split them into two or more. If possible, how? Many thanks again. Rich
-
Hiya Zappo, Busy working all this time... unlucky! and I thought you have been kicking back somewhere nice on holiday enjoying the sunshine. Thanks for sharing your hardcoded display imageoptions (Option Types v2.1.1) Great tool! I installed it on a site 'am working on for a test run. Everything works fine. The only issue I have is that images uploaded as imageoptions apart from showing properly when you choose them from the font dropdown, they are also showing up just below product description (that is just between where product description ends and available options starts) I suspected I must have duplicated the codes that show the images somewhere but I could not figure it out myself after many searches. Do you have any idea what I did wrong or how to go about troubleshooting it? Thanks. Rich
-
I applied the change and it worked beautifully! Further up this page, I read that you are working or planned on working on a new contribution "Products as Options" which will enable tracking product options as products. Sounds great. Myself and a lot more people than you can imagine will appreciate such a contribution, if you can pull it off. I can imagine it will be a great task. Zappo, once again Thanks.
-
Nice one Zappo! What I have done since your last suggestion was to go back and strip the case 'add_product' of other contributions. Just left it with your code as it was and it worked! Now, uploaded files are correctly displayed in the Cart and with the eye link. Thanks for the lead! I will go and make your suggested changes and see how it goes. Many many thank Zappo! Rich
-
Zappo, thanks for your quick response. The files are saved correctly in their respective directory. There is no problem here at all. Text input in product_info is also passed on to the cart correctly. No problem here either. I understand that Option types functionality are basically the same but my problem is that I can't define upload-option values in admin's option value type because it has been taken off the drop down list of values available. So I guess it has to be defined somewhere for it to show up. Yes, I did merged with other contributions, e.g QPBPP, SPPC Here is my case 'add_product' case 'add_product' : if (isset($HTTP_POST_VARS['products_id']) && is_numeric($HTTP_POST_VARS['products_id'])) { //BOF - Zappo - Option Types v2 - File uploading: save uploaded files with unique file names, in the proper folder $purgeDir = opendir(TMP_DIR) or die ('Could not open '.TMP_DIR); while ($file = readdir($purgeDir)) { if ($file != ('.htaccess') && filemtime(TMP_DIR . $file) < strtotime(OPTIONS_TYPE_PURGETIME)) { unlink(TMP_DIR . $file); // Delete file from server... tep_db_query("delete from " . TABLE_FILES_UPLOADED . " where files_uploaded_name = '" . $file . "'"); // Remove File's database entry.... } } closedir($purgeDir); $real_ids = $HTTP_POST_VARS['id']; if ($HTTP_POST_VARS['number_of_uploads'] > 0) { require(DIR_WS_CLASSES . 'upload.php'); for ($i = 1; $i <= $HTTP_POST_VARS['number_of_uploads']; $i++) { if (tep_not_null($_FILES['id']['tmp_name'][TEXT_PREFIX . $HTTP_POST_VARS[uPLOAD_PREFIX . $i]]) and ($_FILES['id']['tmp_name'][TEXT_PREFIX . $HTTP_POST_VARS[uPLOAD_PREFIX . $i]] != 'none')) { $products_options_file = new upload('id'); //BOF - Zappo - Option Types v2 - Set Upload directory (Registered customers in Uploads, other in Temporary folder) if (tep_session_is_registered('customer_id')) { // IF the customer is registered, use Upload Dir $products_options_file->set_destination(UPL_DIR); } else { // If the customer is not registered, use Temporary Dir $products_options_file->set_destination(TMP_DIR); } //EOF - Zappo - Option Types v2 - Set Upload directory (Registered customers in Uploads, other in Temporary folder) if ($products_options_file->parse(TEXT_PREFIX . $HTTP_POST_VARS[uPLOAD_PREFIX . $i])) { if (tep_session_is_registered('customer_id')) { tep_db_query("insert into " . TABLE_FILES_UPLOADED . " (sesskey, customers_id, files_uploaded_name, date) values('" . tep_session_id() . "', '" . $customer_id . "', '" . tep_db_input($products_options_file->filename) . "', '" . date("d-m-y") . "')"); } else { tep_db_query("insert into " . TABLE_FILES_UPLOADED . " (sesskey, files_uploaded_name, date) values('" . tep_session_id() . "', '" . tep_db_input($products_options_file->filename) . "', '" . date("d-m-y") . "')"); } //BOF - Zappo - Option Types v2 - Set File Prefix if (OPTIONS_TYPE_FILEPREFIX == 'Database') { // Database ID as File prefix $insert_id = tep_db_insert_id() . '_'; } else { // Date, time or both as File prefix (Change date formatting here) if (OPTIONS_TYPE_FILEPREFIX == 'Date' || OPTIONS_TYPE_FILEPREFIX == 'DateTime') { $insert_id = 'D'.date("d-m-y_"); } $insert_id .= (OPTIONS_TYPE_FILEPREFIX == 'DateTime' || OPTIONS_TYPE_FILEPREFIX == 'Time') ? 'T'.date("H-i_") : ''; } //EOF - Zappo - Option Types v2 - Set File Prefix // Update filename in Database with correct prefix (For comparing database names with real files) tep_db_query("update " . TABLE_FILES_UPLOADED . " set files_uploaded_name = '" . tep_db_input($insert_id . $products_options_file->filename) . "' where sesskey = '" . tep_session_id() . "' and files_uploaded_name = '" . tep_db_input($products_options_file->filename) . "' and date = '" . date("d-m-y") . "'"); $real_ids[TEXT_PREFIX . $HTTP_POST_VARS[uPLOAD_PREFIX . $i]] = $insert_id . $products_options_file->filename; $products_options_file->set_filename($insert_id . $products_options_file->filename); if (!($products_options_file->save())) { break 2; } } else { break 2; } } else { // No file uploaded -- use previously uploaded file $real_ids[TEXT_PREFIX . $HTTP_POST_VARS[uPLOAD_PREFIX . $i]] = $HTTP_POST_VARS[TEXT_PREFIX . UPLOAD_PREFIX . $i]; } } } //EOF - Zappo - Option Types v2 - File uploading: save uploaded files with unique file names, in the proper folder // BOF QPBPP for SPPC $cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], $HTTP_POST_VARS['id'])) + $HTTP_POST_VARS['cart_quantity'], $HTTP_POST_VARS['id']); // EOF QPBPP for SPPC } tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters))); break; Is this ok? or would you rather I post the whole application_top.php Thanks again. Rich
-
Hello, Compliments to Zappo for the great work! I do have a little problem using this contribution though. The file name uploaded is not passed on and shown in the Cart. All other chosen options show up correctly in the Cart. The file however is uploaded in both the temp dir and the upload dir. I suspected that I might have got the admin configuration (upload option values) messed up somehow but I could not see where I went wrong after comparing my configuration with the screenshots you attached with the contribution. I wonder - where did you define "- Your picture:" ? (this is the cart output value for upload on your website) This might give me an idea how the text and upload values differs. Thank you. Rich
-
Hello, Compliments to Zappo for the great work! I do have a little problem using this contribution though. The file name uploaded is not passed on and shown in the Cart. All other chosen options show up correctly in the Cart. The file however is uploaded in both the temp dir and the upload dir. I suspected that I might have got the admin configuration (upload option values) messed up somehow but I could not see where I went wrong after comparing my configuration with the screenshots you attached with the contribution. I wonder - where did you define "- Your picture:" ? (this is the cart output value for upload on your website) This might give me an idea how the text and upload values differs. Will appreciate your help. Thank you. Rich
-
Hi all, I have installed this contribution, specifically, mmosttler 19 Mar 2006 version. Everything looks right in place except the spiffycal calendar which doesn't work. That means that I can't enter the start date in admin because the text area doesn't show up.. I am almost certain that this is because the script can't find my javascript dir which ofcourse is rightly located in /includes/javascript/ Spiffycal calendar in /admin/categories.php also doesn't work. which is why I reckon it has to do with my javascript dir location as this was working before until I did the following: - I installed jdk1.5.0_14 (JavaTM 2 Platform Standard Edition Development Kit) on the same server. (Needed this for another program) - As a result, I have had to point java home to JDK location ie export JAVA_HOME=/usr/local/jdk1.5.0_14 Could this have probably broken a connection in oscommerce link to javascript location? If not, is there a way to point oscommerce scripts using spiffycal to /usr/local/jdk1.5.0_14 (may be place a copy of spiffycal javascript in that directory)? Anyone with ideas on how to solve this? Thanks in advance. Rich
-
Package Tracking with Email Notification Mods
RichSM replied to olsonsp4c's topic in General Add-Ons Support
Never mind. I have found the answer. There was a dir included in the mod "Tracking Buttons Mod" which addressed my problem. I applied the mod and it worked. Thanks. -
Package Tracking with Email Notification Mods
RichSM replied to olsonsp4c's topic in General Add-Ons Support
Very well done for your hard work. Nice contribution. With me, the contribution installed ok in catalog. However, in admin, while everything seem ok the four track buttons that are supposed to be next to the four related textarea don't show up. The button (button_tracker.gif) is loaded to admin/inc/lang/eng/images/button. When I looked at the code in admin/order.php, I only saw the code that creates the taxtaera : <td class="main"><b><a href="<?php echo $ups_track_link; ?>" target="_blank"><?php echo TABLE_HEADING_UPS_TRACKING; ?></a></b> <?php echo tep_draw_textbox_field('ups_track_num', '40', '40', '', $order->info['ups_track_num']); There is no code for the button, eg //echo tep_image_submit('button_tracker.gif', IMAGE_BUTTON_UPSTRACK, 'align=middle'); Or have I got it wrong? Help will be well appreciated. Thanks -
Very well done for your hard work. Nice contribution. With me, the contribution installed ok in catalog. However, in admin, while everything seem ok the four track buttons that are supposed to be next to the four related textarea don't show up. The button (button_tracker.gif) is loaded to admin/inc/lang/eng/images/button. When I looked at the code in admin/order.php, I only saw the code that creates the taxtaera : <td class="main"><b><a href="<?php echo $ups_track_link; ?>" target="_blank"><?php echo TABLE_HEADING_UPS_TRACKING; ?></a></b> <?php echo tep_draw_textbox_field('ups_track_num', '40', '40', '', $order->info['ups_track_num']); There is no code for the button, eg //echo tep_image_submit('button_tracker.gif', IMAGE_BUTTON_UPSTRACK, 'align=middle'); Or have I got it wrong? Help will be well appreciated. Thanks
-
Hello all, Could anyone explain to me what the term //level begin and //level end means in the install instruction? Example: regarding /admin/categories.php, am I supposed to look for <case 'insert_category':.....=> $sort_order);> and replace with <// Level begin .....// Level end> ? or paste <// Level begin .....// Level end> after / before<case 'insert_category':.....=> $sort_order);> ??? Please explain what goes where in simple english to me. I will appreciate it big time! Thanks. Rich
-
Could someone please help with this problem of mine
-
Hello all, After installing Easy Populater 2.79b-MS2, I got this error below on the admin panel. I have investigated and rummaged the forum for an answer but to no avail. Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/virtual/site64/fst/var/www/html/catalog/admin/includes/filenames.php:66) in /home/virtual/site64/fst/var/www/html/catalog/admin/includes/functions/sessions.php on line 67 Warning: Cannot modify header information - headers already sent by (output started at /home/virtual/site64/fst/var/www/html/catalog/admin/includes/filenames.php:66) in /home/virtual/site64/fst/var/www/html/catalog/admin/includes/functions/general.php on line 18 Your help will be most appreciated. Thank you.
-
Yes, I did without the ` and the query returns nothing. And yes, table customer_groups is in the database, it just wouldn't tolerate ` round it. Funny enough it accepts ' round it though, then you have something like this SELECT * FROM `'customers_groups'` WHERE 1 - in the standard customers_groups query. But the bottom line is the query still doesn't run. What's your comment to the way the value are inserted as I stated in a couple of my post back. Is that likely to affect the table's values wrongly?