dennis99_donna99 Posted October 17, 2005 Share Posted October 17, 2005 I don't konw PHP , hope someone can help I have add Paypal address box in admin/ categories.php call products_paypal I think we only need to change the MODULE_PAYMENT_PAYPAL_ID to products_paypal, then the store can allow more seller! 1. how to connect DB to get the value products_paypal in table_products 2. How to prefectly set where [] = [] ??? I will post this Contribution when finish! Hope we can make Oscommere more powerful! thanks *** my code *** $dbcnx=mysql_connect('localhost' , 'host' , 'mypasswortd'); mysql_select_db('foo', $dbcnx); $product_info_query = tep_db_query("select products_paypal from " . TABLE_PRODUCTS . " where '" . (int)$HTTP_GET_VARS['products_id'] . "' = products_id",$dbcnx); $product_info = tep_db_fetch_array($product_info_query); Link to comment Share on other sites More sharing options...
nana Posted October 18, 2005 Share Posted October 18, 2005 what if customer buys five product from five sellers Link to comment Share on other sites More sharing options...
dennis99_donna99 Posted October 18, 2005 Author Share Posted October 18, 2005 I am biuld a system close to eBay! Just change the checkout -> Confirmation in two step then create a buyer page, that must solve the problem in a more simple method! I am a Super Powerful eBay Seller, hope to make a site to kill eBay! Please help Link to comment Share on other sites More sharing options...
dennis99_donna99 Posted October 18, 2005 Author Share Posted October 18, 2005 I have many problem to make this site, I can pay if someone can help me! 1. Mutli Paypal system 2. Send auto email after 15 days to check the delivery status 3. Fix the categories problem, my one only can show the first level categories, want to show all subcategories under SELECT categories 4. Easy_populate is too difficult for use, need a close system which is more uasful for non IT ppl thanks! hope we can kill eBay very soon! Link to comment Share on other sites More sharing options...
nana Posted October 18, 2005 Share Posted October 18, 2005 1. Mutli Paypal system to get paypal email address from product not very hard just make an extra field for product 2.- a cron that runs every day 3-should not be hard e to find problem 4 easier than easypopulate look in contribution may be still original problem customer add product 1 to cart from seller 1 also product 2 from seller 2 also product 3 from seller 3 go to pay then he must pay to three seller and more and more how to fix this problem Link to comment Share on other sites More sharing options...
dennis99_donna99 Posted October 18, 2005 Author Share Posted October 18, 2005 you can help me??? pls!!! Sorry I need a system for import eBay list by CSV from turbo lister only! how to solve the seller ABC problem, I think we can do something like this! 1. products_info -> BUY -> confirmation BUY 2. Add that product in my account buyer page with a. title, item no, price, day, link to pay [paypal], invoice * link to pay [paypal] - use mutli paypal account to direct buyer to correct paypal account to complete payment b. My admin have multi shop function, so seller can use some fuction close to eBay c. customer may need to buy agian and agian for each seller at the past but as I know Paypal have a new function to solve this differnt seller problem! I can share my code with you too! Please help! Please advance how to select products_paypal in TABLE_PRODUCTS and set where function.. thanks! *** Paypal.php under catalog/includes/modules/payment/ *** <?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', '[email protected]', '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'); } } ?> Link to comment Share on other sites More sharing options...
cannuck1964 Posted October 18, 2005 Share Posted October 18, 2005 I have not heard that paypal can process more then one vendor order at a time, and I am not sure which paypal system would employ this. Looping through the cart/checkout part of the system and allowing for each vendors items to be purchased is the way I went with this. So if a customer has items from vendors A,B,C the customer would need to purchase the items separately each time. Why you ask? well this is so the vendor can control their shipping, and payment systems. If Vendor A ships from one location and vendor B from another, the shipping costs will not be the same, depending on what method (s) are used. Order tracking is simplified, and each vendor manages their own mini "shop". This can be applied to the payment methods as well. There is a lot to deal with and if you need more info, feel free to PM me on the issue, as I understand exactly what you are trying to do with the system. cheers, Peter M. Peter McGrath ----------------------------- See my Profile (click here) for more information and to contact me for professional osCommerce support that includes SEO development, custom development and security implementation Link to comment Share on other sites More sharing options...
nana Posted October 18, 2005 Share Posted October 18, 2005 if you are trying to use a shopping mall system peter's approach should work. if you just want to set up the paypal as you have already described l change tep_draw_hidden_field('business', MODULE_PAYMENT_PAYPAL_ID) to tep_draw_hidden_field('business', $products_paypal) . and make the value of $products_paypal based on the product Link to comment Share on other sites More sharing options...
cannuck1964 Posted October 18, 2005 Share Posted October 18, 2005 I am still curious to how you will manage the paying of several paypal accounts at one go? I believe you can submit a batch payment request to paypal, but not sure if this can be automated, and deal with this as a customer purchase, if not, the only alternative is to loop through the payment systemt for each seller/vendor. Please elaborate on how you would achieve the payment of several sellers (paypal accounts) to be processed at one go.... cheers, Peter M. Peter McGrath ----------------------------- See my Profile (click here) for more information and to contact me for professional osCommerce support that includes SEO development, custom development and security implementation Link to comment Share on other sites More sharing options...
nana Posted October 18, 2005 Share Posted October 18, 2005 yes me too. i do not know how you are going to make this work with paypal Chen Wai Chi please provide a link to the paypal page with this feature. Link to comment Share on other sites More sharing options...
dennis99_donna99 Posted October 19, 2005 Author Share Posted October 19, 2005 tep_draw_hidden_field('business', $products_paypal) . I know that. but how to set where [] = []? products_paypal for each listing are different , just base on the paypal address they mark at the creat listing page. both an eBay seller? will us have the same target! If we does, hope we can solve all the problem and share the code, okay? If you can help me, I will tell you what I know! P.S. eBay Super Power seller, I am! Link to comment Share on other sites More sharing options...
nana Posted October 19, 2005 Share Posted October 19, 2005 add a field to the customers called paypal_email then in checkout_confirmation you have to search for this email address and put it in the session. you still have to limit the purchase to one seller at a time.unless you can feed multi seller to paypal then it all depends on how you have to send the information.to paypal if you are trying to use paypal affiliate program then i have to read how that works but as of now i do not know how to use that feature in ebay people buy one item at a time. in a shopping cart they might buy more and that is the diffrence. Link to comment Share on other sites More sharing options...
dennis99_donna99 Posted October 19, 2005 Author Share Posted October 19, 2005 nana DO you have a site? Yes, you are correct! my way is ebay checkout! one by one simple = easy, do you agree? Why eBay can be the Biggest Oline World's Marketplace? If my site for one seller only, shopping cart is important! But my site will have thousand or more seller. If you don't mind, you can sell in my site too. *** Free of charge *** can you give me complete code of products_paypal? my icq: 146746758 Link to comment Share on other sites More sharing options...
dennis99_donna99 Posted October 20, 2005 Author Share Posted October 20, 2005 have the program? I never know that, please tell me more information, thanks Link to comment Share on other sites More sharing options...
dennis99_donna99 Posted October 21, 2005 Author Share Posted October 21, 2005 u want to sell in your own site? nana Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.