Jump to content

Sinister-Racing

Members
  • Content count

    68
  • Joined

  • Last visited

  1. Sinister-Racing

    QBI Quickbooks Import

    Adam, I read a post from last year regarding using the QBI with Quick books Merchant Processing. Is this feasible yet? Thanks, Michael
  2. Sinister-Racing

    QBI Quickbooks Import

    Adam, I read a post from last year regarding using the QBI with Quick books Merchant Processing. Is this feasible yet? Thanks, Michael
  3. Sinister-Racing

    Paypal module v 1.39 not allowing order process ???

    SOLVED PROBLEM, I GUESS I WAS TIRED. PROBLEM WITH PAYPAL WEBSITE REDIRECT.
  4. Sinister-Racing

    Paypal module v 1.39 not allowing order process ???

    This is the paypal.php <?php /* $Id: paypal.php,v 1.39 2003/01/29 19:57:15 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ class paypal { var $code, $title, $description, $enabled; // class constructor function paypal() { global $order; $this->code = 'paypal'; $this->title = MODULE_PAYMENT_PAYPAL_TEXT_TITLE; $this->description = MODULE_PAYMENT_PAYPAL_TEXT_DESCRIPTION; $this->sort_order = MODULE_PAYMENT_PAYPAL_SORT_ORDER; $this->enabled = ((MODULE_PAYMENT_PAYPAL_STATUS == 'True') ? true : false); if ((int)MODULE_PAYMENT_PAYPAL_ORDER_STATUS_ID > 0) { $this->order_status = MODULE_PAYMENT_PAYPAL_ORDER_STATUS_ID; } if (is_object($order)) $this->update_status(); $this->form_action_url = 'https://secure.paypal.com/cgi-bin/webscr'; } // class methods function update_status() { global $order; if ( ($this->enabled == true) && ((int)MODULE_PAYMENT_PAYPAL_ZONE > 0) ) { $check_flag = false; $check_query = tep_db_query("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . MODULE_PAYMENT_PAYPAL_ZONE . "' and zone_country_id = '" . $order->billing['country']['id'] . "' order by zone_id"); while ($check = tep_db_fetch_array($check_query)) { if ($check['zone_id'] < 1) { $check_flag = true; break; } elseif ($check['zone_id'] == $order->billing['zone_id']) { $check_flag = true; break; } } if ($check_flag == false) { $this->enabled = false; } } } function javascript_validation() { return false; } function selection() { return array('id' => $this->code, 'module' => $this->title); } function pre_confirmation_check() { return false; } function confirmation() { return false; } function process_button() { global $order, $currencies, $currency; if (MODULE_PAYMENT_PAYPAL_CURRENCY == 'Selected Currency') { $my_currency = $currency; } else { $my_currency = substr(MODULE_PAYMENT_PAYPAL_CURRENCY, 5); } if (!in_array($my_currency, array('CAD', 'EUR', 'GBP', 'JPY', 'USD'))) { $my_currency = 'USD'; } $process_button_string = tep_draw_hidden_field('cmd', '_xclick') . tep_draw_hidden_field('business', MODULE_PAYMENT_PAYPAL_ID) . tep_draw_hidden_field('item_name', STORE_NAME) . tep_draw_hidden_field('amount', number_format(($order->info['total'] - $order->info['shipping_cost']) * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency))) . tep_draw_hidden_field('shipping', number_format($order->info['shipping_cost'] * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency))) . tep_draw_hidden_field('currency_code', $my_currency) . tep_draw_hidden_field('return', tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL')) . tep_draw_hidden_field('cancel_return', tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL')); return $process_button_string; } function before_process() { return false; } function after_process() { return false; } function output_error() { return false; } function check() { if (!isset($this->_check)) { $check_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_PAYMENT_PAYPAL_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 PayPal Module', 'MODULE_PAYMENT_PAYPAL_STATUS', 'True', 'Do you want to accept PayPal payments?', '6', '3', '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, date_added) values ('E-Mail Address', 'MODULE_PAYMENT_PAYPAL_ID', 'you@yourbusiness.com', 'The e-mail address to use for the PayPal service', '6', '4', now())"); 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 ('Transaction Currency', 'MODULE_PAYMENT_PAYPAL_CURRENCY', 'Selected Currency', 'The currency to use for credit card transactions', '6', '6', 'tep_cfg_select_option(array(\'Selected Currency\',\'Only USD\',\'Only CAD\',\'Only EUR\',\'Only GBP\',\'Only JPY\'), ', 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 of display.', 'MODULE_PAYMENT_PAYPAL_SORT_ORDER', '0', 'Sort order of display. Lowest is displayed first.', '6', '0', 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 ('Payment Zone', 'MODULE_PAYMENT_PAYPAL_ZONE', '0', 'If a zone is selected, only enable this payment method for that zone.', '6', '2', '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, set_function, use_function, date_added) values ('Set Order Status', 'MODULE_PAYMENT_PAYPAL_ORDER_STATUS_ID', '0', 'Set the status of orders made with this payment module to this value', '6', '0', 'tep_cfg_pull_down_order_statuses(', 'tep_get_order_status_name', now())"); } function remove() { tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')"); } function keys() { return array('MODULE_PAYMENT_PAYPAL_STATUS', 'MODULE_PAYMENT_PAYPAL_ID', 'MODULE_PAYMENT_PAYPAL_CURRENCY', 'MODULE_PAYMENT_PAYPAL_ZONE', 'MODULE_PAYMENT_PAYPAL_ORDER_STATUS_ID', 'MODULE_PAYMENT_PAYPAL_SORT_ORDER'); } } ?>
  5. I am currently using the paypal module v 1.39. When somebody pays for an item with paypal the money goes through, but if the do not press the return to merchant button after, the order is never processed on the website. I get an email stating the payment notification but I do not know for what. Has this happed to anybody before? Thanks
  6. Sinister-Racing

    Enable/Disable categories contribution

    I tried to install The Enable/Disable Categories Contrib. Everything went fine as far as I could tell until the reload. All I had visable was the header and the 1st 2 boxes on the left. The rest was blank. The first 2 boxes we my Ebay auctions box and then my categories box with the Coolmenu as a contrib. I tried to restore the files with the backups and remove the one line that I added to the database (ALTER TABLE categories ADD categories_status TINYINT(1) UNSIGNED DEFAULT "0" NOT NULL;) But now all I have is jumbe from the Coolmenu and the following statement 1054 - Unknown column 'c.categories_status' in 'where clause' select c.categories_id, cd.categories_name from categories c, categories_description cd where parent_id = '0' and c.categories_id = cd.categories_id and c.categories_status = '1' and cd.language_id = '1' order by sort_order, cd.categories_name [TEP STOP] I did a search through all the files to find anything pertaining to the categories_status, but found nothing. If I reinsert the SQL command it goes back to the blank screen with the header and 2 boxes. any help would be greatly appreciated. The site this is concerning is http://www.speedcitymotors.com Thanks.
  7. I am currently using DHL's ShipIT API and I have lost some money by giving away free shipping to a few orders in the past week. All oredrs to AK or HAWAII or Canada for that matter have only displayed our Handling charge of $2.50 in the options for Ground and a few others when they shouldn't even be available. Does anybody know how to fix this error. I hate to ship stuff for almost free every time we get an order that cannot be delivered by Ground Shipping. Thanks in advance Mike
  8. Has anyone had a problem after the PWA was installed that the pop up of "This page contains both secure and nonsecure items, Do you want to display nonsecure items?" This message never came up prior to installing the PWA contrib. Any thoughts?
  9. Sinister-Racing

    Article Manager v1.0

    Rob, The one thing I was thinking about with the article manager was to be able to have articles in specific parts of the web site. I have a ton of extra room at the bottom of my pages and If you could put specific articles under the new products for the month are refferring to the category of product you are looking for. ie: Suspension Articles in the Suspension category. Take a peek at the site to get a better idea. http://www.sinister-racing.com/catalog/ind...p?cPath=103_100 Imagine a few articles underneath the new products for december, say 4. They would be displayed as: ARTICLE TITLE By: Whoever blah blah blah.. The article starts and there is a designated size for the article to fit in say 200 x 200 area box and at the bottom of the preview of the article it says Check out the rest of the story..... as a hyperlink to the actual full article. Just an Idea but I think many people would realy like it if it had the feature. Thanks, Mike
  10. Sinister-Racing

    Easypopulate - product attributes

    I have also posted many time regarding this same issue. I dont know why nobody has wondered about this before. That time I checked (Neo) was trying to work on this issue.
  11. I am rather new at this OSC stuff and I feel I have come a long way with learning the system, but once I saw the attribute copier the coding looked a little tough because I am not too familar with SQL databases. What would it cost to get the AC 5.0 put on my site. This contribution is not as easy as just overwriting php files as far as I can tell. Any help would be great. Mike
  12. Do anybody know how to specify the catagory image for the number of different subcatagories in easy populate. It will automatically create however many subcatagories you want but there is no field for the catagory image, in turn after it is uploaded ther are a bunch of catagories and subcatagories without pictures. Mike
  13. I just decided to start using easy populate this past week and it works great. The only gripe I have with the program is that in order to upload new product your catagories have to be set up first. Well thats somewhat true. You can create new catagories in the by putting the name of the catagory in the excel spreadsheet (v_catagory_id_6...or something like that) and easypopulate will create a new catagory if one doesn't already exist. The bad part is easy populate has no fields for catagory images, only product images. Does anybody know the code for the top field (example: v_product_id) for catagory images. I assume the code would be similar for catagories 1-7. If anybody knows this would be a great help and make creating my product for my site much easier and take way less time. Mike
×