Jump to content

tntmom5

Members
  • Content count

    49
  • Joined

  • Last visited

1 Follower

Profile Information

  1. tntmom5

    [Contribution] Dynamic MoPics

    After doing some more testing. The only problem I seem to have with Dynamic MoPics and PHP 4.3.8 is when I have the mail thumb in the thumbs directory. For example, when I indicate that the main thumb is in the thumbs directory the procedure for adding images to a product is to type thumbs/imagename.gif in the box on the add images page. When I do this the problem occurs where the image is put in images not images/thumbs and the file is owner/group "apache." The image then does not show up. If I instead, just use the browse button to upload the images or just type imagename.gif in the box. And have my Dynamic Mopics set to look for the main thumb in the images directory, I have no problem. I am going to set up all my stores that way to avoid this problem. I will post if I have any other revelations. :) Tracy
  2. tntmom5

    [Contribution] Dynamic MoPics

    I am having this same problme since upgrading to php 4.3.8. I am running Dynamic MoPics version 2.2. Not only does the path of the images get reset, but the dummy image file that is created in the images folder (instead of images/thumbs where I told it to do it) has the owner and group of "apache". Weird. Tracy Gibson
  3. Allen, In catalog/product_info.php you added this: //clr 030714 update query to pull option_type $products_options_name_query = tep_db_query("select distinct popt.products_options_id, popt.products_options_name, popt.products_options_type, popt.products_options_length, popt.products_options_comment from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int)$languages_id . "' order by popt.products_options_name"); while ($products_options_name = tep_db_fetch_array($products_options_name_query)) { //clr 030714 add case statement to check option type That line sorts that product options by name or alphabetically. You probably added your options in the order you wanted them displayed, so if you change it to sort by options ID, it will display in the order you entered it. Change the 1st code line from this: $products_options_name_query = tep_db_query("select distinct popt.products_options_id, popt.products_options_name, popt.products_options_type, popt.products_options_length, popt.products_options_comment from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int)$languages_id . "' order by popt.products_options_name"); to: $products_options_name_query = tep_db_query("select distinct popt.products_options_id, popt.products_options_name, popt.products_options_type, popt.products_options_length, popt.products_options_comment from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int)$languages_id . "' order by popt.products_options_id"); Tracy
  4. I am under the impression that you do have to enable IPN in Paypal. I am using .971
  5. In the Admin, go in to edit the Paypal IPN Module. See the part that says: Set this to Pending and after the payment goes through the status should change from Paypal Processing to Pending. Let me know if this works, I am trying to confirm it.
  6. I have Chandra's contribution working perfectly with 2.2-MS1. Here is a store under development if you would like to see it in action. http://ladybugbooks.net/default.php This is a personalized book dealer. Each book has 10-15 text fields. Payment modules are on so don't complete the order, but you can go as far as the confimation page to see the options listed. The store goes live in a day or two. I am only using the text options, haven't tried the radio or check boxes. Let me know if I can help.
  7. This also explains the discrepency with the get_order_status_name. This function is included here. So, I am not sure what to do about that. I will let you know.
  8. Ok I found it. admin/includes/functions/general.php is missing the following code. This applies to the 2.2-CVS that is installed by cpanel6. Insert around line 1250, after this: return $classes['geo_zone_name']; } } function tep_cfg_pull_down_order_statuses($order_status_id, $key = '') { global $languages_id; $name = (($key) ? 'configuration[' . $key . ']' : 'configuration_value'); $statuses_array = array(array('id' => '0', 'text' => TEXT_DEFAULT)); $statuses_query = tep_db_query("select orders_status_id, orders_status_name from " . TABLE_ORDERS_STATUS . " where language_id = '" . $languages_id . "' order by orders_status_name"); while ($statuses = tep_db_fetch_array($statuses_query)) { $statuses_array[] = array('id' => $statuses['orders_status_id'], 'text' => $statuses['orders_status_name']); } return tep_draw_pull_down_menu($name, $statuses_array, $order_status_id); } function tep_get_order_status_name($order_status_id, $language_id = '') { global $languages_id; if ($order_status_id < 1) return TEXT_DEFAULT; if (!is_numeric($language_id)) $language_id = $languages_id; $status_query = tep_db_query("select orders_status_name from " . TABLE_ORDERS_STATUS . " where orders_status_id = '" . $order_status_id . "' and language_id = '" . $language_id . "'"); $status = tep_db_fetch_array($status_query); return $status['orders_status_name']; } and before this: //// // Return a random value
  9. This is so weird. I have one store with 2.2-MS1 where the function called in paypalipn.php is order without the s and that one works fine. Except that one is having problems with the IPN test. Then I have a store that is Preview release 2.2-CVS and that is the one which had the problems discussed in this thread and the error was corrected with the change in the code I listed above. Both stores have IPN .971 installed. I can't figure this out. So strange.
  10. Now that we solved that, when you click on the Edit button for the Paypal IPN module you get this error: Fatal error: Call to undefined function: tep_cfg_pull_down_order_statuses() in /home/drytush/public_html/store/admin/modules.php(204) : eval()'d code on line 1 So now we have to find out why tep_cfg_pull_down_order_statuses is undefined.
  11. Well, since I am talking about the paypalipn function the paypal.php does not apply. But you did send me in the right direction and I found what I was looking for. In includes/modules/payments/paypalipn.php Change this: # tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, use_function, date_added) values ('Set Order Status', 'MODULE_PAYMENT_PAYPALIPN_ORDER_STATUS_ID', '0', 'Set the status of orders made with this payment module to this value', '6', '14', 'tep_cfg_pull_down_order_statuses(', 'tep_get_order_status_name', now())"); To this: tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, use_function, date_added) values ('Set Order Status', 'MODULE_PAYMENT_PAYPALIPN_ORDER_STATUS_ID', '0', 'Set the status of orders made with this payment module to this value', '6', '14', 'tep_cfg_pull_down_order_statuses(', 'tep_get_orders_status_name', now())"); The only difference is that tep_get_order_status_name becomes tep_get_orders_status_name. This is the correct name of the function The error has now disappeared. Please note that I had to disable and then enable paypalIPN, for it to take effect.
  12. This error occurred for me with Preview Release 2.2-CVS, since I added the Paypal IPN .971 overwrite and run: Warning: call_user_func() expects first argument, 'tep_get_order_status_name', to be a valid callback in /home/sites/www.perfumeparadise.ca/web/catalog/admin/includes/functions/general.php on line 1232 In admin/includes/functions/general.php the function that this is trying to call is tep_get_orders_status_name, but in the error listed here and the error I am getting it say: 'tep_get_order_status_name' So the question is, what file is calling this function with the wrong name? I am looking, but I can't find it.
  13. Modules -> Payments
  14. I finally fixed this (hopefully). I was getting this: I made the following changes: .../includes/configure.php and .../admin/includes/configure.php change 'STORE_SESSIONS', '' to 'STORE_SESSIONS', 'mysql' in both files near the end of the file. And then started getting this error: Then I used Tony's fix here: http://forums.oscommerce.com/viewtopic.php...=38639&start=10 and the errors have stopped. Hope it lasts.
×