Jump to content

user99999999

Members
  • Content count

    1,186
  • Joined

  • Last visited

1 Follower

Profile Information

  • Real Name
    Dave...
  1. user99999999

    [CONTRIBUTION] CCGV (trad)

    In admin/gv_mail.php change 2 lines like below. Also catalog/gv_send.php and maybe more. From: $insert_id = tep_db_insert_id($insert_query); To: $insert_id = tep_db_insert_id(); Reason: Pre rc1 tep_db_insert_id() did not take a parameter so this did not cause a problem. In rc1 tep_db_insert_id() now takes an optional parameter the name of a secondary db connection so this code will now cause a problem.
  2. user99999999

    [Contribution] Breadcrumb for Admin

    Actually the td is needed to make the >> the same. td.headerNavigation { font-family: Verdana, Arial, sans-serif; font-size: 16px; color: #000000; font-weight: bold; }
  3. user99999999

    [Contribution] Breadcrumb for Admin

    Try the css now it works good and the contrib download is updated. Fixed reference to stylesheet.php, should be stylesheet.css Fixed headerNavigation css. It was missing active/visited and had uneeded tr/td. Copied from menuBoxContentLink. a.headerNavigation:link { font-family: Verdana, Arial, sans-serif; font-size: 12px; color: #616060; font-weight: bold; text-decoration: none; } a.headerNavigation:visited { font-family: Verdana, Arial, sans-serif; font-size: 12px; color: #616060; font-weight: bold; text-decoration: none; } a.headerNavigation:active { font-family: Verdana, Arial, sans-serif; font-size: 12px; color: #616060; font-weight: bold; text-decoration: none; } a.headerNavigation:hover { font-family: Verdana, Arial, sans-serif; font-size: 12px; color: #616060; font-weight: bold; text-decoration: underline; }
  4. user99999999

    [Contribution] Breadcrumb for Admin

    Only use the headerNavigation section from catalog/stylesheet.css TR.headerNavigation { background: #bbc3d3; } TD.headerNavigation { font-family: Verdana, Arial, sans-serif; font-size: 10px; background: #bbc3d3; color: #ffffff; font-weight : bold; } A.headerNavigation { color: #FFFFFF; } A.headerNavigation:hover { color: #ffffff; }
  5. [Contribution] Breadcrumb for Admin This is a breadcrumb for admin copied from the store http://www.oscommerce.com/community/contributions,4093 Thanks for the PM, I had trouble with the css myself so I will look at it again and see if I messed something up. You might want to take the css from the store and start fresh. catalog/stylesheet.css {headerNavigation} Dave... [Contribution] Breadcrumb for Admin
  6. Hi, I messed around with the froeach() section there and figured it must be some kind of bug. And walla.... You need to update Zend Optimzer. http://www.zend.com/zend/week/week215.php
  7. user99999999

    viaKlix - Help

    These should have a period for the seperator tep_draw_hidden_field('ssl_amount', number_format($order->info['total'] * $currencies->get_value('USD'), 2, '.','')) . tep_draw_hidden_field('ssl_salestax', number_format($order->info['tax'] * $currencies->get_value('USD'), 2, '.','')) . For the test number I changed includes/classes/cc_validation.php so that the card type will be Other and not return an error if it doesn fit in the known ranges. The payment gateways dont need this info and there seems to be new ranges and range errors in this code. if (ereg('^4[0-9]{12}([0-9]{3})?$', $this->cc_number)) { $this->cc_type = 'Visa'; } elseif (ereg('^5[1-5][0-9]{14}$', $this->cc_number)) { $this->cc_type = 'Master Card'; } elseif (ereg('^3[47][0-9]{13}$', $this->cc_number)) { $this->cc_type = 'American Express'; } elseif (ereg('^3(0[0-5]|[68][0-9])[0-9]{11}$', $this->cc_number)) { $this->cc_type = 'Diners Club'; } elseif (ereg('^6011[0-9]{12}$', $this->cc_number)) { $this->cc_type = 'Discover'; } elseif (ereg('^(3[0-9]{4}|2131|1800)[0-9]{11}$', $this->cc_number)) { $this->cc_type = 'JCB'; } elseif (ereg('^5610[0-9]{12}$', $this->cc_number)) { $this->cc_type = 'Australian BankCard'; } else { $this->cc_type = 'Other'; //return -1; }
  8. user99999999

    Faster Page Loads

    Hi Great contrib, just one note, the define should be in single quotes or it will produce 200+ PHP warnings. define('CONFIGVAR', '0');
  9. user99999999

    Change stock level when order status is shipped

    This is so it only updates when you change the status from 1 to 2. if ($status == 2 && $check_status['orders_status'] == 1) { $order = new order($oID); Stock update code from checkout_process.php } This doesnt exist in orders.php so you have to add it to orders.php in the case 'update_order': section and then remove it from checkout_process.php
  10. user99999999

    Change stock level when order status is shipped

    You would need to take the stock update section out of catalog/checkout_process.php and put it in catalog/admin/orders.php This adjust the quantity when changing the status from pending to processing. Mainly I do it this way because all the items are quantity 1 and this eliminates fraud orders from depleting the stock. case 'update_order': ... if ($status == 2 && $check_status['orders_status'] == 1) { $order = new order($oID); for ($i=0, $n=sizeof($order->products); $i<$n; $i++) { if (STOCK_LIMITED == 'true') { if (DOWNLOAD_ENABLED == 'true') { $stock_query_raw = "SELECT products_quantity, pad.products_attributes_filename FROM " . TABLE_PRODUCTS . " p LEFT JOIN " . TABLE_PRODUCTS_ATTRIBUTES . " pa ON p.products_id=pa.products_id LEFT JOIN " . TABLE_PRODUCTS_ATTRIBUTES_DOWNLOAD . " pad ON pa.products_attributes_id=pad.products_attributes_id WHERE p.products_id = '" . tep_get_prid($order->products[$i]['id']) . "'"; // Will work with only one option for downloadable products // otherwise, we have to build the query dynamically with a loop $products_attributes = $order->products[$i]['attributes']; if (is_array($products_attributes)) { $stock_query_raw .= " AND pa.options_id = '" . $products_attributes[0]['option_id'] . "' AND pa.options_values_id = '" . $products_attributes[0]['value_id'] . "'"; } $stock_query = tep_db_query($stock_query_raw); } else { $stock_query = tep_db_query("select products_quantity from " . TABLE_PRODUCTS . " where products_id = '" . tep_get_prid($order->products[$i]['id']) . "'"); } if (tep_db_num_rows($stock_query) > 0) { $stock_values = tep_db_fetch_array($stock_query); // do not decrement quantities if products_attributes_filename exists if ((DOWNLOAD_ENABLED != 'true') || (!$stock_values['products_attributes_filename'])) { $stock_left = $stock_values['products_quantity'] - $order->products[$i]['qty']; } else { $stock_left = $stock_values['products_quantity']; } tep_db_query("update " . TABLE_PRODUCTS . " set products_quantity = '" . $stock_left . "' where products_id = '" . tep_get_prid($order->products[$i]['id']) . "'"); if ( ($stock_left < 1) && (STOCK_ALLOW_CHECKOUT == 'false') ) { tep_db_query("update " . TABLE_PRODUCTS . " set products_status = '0' where products_id = '" . tep_get_prid($order->products[$i]['id']) . "'"); } } } } }
×