Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

kev2me

Pioneers
  • Posts

    9
  • Joined

  • Last visited

About kev2me

  • Birthday 11/09/1981

Profile Information

kev2me's Achievements

  1. So I tried searching to find if anyone found a way to do Inclusions instead of Exclusions. After not finding anything I dug into the code myself and found a pretty simple and fast solution for the category, product, manufacturer, customer and shipping zone exclusion/inclusion options. In catalog\includes\classes\discount_coupon.php To change categories, products and manufacturers on lines 225 (category check), 247 (product check), 274 (manufacturer check) change: return false; to: return true; And on line 290 change: return true; to: return false; To change customers On line 66 change: if( tep_db_num_rows( $check_user_query ) > 0 ) { To: if( tep_db_num_rows( $check_user_query ) == 0 ) { To change shipping zone On line 80 change: if( tep_db_num_rows( $check_user_query ) > 0 ) { To: if( tep_db_num_rows( $check_user_query ) == 0 ) { :thumbsup:
  2. I made a quick hack in the paypal_wpp.php that should work 99% of the time, as long as you don't get orders every second. I replaced line 1386 in /catalog/includes/modules/payment/paypal_wpp.php: $order_info['PAYPAL_INVOICE_ID'] = ''; With the following lines of code: $order_query = tep_db_query("SELECT orders_id FROM " . TABLE_ORDERS . " ORDER BY orders_id DESC"); $order_id = tep_db_fetch_array($order_query); $order_info['PAYPAL_INVOICE_ID'] = ((int)$order_id['orders_id']+1); This basically finds that last orders_id number in your orders table and adds 1 to it which should be the next order_id number. But like I said, if there are delays or multiple orders placed it might get the wrong order_id. But for my purposes, it works like I want it to.
  3. I noticed there's a place for the PAYPAL_INVOICE_ID in the before_process function of paypal_wpp.php. I know we can't include the oscommerce orderid into that variable because the oscommerce orderid isn't created until after the paypal payment is processed and approved, but is there a way for the oscommerce orderid to be added to the paypal transaction after everything is processed, in the after_process function perhaps?
  4. Great contribution, this will save so many headaches. Thanks a lot! :thumbsup:
  5. It looks like when you copied PopOnTop's code there was a mod you didn't have installed, namely the Back Orders mod. I don't know if it has anything to do with this mod (I am about to install it) but you should probably back up your file and remove the following: <!-- backorder addition --> <?php $orders_history_backorder_query = tep_db_query("select backorders from " . TABLE_ORDERS_STATUS_HISTORY . " where orders_id = '" . (int)$HTTP_GET_VARS['order_id'] . "'"); $orders_history_backorder = tep_db_fetch_array($orders_history_backorder_query); if (tep_not_null($orders_history_backorder['backorders'])) { ?> <tr> <td colspan="3" align="left" valign="top" class="order_infobox_heading"><b>BACKORDER INSTRUCTIONS:</b></td> </tr> <tr> <td valign="top" class="product_infobox_data" width="114"><br> <strong><?php echo tep_date_short($order->info['date_purchased']); ?></strong></td> <td colspan="2" valign="top" class="product_infobox_data"><br><?php echo tep_db_output($orders_history_backorder['backorders']); ?></td> </tr> <tr> <td colspan="3"><?php echo tep_draw_separator('pixel_trans.gif', '100', '20'); ?></td> </tr> <?php } ?> <!-- end backorder addition --> And Find and remove: , osh.backorders Hopefully that helps.
  6. kev2me

    CVV2 with full details

    One more thing. /catalog/checkout_process.php: Find 'cc_number' => $order->info['cc_number'], And insert afterwards: 'cc_cvv2' => $order->info['cc_cvv2'], That will let the CVV2 data be written to the database. So now you can see it show up in the admin panel. :thumbsup:
×
×
  • Create New...