Jump to content

RollingStone

Members
  • Content count

    39
  • Joined

  • Last visited

1 Follower

Profile Information

  • Real Name
    Zach
  1. RollingStone

    EFSnet module NOT authorizing

    Thats a great question...anyone?
  2. RollingStone

    Easy Populate & Products Attributes

    Also, I just updated to version 2.79 and it says "Pulled configuration into Admin panel." Ok so I went into the panel Configuration > Easy Populate. But when I click on it there the table to the right with Title, Value and Action but there is no information below the blue line to adjust or modify the configuration. How do I get that info in there?
  3. RollingStone

    Easy Populate & Products Attributes

    I have a simple question about Easy Populate... I have products already entered in my database that have attributes, if I download the Model / Price / Quantity text file and add new products to it and then upload to my store...will it remove the attributes from the products that had them before because the attributes are not included in the text file that I last uploaded? Or will they still be there even though they werent in the Model / Price / Quantity file?
  4. RollingStone

    Individual Product Shipping Prices - v4.3a

    Which version did you use?
  5. Hi, Has anyone installed the Individual Product Shipping Prices - v4.3a? Does it work? I have a lot of contributions installed and it seems like it will take a while so I just wanted to ask before I isntalled. Thanks :thumbsup:
  6. RollingStone

    Easy Populate & Products Attributes

    Sorry, it worked for me after fussing with the code for about 3 hours...keep messin with it. Now I am able to upload but the Quote Escape character conversion thing is not doing so well. I had it turned on as default and it replaced all of my quotes in my descrptions (html in my descriptions) and messed up the code. Then I turned it off so it didnt replace the quotes and I am getting the [tep stop] error when uploading and it just stops. Any ideas?
  7. RollingStone

    Easy Populate & Products Attributes

    Ok, fixed that error. I just deleted every instance of FS_DOCUMENT_ROOT in the easypopulate.php file. I am not sure if this is the "correct" way to do it, but it worked for me. For example if a snippet of the code was: $readed = file(DIR_FS_DOCUMENT_ROOT . $tempdir . $usrfl_name); I changed it to: $readed = file($tempdir . $usrfl_name); Hope this help anyone running into the same problem. If this creates more problems for you I am sorry! :D
  8. RollingStone

    Easy Populate & Products Attributes

    Warning: move_uploaded_file($DOCUMENT_ROOT/catalog/temp/EP2006Feb02-1301.txt): failed to open stream: No such file or directory in /home/motox/public_html/catalog/admin/easypopulate_functions.php on line 32 Is there supposted to be the $DOCUMENT_ROOT included in the path like that?
  9. RollingStone

    Easy Populate & Products Attributes

    I keep getting this error when I am trying to upload the easy populate Complete file from my computer into my database. Any help would be appreciated! The temp directory has been created under /catalog/ and it is set to 777 so it should have no problems writing to it. For the easypopulate.php in /catalog/admin i have the temp dir set like this: $tempdir = "/home/motox/public_html/catalog/temp/"; $tempdir2 = "/home/motox/public_html/catalog/temp/"; I used to have them just like "temp/" but that didnt work either. These are the errors I get when trying to upload: Warning: move_uploaded_file($DOCUMENT_ROOT/home/motox/public_html/catalog/temp/EP2006Feb02-1301.txt): failed to open stream: No such file or directory in /home/motox/public_html/catalog/admin/easypopulate_functions.php on line 32 Warning: move_uploaded_file(): Unable to move '/tmp/phpxuCvZS' to '$DOCUMENT_ROOT/home/motox/public_html/catalog/temp/EP2006Feb02-1301.txt' in /home/motox/public_html/catalog/admin/easypopulate_functions.php on line 32 File uploaded. Temporary filename: /tmp/phpxuCvZS User filename: EP2006Feb02-1301.txt SIZE_EP1380741 Warning: file($DOCUMENT_ROOT/home/motox/public_html/catalog/temp/EP2006Feb02-1301.txt): failed to open stream: No such file or directory in /home/motox/public_html/catalog/admin/easypopulate.php on line 735 Warning: Invalid argument supplied for foreach() in /home/motox/public_html/catalog/admin/easypopulate.php on line 758
  10. How to customize display of CCGV table that appears on the checkout_payment.php page? I cant seem to find where to edit the code of how the table appears. The way it displays is not how I think it should look. I redesigned it in dreamweaver and this is the code. Can someone help me out and tell me how I can implement my new design of how the CCGV table displays on checkout_payment.php? This would be very much appreciated! :thumbsup: Here is my redesigned code: <table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"><td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <td width="10"><img src="images/pixel_trans.gif" border="0" alt="" width="10" height="1"></td> <td colspan="2"><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="moduleRow" onMouseOver="rowOverEffect(this)" onMouseOut="rowOutEffect(this)" > <td colspan="3"><div align="left"><b>Gift Vouchers/Discount Coupons:</b></div></td> <td width="10"> </td> </tr> <tr class="moduleRow" onMouseOver="rowOverEffect(this)" onMouseOut="rowOutEffect(this)" > <td colspan="3" align="left"><div align="left">Enter Coupon Code: <input type="text" name="gv_redeem_code"> <input type="image" name="submit_redeem" onClick="return check_form(), submitFunction()" src="includes/languages/english/images/buttons/button_redeem.gif" class="contbutton" alt="IMAGE_REDEEM_VOUCHER" title = "IMAGE_REDEEM_VOUCHER"> </div></td> <td> </td> </tr> <tr class="moduleRow" onMouseOver="rowOverEffect(this)" onMouseOut="rowOutEffect(this)" > <td colspan="3" align="left"><div align="left">Check to use Gift Voucher balance: <input type="checkbox" onClick="return check_form(), submitFunction()" name="cot_gv"> </div></td> <td> </td> </tr> <td width="10"></tr><tr><td class="main"> </td> </table></td><td width="10"><img src="images/pixel_trans.gif" border="0" alt="" width="10" height="1"></td></tr></table></td></tr></table>
  11. Hey guys... I am using version 5.15a1, and everything seems to be working great. Thanks for all the good work...!
  12. Can anyone help me with this error. I have a live shop and I need to fix this soon. Thank you for your time! Fatal error: Cannot redeclare class order_total in /home/motor3n1/public_html/catalog/includes/classes/order_total.php on line 8 <?php /* $Id: order_total.php,v 1.4 2003/02/11 00:04:53 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ class order_total { var $modules; // class constructor function order_total() { global $language; if (defined('MODULE_ORDER_TOTAL_INSTALLED') && tep_not_null(MODULE_ORDER_TOTAL_INSTALLED)) { $this->modules = explode(';', MODULE_ORDER_TOTAL_INSTALLED); reset($this->modules); while (list(, $value) = each($this->modules)) { include(DIR_WS_LANGUAGES . $language . '/modules/order_total/' . $value); include(DIR_WS_MODULES . 'order_total/' . $value); $class = substr($value, 0, strrpos($value, '.')); $GLOBALS[$class] = new $class; } } } function process() { $order_total_array = array(); if (is_array($this->modules)) { reset($this->modules); while (list(, $value) = each($this->modules)) { $class = substr($value, 0, strrpos($value, '.')); if ($GLOBALS[$class]->enabled) { $GLOBALS[$class]->process(); for ($i=0, $n=sizeof($GLOBALS[$class]->output); $i<$n; $i++) { if (tep_not_null($GLOBALS[$class]->output[$i]['title']) && tep_not_null($GLOBALS[$class]->output[$i]['text'])) { $order_total_array[] = array('code' => $GLOBALS[$class]->code, 'title' => $GLOBALS[$class]->output[$i]['title'], 'text' => $GLOBALS[$class]->output[$i]['text'], 'value' => $GLOBALS[$class]->output[$i]['value'], 'sort_order' => $GLOBALS[$class]->sort_order); } } } } } return $order_total_array; } function output() { $output_string = ''; if (is_array($this->modules)) { reset($this->modules); while (list(, $value) = each($this->modules)) { $class = substr($value, 0, strrpos($value, '.')); if ($GLOBALS[$class]->enabled) { $size = sizeof($GLOBALS[$class]->output); for ($i=0; $i<$size; $i++) { $output_string .= ' <tr>' . "\n" . ' <td align="right" class="main">' . $GLOBALS[$class]->output[$i]['title'] . '</td>' . "\n" . ' <td align="right" class="main">' . $GLOBALS[$class]->output[$i]['text'] . '</td>' . "\n" . ' </tr>'; } } } } return $output_string; } // ############ Added CCGV Contribution ########## // // This function is called in checkout payment after display of payment methods. It actually calls // two credit class functions. // // use_credit_amount() is normally a checkbox used to decide whether the credit amount should be applied to reduce // the order total. Whether this is a Gift Voucher, or discount coupon or reward points etc. // // The second function called is credit_selection(). This in the credit classes already made is usually a redeem box. // for entering a Gift Voucher number. Note credit classes can decide whether this part is displayed depending on // E.g. a setting in the admin section. // function credit_selection() { $selection_string = ''; $close_string = ''; $credit_class_string = ''; if (MODULE_ORDER_TOTAL_INSTALLED) { $header_string = '<tr>' . "\n"; $header_string .= ' <td><table border="0" width="100%" cellspacing="0" cellpadding="2">' . "\n"; $header_string .= ' <tr>' . "\n"; $header_string .= ' <td class="main"><b>' . TABLE_HEADING_CREDIT . '</b></td>' . "\n"; $header_string .= ' </tr>' . "\n"; $header_string .= ' </table></td>' . "\n"; $header_string .= ' </tr>' . "\n"; $header_string .= '<tr>' . "\n"; $header_string .= ' <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">' . "\n"; $header_string .= ' <tr class="infoBoxContents"><td><table border="0" width="100%" cellspacing="0" cellpadding="2">' ."\n"; $header_string .= ' <tr><td width="10">' . tep_draw_separator('pixel_trans.gif', '10', '1') .'</td>' . "\n"; $header_string .= ' <td colspan="2"><table border="0" width="100%" cellspacing="0" cellpadding="2">' . "\n"; $close_string = ' </table></td>'; $close_string .= '<td width="10">' . tep_draw_separator('pixel_trans.gif', '10', '1') . '</td>'; $close_string .= '</tr></table></td></tr></table></td>'; $close_string .= '<tr><td width="100%">' . tep_draw_separator('pixel_trans.gif', '100%', '10') . '</td></tr>'; reset($this->modules); $output_string = ''; while (list(, $value) = each($this->modules)) { $class = substr($value, 0, strrpos($value, '.')); if ($GLOBALS[$class]->enabled && $GLOBALS[$class]->credit_class) { $use_credit_string = $GLOBALS[$class]->use_credit_amount(); if ($selection_string =='') $selection_string = $GLOBALS[$class]->credit_selection(); if ( ($use_credit_string !='' ) || ($selection_string != '') ) { $output_string .= '<tr colspan="4"><td colspan="4" width="100%">' . tep_draw_separator('pixel_trans.gif', '100%', '10') . '</td></tr>'; $output_string = ' <tr class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" >' . "\n" . ' <td width="10">' . tep_draw_separator('pixel_trans.gif', '10', '1') .'</td>' . ' <td class="main"><b>' . $GLOBALS[$class]->header . '</b></td>' . $use_credit_string; $output_string .= '<td width="10">' . tep_draw_separator('pixel_trans.gif', '10', '1') . '</td>'; $output_string .= ' </tr>' . "\n"; $output_string .= $selection_string; } } } if ($output_string != '') { $output_string = $header_string . $output_string; $output_string .= $close_string; } } return $output_string; } // if ($selection_string !='') { // $output_string .= '</td>' . "\n"; // $output_string .= $selection_string; // } // update_credit_account is called in checkout process on a per product basis. It's purpose // is to decide whether each product in the cart should add something to a credit account. // e.g. for the Gift Voucher it checks whether the product is a Gift voucher and then adds the amount // to the Gift Voucher account. // Another use would be to check if the product would give reward points and add these to the points/reward account. // function update_credit_account($i) { if (MODULE_ORDER_TOTAL_INSTALLED) { reset($this->modules); while (list(, $value) = each($this->modules)) { $class = substr($value, 0, strrpos($value, '.')); if ( ($GLOBALS[$class]->enabled && $GLOBALS[$class]->credit_class) ) { $GLOBALS[$class]->update_credit_account($i); } } } } // This function is called in checkout confirmation. // It's main use is for credit classes that use the credit_selection() method. This is usually for // entering redeem codes(Gift Vouchers/Discount Coupons). This function is used to validate these codes. // If they are valid then the necessary actions are taken, if not valid we are returned to checkout payment // with an error // function collect_posts() { global $HTTP_POST_VARS,$HTTP_SESSION_VARS; if (MODULE_ORDER_TOTAL_INSTALLED) { reset($this->modules); while (list(, $value) = each($this->modules)) { $class = substr($value, 0, strrpos($value, '.')); if ( ($GLOBALS[$class]->enabled && $GLOBALS[$class]->credit_class) ) { $post_var = 'c' . $GLOBALS[$class]->code; if ($HTTP_POST_VARS[$post_var]) { if (!tep_session_is_registered($post_var)) tep_session_register($post_var); // ############ Added CCGV Contribution ########## $post_var = $HTTP_POST_VARS[$post_var]; // ############ End Added CCGV Contribution ########## } $GLOBALS[$class]->collect_posts(); } } } } // pre_confirmation_check is called on checkout confirmation. It's function is to decide whether the // credits available are greater than the order total. If they are then a variable (credit_covers) is set to // true. This is used to bypass the payment method. In other words if the Gift Voucher is more than the order // total, we don't want to go to paypal etc. // function pre_confirmation_check() { global $payment, $order, $credit_covers; if (MODULE_ORDER_TOTAL_INSTALLED) { $total_deductions = 0; reset($this->modules); $order_total = $order->info['total']; while (list(, $value) = each($this->modules)) { $class = substr($value, 0, strrpos($value, '.')); $order_total = $this->get_order_total_main($class,$order_total); if ( ($GLOBALS[$class]->enabled && $GLOBALS[$class]->credit_class) ) { $total_deductions = $total_deductions + $GLOBALS[$class]->pre_confirmation_check($order_total); $order_total = $order_total - $GLOBALS[$class]->pre_confirmation_check($order_total); } } if ($order->info['total'] - $total_deductions <= 0 ) { if(!tep_session_is_registered('credit_covers')) tep_session_register('credit_covers'); $credit_covers = true; } else{ // belts and suspenders to get rid of credit_covers variable if it gets set once and they put something else in the cart if(tep_session_is_registered('credit_covers')) tep_session_unregister('credit_covers'); } } } // this function is called in checkout process. it tests whether a decision was made at checkout payment to use // the credit amount be applied aginst the order. If so some action is taken. E.g. for a Gift voucher the account // is reduced the order total amount. // function apply_credit() { if (MODULE_ORDER_TOTAL_INSTALLED) { reset($this->modules); while (list(, $value) = each($this->modules)) { $class = substr($value, 0, strrpos($value, '.')); if ( ($GLOBALS[$class]->enabled && $GLOBALS[$class]->credit_class) ) { $GLOBALS[$class]->apply_credit(); } } } } // Called in checkout process to clear session variables created by each credit class module. // function clear_posts() { global $HTTP_POST_VARS,$HTTP_SESSION_VARS; if (MODULE_ORDER_TOTAL_INSTALLED) { reset($this->modules); while (list(, $value) = each($this->modules)) { $class = substr($value, 0, strrpos($value, '.')); if ( ($GLOBALS[$class]->enabled && $GLOBALS[$class]->credit_class) ) { $post_var = 'c' . $GLOBALS[$class]->code; if (tep_session_is_registered($post_var)) tep_session_unregister($post_var); } } } } // Called at various times. This function calulates the total value of the order that the // credit will be appled aginst. This varies depending on whether the credit class applies // to shipping & tax // function get_order_total_main($class, $order_total) { global $credit, $order; // if ($GLOBALS[$class]->include_tax == 'false') $order_total=$order_total-$order->info['tax']; // if ($GLOBALS[$class]->include_shipping == 'false') $order_total=$order_total-$order->info['shipping_cost']; return $order_total; } // ############ End Added CCGV Contribution ########## } ?>
  13. RollingStone

    Official PayPal IPN Support Thread

    Anyone having issues with customers saying they are getting an error that says their billing address is not confirmed. I dont seem to get this message from customers when the PayPal IPN is disabled. Any thoughts on this? :blink:
  14. We need a new full package release, this would help so many people out...Any takers? :)
  15. RollingStone

    [Contribution] UPS XML Tracking

    The funny thing is that if I type the url by hand in the address bar as it should be, the tracking page works great. Its just when I press the track button, the page reloads...but doesnt have the correct code in the address bar, therefore the tracking doesnt work. This is what should be accessed when clicking the track button but doesnt. http://www.mysite.com/catalog/tracking.php...30330787397&c=1 Help anyone?
×