Jump to content

akunamachata

Members
  • Content count

    48
  • Joined

  • Last visited

3 Followers

Profile Information

  • Real Name
    john

Recent Profile Visitors

8,515 profile views
  1. no, its not originally from me. install it on a demo site, and you should see what happen...

  2. I saw your post regarding: http://addons.oscommerce.com/info/1333

    do you have a screen shot of what this looks like?

  3. Hi,

    Need a little help with your super admin products updater.

    Looks great. When I click in the field to change the model, or product name field it sends me into the edit page. Can you help me figure out what Im doing wrong here.

  4. Hi,

    Love the Individual Ship Mod. However, have you considered setting it up for USA states rather than countries to where it could have zones?

    For instance if you are in Washington or West coast that would be zone 1 and would have no increase.

    If you Mountain states, would increase by 1.

    If Central states increase by 2

    If East states increase by 3.

  5. chinhle_82@yahoo.com... your backup, does it recent upto individual shipping? well, the one you backed up before you install individual shipping

  6. Prior to the individual ship module, yes. I won't get home to do it until after 10pm. Let me have your email and I will get you the ftp info. Thanks

  7. hehe... looks like you duplicate some where again... give me your ftp information, i'll see if i can fix it for you.... do you have a backup copy? if you do, restore it...

  8. Went through the installation again and made a few corrections. now I am getting "Fatal error: Cannot redeclare tep_db_connect() (previously declared in /webroot/s/t/studi041/www/includes/functions/database.php:13) in /webroot/s/t/studi041/www/includes/functions/database.php on line 25" How does one go about hiring someone to fix the code, and how much do they charge? skunitz22@gmail.com

  9. this usually mean you have double instant running... for example, you have the application_top.php load two time... check your installation... mine works fine!

  10. Thanks for your fix 'individual shipping won't show all shipping option!' it fixed the problem. Just noticed an error when a client tries to log off "Fatal error: Cannot redeclare tep_get_configuration_key_value() (previously declared in /webroot/s/t/studi041/www/includes/application_top.php:75) in /webroot/s/t/studi041/www/includes/application_top.php on line 80" Any ...

  11. I was having the same problem that only individual product is showing at checkout_shipping. So i looked throught the catalog/includes/classes/shipping.php. And i found this block of code // start indvship //while (list(, $value) = each($this->modules)) { // $class = substr($value, 0, strrpos($value, '.')); // $include_modules[] = array('class' => $class, 'file' => $value); //} //} if($indvcount==sizeof($products)){ if ((tep_get_configuration_key_value('MODULE_SHIPPING_INDVSHIP_STATUS')) && ((tep_not_null($shiptotal)) || $shiptotal == 0)) { $include_modules[] = array('class'=> 'indvship', 'file' => 'indvship.php'); } } else { if(sizeof($products)>$indvcount){ while (list(, $value) = each($this->modules)) { $class = substr($value, 0, strrpos($value, '.')); if (($class !='freeshipper') && ($class != 'indvship')) { // comment to show all ship options // if ($class !='freeshipper') { // uncomment to show all ship options $include_modules[] = array('class' => $class, 'file' => $value); } } } } } // end indvship find where it say: // if ($class !='freeshipper') { // uncomment to show all ship options i've tried to uncommented it, and comment the line: if (($class !='freeshipper') && ($class != 'indvship')) { // comment to show all ship options and it won't show... However, if i replace this block of code, // start indvship //while (list(, $value) = each($this->modules)) { // $class = substr($value, 0, strrpos($value, '.')); // $include_modules[] = array('class' => $class, 'file' => $value); //} //} if($indvcount==sizeof($products)){ if ((tep_get_configuration_key_value('MODULE_SHIPPING_INDVSHIP_STATUS')) && ((tep_not_null($shiptotal)) || $shiptotal == 0)) { $include_modules[] = array('class'=> 'indvship', 'file' => 'indvship.php'); } } else { if(sizeof($products)>$indvcount){ while (list(, $value) = each($this->modules)) { $class = substr($value, 0, strrpos($value, '.')); if (($class !='freeshipper') && ($class != 'indvship')) { // comment to show all ship options // if ($class !='freeshipper') { // uncomment to show all ship options $include_modules[] = array('class' => $class, 'file' => $value); } } } } } // end indvship with this while (list(, $value) = each($this->modules)) { $class = substr($value, 0, strrpos($value, '.')); $include_modules[] = array('class' => $class, 'file' => $value); } } please do comment your existing code, so you don't have to go over the file to replace it incase there's a fix... here's an example of comple modification <?php /* $Id: shipping.php,v 1.23 2003/06/29 11:22:05 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ class shipping { var $modules; // class constructor function shipping($module = '') { // start indvship // global $language, $PHP_SELF; global $language, $PHP_SELF, $cart; // New to fix attributes bug $cart_products = $cart->get_products(); if (tep_not_null($cart_products)) { $real_ids = array(); foreach($cart_products as $prod){ $real_ids[] = tep_get_prid($prod['id']); } $sql = "SELECT products_ship_methods_id FROM ".TABLE_PRODUCTS_SHIPPING." WHERE products_id IN (".implode(',',$real_ids).") AND products_ship_methods_id IS NOT NULL AND products_ship_methods_id <> ''"; $query = mysql_query($sql); // End new bug fix $allow_mod_array = array(); while($rec = mysql_fetch_array($query)){ if(empty($allow_mod_array)) $startedempty = true; $methods_array = array(); $methods_array = explode(';',$rec['products_ship_methods_id']); if(!empty($methods_array)){ foreach($methods_array as $method){ $allow_mod_array[] = $method; } } if($startedempty){ $startedempty = false; }else{ $temp_array = array(); foreach($allow_mod_array as $val){ $temp_array[$val]++; } $allow_mod_array = array(); foreach($temp_array as $key => $val){ if($val > 1){ $allow_mod_array[] = $key; } } } } } // INDIV_SM END if (defined('MODULE_SHIPPING_INSTALLED') && tep_not_null(MODULE_SHIPPING_INSTALLED)) { $this->modules = explode(';', MODULE_SHIPPING_INSTALLED); // INDIV_SM START if (tep_not_null($cart_products)) { $temp_array = $this->modules; $this->modules = array(); foreach($temp_array as $val){ if(mysql_num_rows($query)==0 || in_array(str_replace('.php','',$val),$allow_mod_array)) { $this->modules[] = $val; } } } // INDIV_SM END $include_modules = array(); if ( (tep_not_null($module)) && (in_array(substr($module['id'], 0, strpos($module['id'], '_')) . '.' . substr($PHP_SELF, (strrpos($PHP_SELF, '.')+1)), $this->modules)) ) { $include_modules[] = array('class' => substr($module['id'], 0, strpos($module['id'], '_')), 'file' => substr($module['id'], 0, strpos($module['id'], '_')) . '.' . substr($PHP_SELF, (strrpos($PHP_SELF, '.')+1))); } else { reset($this->modules); //// original block >>>> while (list(, $value) = each($this->modules)) { $class = substr($value, 0, strrpos($value, '.')); $include_modules[] = array('class' => $class, 'file' => $value); } } //// end original block <<<< /* >>>> below where it doesn't show all option, and doesn't seem nessecarily needed <<<<<<<<<<< // start indvship //while (list(, $value) = each($this->modules)) { // $class = substr($value, 0, strrpos($value, '.')); // $include_modules[] = array('class' => $class, 'file' => $value); //} //} if($indvcount==sizeof($products)){ if ((tep_get_configuration_key_value('MODULE_SHIPPING_INDVSHIP_STATUS')) && ((tep_not_null($shiptotal)) || $shiptotal == 0)) { $include_modules[] = array('class'=> 'indvship', 'file' => 'indvship.php'); } } else { if(sizeof($products)>$indvcount){ while (list(, $value) = each($this->modules)) { $class = substr($value, 0, strrpos($value, '.')); if (($class !='freeshipper') && ($class != 'indvship')) { // comment to show all ship options // if ($class !='freeshipper') { // uncomment to show all ship options $include_modules[] = array('class' => $class, 'file' => $value); } } } } } // end indvship */ for ($i=0, $n=sizeof($include_modules); $i<$n; $i++) { include(DIR_WS_LANGUAGES . $language . '/modules/shipping/' . $include_modules[$i]['file']); include(DIR_WS_MODULES . 'shipping/' . $include_modules[$i]['file']); $GLOBALS[$include_modules[$i]['class']] = new $include_modules[$i]['class']; } } } function quote($method = '', $module = '') { global $total_weight, $shipping_weight, $shipping_quoted, $shipping_num_boxes; $quotes_array = array(); if (is_array($this->modules)) { $shipping_quoted = ''; $shipping_num_boxes = 1; $shipping_weight = $total_weight; if (SHIPPING_BOX_WEIGHT >= $shipping_weight*SHIPPING_BOX_PADDING/100) { $shipping_weight = $shipping_weight+SHIPPING_BOX_WEIGHT; } else { $shipping_weight = $shipping_weight + ($shipping_weight*SHIPPING_BOX_PADDING/100); } if ($shipping_weight > SHIPPING_MAX_WEIGHT) { // Split into many boxes $shipping_num_boxes = ceil($shipping_weight/SHIPPING_MAX_WEIGHT); $shipping_weight = $shipping_weight/$shipping_num_boxes; } $include_quotes = array(); reset($this->modules); while (list(, $value) = each($this->modules)) { $class = substr($value, 0, strrpos($value, '.')); if (tep_not_null($module)) { if ( ($module == $class) && ($GLOBALS[$class]->enabled) ) { $include_quotes[] = $class; } } elseif ($GLOBALS[$class]->enabled) { $include_quotes[] = $class; } } $size = sizeof($include_quotes); for ($i=0; $i<$size; $i++) { $quotes = $GLOBALS[$include_quotes[$i]]->quote($method); if (is_array($quotes)) $quotes_array[] = $quotes; } } return $quotes_array; } //start indvship function get_shiptotal() { global $cart, $order; $this->shiptotal = ''; $products = $cart->get_products(); for ($i=0, $n=sizeof($products); $i<$n; $i++) { if (tep_not_null($products[$i]['products_ship_price'])) { $products_ship_price = $products[$i]['products_ship_price']; $products_ship_price_two = $products[$i]['products_ship_price_two']; $products_ship_zip = $products[$i]['products_ship_zip']; $qty = $products[$i]['quantity']; if(tep_not_null($products_ship_price) ||tep_not_null($products_ship_price_two)){ $this->shiptotal += ($products_ship_price); if ($qty > 1) { if (tep_not_null($products_ship_price_two)) { $this->shiptotal += ($products_ship_price_two * ($qty-1)); } else { $this->shiptotal += ($products_ship_price * ($qty-1)); } }/////////////NOT HERE <<------------ } } }// CHECK TO SEE IF SHIPPING TO HOME COUNTRY, IF NOT INCREASE SHIPPING COSTS BY AMOUNT SET IN ADMIN/////////////move back here <<------------ if (($order->delivery['country']['id']) != INDIVIDUAL_SHIP_HOME_COUNTRY) { if(INDIVIDUAL_SHIP_INCREASE > '0' || $this->shiptotal > '0') { $this->shiptotal *= INDIVIDUAL_SHIP_INCREASE; } else { $this->shiptotal += INDIVIDUAL_SHIP_INCREASE * $this->get_indvcount(); } return $this->shiptotal; // not sure why this is needed, but it now works correctly for home country - by Ed } else { $this->shiptotal *= 1; return $this->shiptotal; } } function get_indvcount() { global $cart; $this->indvcount = ''; $products = $cart->get_products(); for ($i=0, $n=sizeof($products); $i<$n; $i++) { if (tep_not_null($products[$i]['products_ship_price'])) { $products_ship_price = $products[$i]['products_ship_price'];//} $products_ship_price_two = $products[$i]['products_ship_price_two']; if(is_numeric($products_ship_price)){ $this->indvcount += '1'; } } } return $this->indvcount; } // end indvship function cheapest() { if (is_array($this->modules)) { $rates = array(); reset($this->modules); while (list(, $value) = each($this->modules)) { $class = substr($value, 0, strrpos($value, '.')); if ($GLOBALS[$class]->enabled) { $quotes = $GLOBALS[$class]->quotes; for ($i=0, $n=sizeof($quotes['methods']); $i<$n; $i++) { if (isset($quotes['methods'][$i]['cost']) && tep_not_null($quotes['methods'][$i]['cost'])) { $rates[] = array('id' => $quotes['id'] . '_' . $quotes['methods'][$i]['id'], 'title' => $quotes['module'] . ' (' . $quotes['methods'][$i]['title'] . ')', 'cost' => $quotes['methods'][$i]['cost']); } } } } $cheapest = false; for ($i=0, $n=sizeof($rates); $i<$n; $i++) { if (is_array($cheapest)) { if ($rates[$i]['cost'] < $cheapest['cost']) { $cheapest = $rates[$i]; } } else { $cheapest = $rates[$i]; } } return $cheapest; } } } ?>
  12. akunamachata

    NEW! Complete Order Editing Tool!

    Please disregard the above, i was being dump... Today, i was doing troubleshooting to see why i can't discount, and when i search the text DISCOUNT to see where it located, and i found it in language/english/edit_orders.php, where it say HINT_TOTALS, use - value, so then i use - $amount and wala, it worked great!, i love this contribution alot. However, my Individual Shipping contribution won't work with Order_Editor... it shows but it won't calculate from the item itself, except if i insert it manually, then its find, so it won't grab from the item... By all mean, i will try to figure it out on my own, but, if anyone can help, very great thanks!..... Thank you, you guys once again!
  13. Hi, i think you guy missing something during the installation, or replacement, check carefully, it really sensitive.....
  14. akunamachata

    NEW! Complete Order Editing Tool!

    Also i think there's a bug with DISCOUNT: where i insert the discount of $10 and it updated to the total as $10 more instead of subtracting $10.00 from the total.
  15. akunamachata

    NEW! Complete Order Editing Tool!

    Hi, does anyone having problem for order editor with PAYPAL DIRECT PAYMENT PRO w/ EXPReSS CHECKOUT contribution? I installed this and i already have PAYPAL DIRECT PAYMENT PRO, when i click on order edit, select paypal direct payment pro as payment method, it won't show the payment module, if i enable CC, then it show the credit card info where you can enter it, but not for PAYPAL DIRECT PAYMENT PRO. Any one can help? greatly appreciated....
×