Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

necrolust

Archived
  • Posts

    39
  • Joined

  • Last visited

Profile Information

  • Real Name
    Saank

necrolust's Achievements

  1. i applied the the register_globals patch for my site.. the contribution is here on the catalog section i have these errors: In rest, every thing seems to work fine.. the admin section is unable to access: what else shall i do??
  2. I just installed the contribution for payment modules - Leu virtual.ro You can find it at http://www.oscommerce.com/community/contributions,3335/ I have only one currency set up on my shop and the is RON (romanian leu). When I made a test order, everything went fine, except that in the end, the total amount of the order is converted into USD. I tried to fix the PHP code in order to remove all the content dealing with currencies update. But I didn't succeded. here's the code of what i have now! If anyone can solve it, I'd apreciate! Thanks <?php /* $Id: leuvirtual.php, osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2005 osCommerce Released under the GNU General Public License LeuVirtual module Created by Costescu Gabriel */ class leuvirtual { var $code, $title, $description, $enabled; // class constructor function leuvirtual() { $this->code = 'leuvirtual'; $this->title = 'LeuVirtual'; $this->description = 'LeuVirtual'; $this->sort_order = MODULE_PAYMENT_LEUVIRTUAL_SORT_ORDER; $this->enabled = ((MODULE_PAYMENT_LEUVIRTUAL_STATUS == 'True') ? true : false); if ((int)MODULE_PAYMENT_LEUVIRTUAL_ORDER_STATUS_ID > 0) { $this->order_status = MODULE_PAYMENT_LEUVIRTUAL_ORDER_STATUS_ID; } $this->form_action_url = 'https://www.leuvirtual.ro/en/pay/pay.php'; } // class methods 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; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $queryURL); curl_setopt ($ch, CURLOPT_TIMEOUT, 3); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); $result = curl_exec($ch); curl_close($ch); if (tep_not_null($result)) { $result_array = explode(',', urldecode($result)); $result = trim($result_array[1]); } $process_button_string = tep_draw_hidden_field('LV_PAYMENT_TO_ACCOUNT', MODULE_PAYMENT_LEUVIRTUAL_ACCOUNT) . tep_draw_hidden_field('LV_PAYMENT_AMOUNT', number_format(($order->info['total']) )) . tep_draw_hidden_field('LV_PAYMENT_METHOD', '1') . tep_draw_hidden_field('LV_PAYMENT_SUCCESS_URL', tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL')) . tep_draw_hidden_field('LV_PAYMENT_CANCEL_URL', tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL')) . tep_draw_hidden_field('LV_PAYMENT_STATUS_URL', 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_LEUVIRTUAL_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 LeuVirtual? Module', 'MODULE_PAYMENT_LEUVIRTUAL_STATUS', 'True', 'Do you want to accept LeuVirtual? 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 ('LeuVirtual Account Name', 'MODULE_PAYMENT_LEUVIRTUAL_NAME', 'xxxx', 'The name you wish to have displayed as the Payee on the LeuVirtual? payment form.', '6', '4', 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_LEUVIRTUAL_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, date_added) values ('LeuVirtual Account Number', 'MODULE_PAYMENT_LEUVIRTUAL_ACCOUNT', 'xxxxxx', 'Your LeuVirtual? account number to which the payment is to be made.', '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, use_function, date_added) values ('Set Order Status', 'MODULE_PAYMENT_LEUVIRTUAL_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_LEUVIRTUAL_STATUS', 'MODULE_PAYMENT_LEUVIRTUAL_NAME', 'MODULE_PAYMENT_LEUVIRTUAL_SORT_ORDER', 'MODULE_PAYMENT_LEUVIRTUAL_ACCOUNT', 'MODULE_PAYMENT_LEUVIRTUAL_ORDER_STATUS_ID'); } } ?>
  3. well.. I didn't understood a thing! :'(
  4. I want to put a link in the header for the "contact_us.php" file. How can I create a tag - $contact or smth?
  5. I have a suggestion to make. It will be great to add to this contribution an extra field - taxes. I added a new tax for shipping and I have to take every single product to insert the new tax. It will be much easier with quick stock update! Thanks!
  6. well.. i figured it out. it seems that my romanian language had the id=4 (!!) I changed that and every thing works fine now.. also I got rid off the model and weight columns, i don't really need them.. It'a a great contribution, congratulations..
  7. I recently installed the new version, but I get the same null output. It's too bad it won't work on every shop.. :'( this is a screenshot of what i get (i made the translations in romanian), but is the same thing.. (the resolution is small because of the file size)
  8. yeap.. I also installed the latest version but i get the same thing.. It's only the first sentence - please select a category.. or smth like this.. and then it's empty.. I can't figure what is wrong..
  9. This contribution can be found at: http://www.oscommerce.com/community/contributions,1965 the contribution for the products paging in the admin categories doesn't work as should do. I saw that someoane already listed the bug, but I didn't find the solution. 1.If you search for one item, and then click on a product after the search, you are redirected to the first page of that category, not to the product itself. 2. after editing a product, and click the "UPDATE" button, you are also redirected to the first page, and not to the page that product is listed. 3. if you are trying to delete a product, it says that some table in the database is missing. 1146 - Table 'mmusicr_mmusic.products_extra_images' doesn't exist delete from products_extra_images where products_id='277' [TEP STOP] 4. Who can I remove the three buttons listed on the right side (new product, new category and back).. because they are already there in the bottom of the page.
×
×
  • Create New...