Jump to content

phenixmarketing

Members
  • Content count

    18
  • Joined

  • Last visited

Everything posted by phenixmarketing

  1. Hello, I am trying to setup multiple individual shipping pricing to offer special delivery and assembly services. I currently have a regular table system set up to offer cheap or free ground shipping on all products. And I have installed Multiple Individual Product Shipping Prices so that I can offer premium services for in home delivery, white glove assembly, etc. http://addons.oscommerce.com/info/2918 However, the premium in home delivery and assembly services only apply for big ticket items. I don't want this to show up if the customer buys a book online. I found this contribution to disable shipping options based on the value of the sale. If I set the limit for the Individual Product Shipping module to appear only for orders over $400, this should work. http://addons.oscommerce.com/info/5431 Unfortunately I have not been able to figure out how to modify the Individual Shipping module correctly to get this to work. Can anyone help explain exactly how to configure the indvship.php file to set the price limit? Thanks in advance for the help. Pete Here is the code from the Indivdual Shipping module I am using: <?php /* $Id: indvship2.php,v 1.0 2003/07/07 00:00:01 hpdl Exp $ by D. M. Gremlin osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ class indvship1 { var $code, $title, $description, $icon, $enabled; // class constructor function indvship1() { global $order; $this->code = 'indvship1'; $this->title = MODULE_SHIPPING_INDVSHIP1_TEXT_TITLE; $this->description = MODULE_SHIPPING_INDVSHIP1_TEXT_DESCRIPTION; $this->sort_order = MODULE_SHIPPING_INDVSHIP1_SORT_ORDER; $this->icon = ''; $this->tax_class = MODULE_SHIPPING_INDVSHIP1_TAX_CLASS; $this->enabled = ((MODULE_SHIPPING_INDVSHIP1_STATUS == 'True') ? true : false); // Enable Individual Shipping Module $this->enabled = MODULE_SHIPPING_INDVSHIP1_STATUS; if ( ($this->enabled == true) && ((int)MODULE_SHIPPING_INDVSHIP1_ZONE > 0) ) { $check_flag = false; $check_query = tep_db_query("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . MODULE_SHIPPING_INDVSHIP1_ZONE . "' and zone_country_id = '" . $order->delivery['country']['id'] . "' order by zone_id"); while ($check = tep_db_fetch_array($check_query)) { if ($check['zone_id'] < 2) { $check_flag = true; break; } elseif ($check['zone_id'] == $order->delivery['zone_id']) { $check_flag = true; break; } } if ($check_flag == false) { $this->enabled = false; } } } // class methods function quote($method = '') { global $order, $cart; $shiptotal1 = $cart->get_shiptotal1(); $this->quotes = array('id' => $this->code, 'module' => MODULE_SHIPPING_INDVSHIP1_TEXT_TITLE, 'methods' => array(array('id' => $this->code, 'title' => MODULE_SHIPPING_INDVSHIP1_TEXT_WAY, 'cost' => $shiptotal1))); if ($this->tax_class > 0) { $this->quotes['tax'] = tep_get_tax_rate($this->tax_class, $order->delivery['country']['id'], $order->delivery['zone_id']); } if (tep_not_null($this->icon)) $this->quotes['icon'] = tep_image($this->icon, $this->title); return $this->quotes; } function check() { if (!isset($this->_check)) { $check_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_SHIPPING_INDVSHIP1_STATUS'"); $this->_check = tep_db_num_rows($check_query); } return $this->_check; } function install() { tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable Individual Shipping Prices 1', 'MODULE_SHIPPING_INDVSHIP1_STATUS', 'True', 'Do you want to offer individual shipping prices?', '6', '0', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Tax Class', 'MODULE_SHIPPING_INDVSHIP1_TAX_CLASS', '0', 'Use the following tax class on the shipping fee.', '6', '0', 'tep_get_tax_class_title', 'tep_cfg_pull_down_tax_classes(', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Shipping Zone', 'MODULE_SHIPPING_INDVSHIP1_ZONE', '0', 'If a zone is selected, only enable this shipping method for that zone.', '6', '0', 'tep_get_zone_class_title', 'tep_cfg_pull_down_zone_classes(', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort Order', 'MODULE_SHIPPING_INDVSHIP1_SORT_ORDER', '0', 'Sort order of display.', '6', '0', now())"); } function remove() { tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')"); } function keys() { return array('MODULE_SHIPPING_INDVSHIP1_STATUS', 'MODULE_SHIPPING_INDVSHIP1_TAX_CLASS', 'MODULE_SHIPPING_INDVSHIP1_ZONE', 'MODULE_SHIPPING_INDVSHIP1_SORT_ORDER'); } } ?>
  2. I've just tried installing the Discount Coupon contribution which requires a unique sort order under the Order Total Modules. However, when I install and set the sort order, nothing is displayed for a sort order in the module list. And when I edit the existing modules to change their sort order, the new sort order appears on the right under the module details. But the list of modules still shows the original sort order. I've tried removing all modules and reinstalling and configuring the sort order. But no matter what I do, nothing changes. I've even tested the site and the order total information stays the same no matter what I change, remove, or add in the admin system. It appears that the admin settings simply don't do anything but I have no idea why. Does anyone know how to fix this or can anyone at least point me in the right direction to figure out what the problem is? Thanks Pete
  3. phenixmarketing

    [Contribution] Discount Coupon Codes

    I'm having the same problem with my installation. The install was fairly easy and the admin system works perfectly. However, there is not coupon box on the checkout_payment.php page. I'm not getting an error - the option to enter a coupon just doesn't show up. The only information I've read is that there is some issue with setting a unique value to the module sort order. And I've read a recommendation to remove and then re-install all Order Total Modules. Neither of these recommendations works. But I have noticed an odd issue with my sort order settings. I can edit each module and set the sort order for each and this value shows up on the right where it displays the details under the remove or edit buttons. But the list of modules still shows the original modules listed with their original sort order. The Discount Coupon module sort order is blank in the listing. I assume there is something wrong with the Module install and sort order update but I have no clue what it could be. Does anyone have any idea what the solution is for this? Thanks Pete
  4. I've set up my site with the individual shipping per product contribution and have successfully set up the product pages on my site to display the individual shipping price or display a Free Shipping message when the price is set to zero. However, if a customer orders a product with free shipping, the checkout_shipping.php page shows this message under the Shipping Method: "This is currently the only shipping method available to use on this order." No other shipping info is displayed and when the customer clicks continue, it will just reload the page and will not continue to the payment page and they can not complete the order. Now, if the customer orders a product with a shipping rate or includes another item with shipping in their order, the message under the Shipping Method displays the following: "This is currently the only shipping method available to use on this order. Individual Shipping Flat Shipping Rate $15.00 " Does anyone know how to get this to work properly? It seems like it should be simple just to display "Flat Shipping Rate $0.00" when the individual shipping rate is set to zero. Ideally, I'd like to have this display a text message "Free Shipping" instead of the zero just the way that it works on the product info page. I've searched everywhere for information on free shipping and it seems that the only way to configure free shipping is by total product order, category, or for the entire site. I just want to set shipping rates for each product so Product A ships for $10 and Product B ships for Free. If this system works to set Product A at $10 shipping, I don't understand why it won't work to set Product B at $0 shipping. Thanks in advance! Pete
  5. Problem solved. I dont' know what the problem was or what the exact solution was. I just went back and re-installed all of the code modifications for the Indv Ship contrib, uploaded the files again and it worked. I have no idea why.
  6. phenixmarketing

    [contribution] individual product shipping prices

    Hello, I've run into a problem on the checkout_shipping.php page with any product that is set with zero shipping cost. I've successfully set up the product pages on my site to display the individual shipping price or display a Free Shipping message when the price is set to zero. However, if a customer orders a product with free shipping, the checkout_shipping.php page shows this message under the Shipping Method: "This is currently the only shipping method available to use on this order." No other shipping info is displayed and when the customer clicks continue, it will just reload the page and will not continue to the payment page and they can not complete the order. Now, if the customer orders a product with a shipping rate or includes another item with shipping in their order, the message under the Shipping Method displays the following: "This is currently the only shipping method available to use on this order. Individual Shipping Flat Shipping Rate $15.00 " Does anyone know how to get this to work properly? It seems like it should be simple just to display "Flat Shipping Rate $0.00" when the individual shipping rate is set to zero. Ideally, I'd like to have this display a text message "Free Shipping" instead of the zero just the way that it works on the product info page. Thanks in advance! Pete
  7. phenixmarketing

    edgeoi feed error

    Hi Future1, Could you please be more specific to let us know where to put this code. My source code shows this "while($row = tep_db_fetch_array($result)){" in 3 places on line 59, line 105, and 163. Also when you say "and add this:" did you mean immediately after the line, under the line of code, or in place of the code? Thanks for the additional clarification.
  8. Hello, I've installed STS and everything works perfectly except the popup image window. With STS active, the enlarge image link opens a minimized window of my blank page template. I've narrowed down the issue by trail and error to this code in the sts_display_output.php file: // Override if we need to show a pop-up window $scriptname = $_SERVER['PHP_SELF']; $scriptname = getenv('SCRIPT_NAME'); $scriptbasename = substr($scriptname, strrpos($scriptname, '/') + 1); // If script name contains "popup" then turn off templates and display the normal output // This is required to prevent display of standard page elements (header, footer, etc) from the template and allow javascript code to run properly if (strpos($scriptname, "popup") !== false || strpos($scriptname, "info_shopping_cart") !== false) { $display_normal_output = 1; $display_template_output = 0; } When I change the following line: if (strpos($scriptname, "popup") !== 1|| strpos($scriptname, "info_shopping_cart") !== false) { Then the popup image on the product detail page works perfectly but the product page is displayed as the OSC default template without my customized layout and styles. The only similar post on this issue was from Ignission who recommended the following change to this code: //if (strpos($scriptname, "popup") !== false || strpos($scriptname, "info_shopping_cart") !== false) { if ($HTTP_GET_VARS['popup'] == 1) { $display_normal_output = 1; $display_template_output = 0; Unfortunately, I tried this but got the same result. The popup image works but STS doesn't or visa versa. I would greatly appreciate any advice to solve this issue to get the popup image to display correctly along with my custom STS layout. Thank you! Pete
  9. phenixmarketing

    Easy Populate Not Working

    Well, I was unable to find any help here on the forums but finally figured out the problem. It's just a simple fix based on a misinterpretation of the instructions. In the easypopulate.php file, you'll find these instructions: // Please set DOCUMENT_ROOT to $DOCUMENT_ROOT in your /catalog/admin/includes/configure.php $tempdir = "/catalog/temp/"; $tempdir2 = "/catalog/temp/"; More specifically, you'll need to modify the following line in the configure.php file like so: Find: define('DIR_FS_DOCUMENT_ROOT', '/usr/local/apache/htdocs'); // where the pages are located on the server Replace with: define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where the pages are located on the server This is actually the default in the original OSC configure.php file but if you enterred your absolute path you will need to make sure you remove the ' ' from the section. Simply copying and pasting $DOCUMENT_ROOT in place of the absolute path inside of the quotes will not work. I'm sure plenty of people understood this but it's not obvious to some of us non-technical types just following instructions. Good luck. Pete
  10. phenixmarketing

    Easy Populate Not Working

    Hello, I've been trying to get Easy Populate to work and I went through the install twice and followed the instructions exactly. After uploading my first file, nothing happens. I've read the trouble shooting notes and additional documentation for this contribution and can't find any explanation. When I upload the file, I get this message: File uploaded. Temporary filename: /tmp/phpBGP1Ic User filename: EP2005Oct08-1212-upload.txt Size: 24221 I don't get any error message at all. When I upload from the Temp directory, I get this message: Filename: Filename: EP2005Oct08-1212-upload.txt I've checked the file several times and broke it down into smaller pieces of less than 100 products per file. Nothing happens. Due to the lack of any describable error message, I dont' know where to start looking for a problem. Can anyone point me in the right direction? Thanks! Pete
  11. phenixmarketing

    Please help with STS Popup Image Error

    Ok, after several failed attempts at getting help, I was able to figure this one out. Here are the steps I took if anyone else needs to fix the same problem: 1) I got rid of the version 3.0 install that I started with and restarted with 2.01. If you have the WebMakers Header Tags Controller Intstalled, then change the sts_display_output.php file here: Find this section: // BOF: WebMakers.com Changed: Header Tag Controller v1.0 // Replaced by header_tags.php if ( file_exists(DIR_WS_INCLUDES . 'header_tags.php') ) { require(DIR_WS_FUNCTIONS . 'clean_html_comments.php'); require(DIR_WS_FUNCTIONS . 'header_tags.php'); require(DIR_WS_INCLUDES . 'header_tags.php'); } else { echo "<title>" . TITLE . "</title>"; } // EOF: WebMakers.com Changed: Header Tag Controller v1.0 And replace with this code: // BOF: WebMakers.com Changed: Header Tag Controller v1.0 // Replaced by header_tags.php if ( file_exists(DIR_WS_INCLUDES . 'header_tags.php') ) { require_once(DIR_WS_FUNCTIONS . 'clean_html_comments.php'); require_once(DIR_WS_FUNCTIONS . 'header_tags.php'); require(DIR_WS_INCLUDES . 'header_tags.php'); } else { echo "<title>" . TITLE . "</title>"; } // EOF: WebMakers.com Changed: Header Tag Controller v1.0 This is actually indicated in the HTC Install_Catalog instructions. 2) Follow the instructions for the "Error Fixed" post from Alejandro Rodriguez the STS contribution page dated April 2, 2004. 3) Follow the instructions for the "STS 2.01 Bug fixes" post from Christophe B. on the STS contribution page dated Aug 25, 2004. These corrections may also work in the 3.0 version but I have not tested this. Frankly I'm a little suprised that these were not included in 3.0 since they have been public for a year before the 3.0 release. Also, if you use HTC, DO NOT use the "sts_header_tag_fix" instructions from ITNetwork Designs dated April 24, 2005. With HTC installed, this will break the site. Without HTC, I'm not sure what it does. That's it. I've tried almost every other solution posted on the STS Contribution page and in this forum and none of them worked. Good luck. Pete
  12. phenixmarketing

    Please help with STS Popup Image Error

    Ok, I haven't heard back from anyone on this yet and have spent the weekend searching through every post regarding STS and popup images. I've found several references to changing the Javascript in the header of the product_info.php.html file along with a code change in the sts_product_info.php file. This topic came the closest to getting the issue fixed: http://forums.oscommerce.com/index.php?showtopic=149771&hl= However, I've found 2 problems: 1) The product_info.php.html file is not working on my site. Any changes I make to this do not show up and I checked the debugging option in the STS output file and found my product detail page was still pulling from the default template. 2) If I follow dave111's instructions in the topic linked above and place the javascript code in the header of my default template, I get a popup window instead of an error but the window only opens to an empty template page again. Has anyone found a solution to these problems? It seems like there is a lack of correct instructions in STS or a bug that has not been addresses in the latest contribution release. Any advice on this matter would be greatly appreciated. Thanks! Pete
  13. Hello, I'm having the same problem and have checked the path to my temp file and tried it many different ways with absolutely no success. Please reply and let me know exactly how my path should appear: /product-catalog/temp/ /temp/ /u/web/hea200/product-catalog/temp/ And I've tried all of these with and without using the $DOCUMENT_ROOT in the /admin/includes/configure.php file. Please help. I've tried this a dozen ways and EP doesn't even give me the satisfaction of generating an error message to give me a clue what's going on. I just keep getting this message: File uploaded. Temporary filename: /tmp/phpbi7Cit User filename: EP2005Oct08-1212-upload.txt Size: 24547 But no products! Please help. Thanks! Pete
  14. phenixmarketing

    Easy Populate Not Working

    Ok, I've double checked the config file, temp folder setup, and even changed my upload file field separator from tab to ~ to ; and back again with no success. And I even installed a clean, un-modified OSC without any other contributions and got the same problem. I'd be happy to post my text file but don't see any way to add an attachment to this message. However, the text file I've tested is an exact export from EP and the exact same data won't go back into the catalog. I just get this message: File uploaded. Temporary filename: /tmp/phpW0BgQB User filename: EP2005Oct08-1212-upload.txt Size: 24547 There is absolutely nothing to indicate I've done anything wrong and it just doesn't work. Does anyone know of another solution to import products and pricing in bulk?
×