Jump to content

DKarr

Members
  • Content count

    19
  • Joined

  • Last visited

Posts posted by DKarr


  1. Attached is a upgraded version of USPS Methods is based on 5.2.1. See http://addons.oscommerce.com/info/487 It is patched and current to 28 July 2013 changes. It works on 2.2, rc2a and 2.3. We've re-tested all options and services and believe they all work.

     

    php.gif usps.php 52.26K 25 downloads

     

    Please note the server is still set to staging. Go to lines 821-823 to reset to production.

     

    You need to upload the file to modules/shipping. You need to uninstall then reinstall in Admin. Don't forget to make note of your settings before you uninstall.

     

    Again this is USPS Methods Add On #487

     

    It appears that this updated code is lacking First-Class Mail Parcel....... could you assist in getting that put back in?

    Thanks!


  2. did you miss-type when you said you clicked "upload" ? you use the "Import EP file from Temp Dir" section when importing a file that has been FTPed to the temp folder.

    After some very serious bang-head-on-monitor time, I finally decided to try it on a different server..... many more hours later, I found that it works on Php 5.2.5.....

    with one small error that "does not seem" to impact anything:

    After completing the upload it says:

    File uploaded.

    Temporary filename: /tmp/phpKpZWZb

    User filename: EP2008Feb09-2210.txt

    Size: 464

    | 1 | Test | testing th | | | 1 | 99 | 0.01 | | 2006-12-13 | | test | coming_soo | | | | | Taxable Go | Active Updated

     

    No products_model field in record. This line was not imported: | | | | | | | | | | | | | | | | | | |

     

     

    Warning: array_walk() expects at most 3 parameters, 5 given in /home/premium/public_html/shop/admin/easypopulate.php on line 962

     

    Lines 961 & 962 are:

    // isn't working in PHP5

    array_walk($readed, $filelayout, $filelayout_count, $default_these, 'process_row');

     

     

    And, I only said "does not seem" because my prelimiary checks revealed nothing wrong....

    The servers that it would NOT work are running Php 5.2.3

    (Yes, I have carts on 2 different 5.2.3 servers and carts on a 5.2.5 server - so you can plainly see I REALLY DO LOVE EASY POPULATE!)


  3. you shouldn't need any globals fix for my most recent version.

     

    the 406 error sounds to me like your host is using mod_security. My guess it they have a ruleset that is not allowing the upload file to be saved as part of an HTTP POST. try to upload the file to your temp using ftp and process the file from there. if that works, ask your host to add an exception for the EP script in their mod_security rules so you can do the upload from the EP form. Assure them you have the page/form secured with a password in your shop's admin (as you should) so no unauthorized folks will be able to circumvent their mod_security server protection if they add the exception for you.

     

    Thank you:) I 'thought' you had covered the globals....

     

    EP (jb globals fix removed) found the file I ftp'd into the Temp folder as you suggested.... but, I get the same Error when I clicked UpLoad.

     

    Could this still be a server mod_security issue?


  4. I have been using EasyPopulate for 3 years now and have thoroughly enjoyed it! I know what to change to make it do pretty much

    whatever I want all by myself and it dependably responds! Thank you soooo Much for this wonderful code!

     

    With a forced migration coming to php5 and register globals off, I decided it was time to rebuild my cart with a more recent

    version of OsC - which led me to a shiny new EasyPopulate: Sadly, I am totally stopped - Only being a 'Very Adept Copy-and-Paste'

    person, after two days of banging my head on my monitor, I must beg for your help....

     

    I installed EP - and the register globals fix by jb 20040815 from a previous posting - and uncommented the php5 line....

     

    EP vers: 2.76f-MS2 r1

    Temp Dir:

    /home/myaccount/public_html/shop/temp/

    Temp Dir is Writable

    Magic Quotes is: off

    register_globals is: off

    Split files on: 300 records

    Model Num Size: 12

    Price with tax: false

    Calc Precision: 2

    Replace quotes: false

    Field seperator: tab

    Excel safe output: false

    Preserve tab/cr/lf: false

    Category depth: 3

    Enable attributes: false

    SEF Froogle URLS: false

    More Pics: false

    Unknown Pics: false

    HTC: false

    SPPC: false

    Extra Fields: false

     

    Every time I go to the EP page, the error log shows;

    PHP Warning: Invalid argument supplied for foreach() in /home/myaccount/public_html/shop/admin/easypopulate.php on line 45

     

    LIne 45 is the foreach line of the register globals fix by jb 20040815:

    foreach( $HTTP_POST_FILES as $varname => $fileinfo ){

     

    I can download just fine even though the error log shows the same Php Warning for line 45

    but I can not upload at all:

    Error 406 Not Acceptable An appropriate representation of the requested resource /shop/admin/easypopulate.php could not be found on this server.

    Apache/1.3.39 Server at myaccount Port 80

     

    The error log shows nothing.

     

    If I take Out the register globals fix by jb 20040815, I get the same 406 page with NOTHING in the error log.

    If I take out the Php5, I get the same 406 page with NOTHING in the error log.

    If I take them Both out, I get the same 406 page with NOTHING in the error log.

     

    I am at a loss where to go from here: I just can't imagine a store without EasyPopulate!

     

    Help, please......


  5. Hi, I had the issue with globals disabled in php ini si i installed Register Globals Patch Files 1 and now i am getting Warning: Installation directory exists at: /home/therapy/public_html/shop/install. Please remove this directory for security reasons. I am a newbie with oscommerce.

    It's been a long time since I installed manually but I believe I recall that there truly is a folder named "install" that should be removed..... You will need to do this thru your cPanel as it is not something controlled by the OsCommerce Cart Administration Panel.


  6. Everything was fine after I changed all the Capital Letters, etc. as posted 11/19: but this morning, International will only show one option even though 2 or 3 options should be available AND it isn't the same option on different sites.

     

    First Class International has totally disappeared everywhere and only one option is available: PRIORITY INTL FLATENV on some sites and EXPRESS on others.

     

    The only difference in the programming between the six sites is the Methods Offered by the store owner... the code is identical.


  7. Seems a lot of us are having this problem. Hopefully someone comes up with a fix soon, I've already lost three sales over seas that I'm aware of and who knows how many others.

    I am on the phone with a programmer as I type: To avoid loosing sales, I activated a rate table shipping module that I used to use a very long time ago. I had to "pick shipping" costs for set weight or price amounts but it has allowed us to keep the shops open while we work on the USPS module.


  8. My USPS Module set for production - on multiple sites on multiple servers - worked fine up until today - now all customers everywhere return an error. Nothing I do will correct the problem. I am totally stumped.

     

    Anybody else having a problem?

     

    Anyone have any any ideas?

     

    Deb


  9. Though I am only 'copy and paste' programmer, I have this mod installed and am loving it! I can't thank you enough for making this available.

    I am curious though, if someone could help me make a small tweek... I would like to see the number of orders each customer has placed. I have figured out how to make the number of log-ins show but the number of orders just will not show no matter "what" I try.... Any Suggestions?

    Thank you!

    Deb


  10. I am trying to install and getting an error: Parse error: parse error, unexpected '}' in /home/premium/public_html/shop/includes/classes/shopping_cart.php on line 225

    But am not good at php.... I thought I had copied everything correctly but I simply can not see it: can somebody please help????

    Copied here is section of shopping_cart.php starting some lines about 225 and 225 is marked.

     

    function calculate() {

    $this->total = 0;

    $this->weight = 0;

    if (!is_array($this->contents)) return 0;

     

    reset($this->contents);

    while (list($products_id, ) = each($this->contents)) {

    $qty = $this->contents[$products_id]['qty'];

     

    // products price

    $product_query = tep_db_query("select products_id, products_price, products_tax_class_id, products_weight from " . TABLE_PRODUCTS . " where products_id = '" . (int)$products_id . "'");

    if ($product = tep_db_fetch_array($product_query)) {

    $prid = $product['products_id'];

    $products_tax = tep_get_tax_rate($product['products_tax_class_id']);

    $products_price = $product['products_price'];

    $products_weight = $product['products_weight'];

    line 225>(empty)

    $specials_query = tep_db_query("select specials_new_products_price from " . TABLE_SPECIALS . " where products_id = '" . (int)$prid . "' and status = '1'");

    if (tep_db_num_rows ($specials_query)) {

    $specials = tep_db_fetch_array($specials_query);

    $products_price = $specials['specials_new_products_price'];

    }

     

    $this->total += tep_add_tax($products_price, $products_tax) * $qty;

    $this->weight += ($qty * $products_weight);

    }

     

    // phpmom.com advanced attribute price

    if (isset($this->contents[$products_id]['attributes'])) {

    reset($this->contents[$products_id]['attributes']);

    while (list($option, $value) = each($this->contents[$products_id]['attributes'])) {

    $attribute_price_query = tep_db_query("select options_values_price, price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " where products_id = '" . (int)$prid . "' and options_id = '" . (int)$option . "' and options_values_id = '" . (int)$value . "'");

    $attribute_price = tep_db_fetch_array($attribute_price_query);

    if ($attribute_price['price_prefix'] == '+') {

    $this->total += $qty * tep_add_tax($attribute_price['options_values_price'], $products_tax);

    } elseif ($attribute_price['price_prefix'] == '-') {

    $this->total -= $qty * tep_add_tax($attribute_price['options_values_price'], $products_tax);

    }

    elseif ($attribute_price['price_prefix'] == '')

    { //comment where you see //'0' if want '0' value

    // if ($attribute_price['options_values_price'] == '0') { //'0'

    // $this->total += 0; //'0'

    // } //'0'

     

    // if ($attribute_price['options_values_price'] != '0') { //'0'

    $this->total += tep_add_tax($attribute_price['options_values_price'], $products_tax) * $qty - (tep_add_tax($products_price, $products_tax) * $qty);

     

    // }//'0'

    ?}else $this->total += $qty * tep_add_tax($attribute_price['options_values_price'], $products_tax);

    }

    }

     

    //PHPMOM.COM AAP

    function attributes_price($products_id) {

    $attributes_price = 0;

     

    if (isset($this->contents[$products_id]['attributes'])) {

    reset($this->contents[$products_id]['attributes']);

    while (list($option, $value) = each($this->contents[$products_id]['attributes'])) {

    $attribute_price_query = tep_db_query("select options_values_price, price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " where products_id = '" . (int)$products_id . "' and options_id = '" . (int)$option . "' and options_values_id = '" . (int)$value . "'");

    $attribute_price = tep_db_fetch_array($attribute_price_query);

    if ($attribute_price['price_prefix'] == '+') {

    $attributes_price += $attribute_price['options_values_price'];

    } elseif ($attribute_price['price_prefix'] == '-') {

    $attributes_price -= $attribute_price['options_values_price'];

    }

    else

    $attributes_price+= $attribute_price['options_values_price'];

    }

    }

     

    return $attributes_price;

    }

     

    function get_products() {

    global $languages_id;

     

    if (!is_array($this->contents)) return false;

    **********************************************

     

    Thank you!


  11. I'm also having problems with this error.?

    1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '0,'+',1)' at line 1

    insert into products_attributes (products_id, options_id, options_values_id, options_values_price, price_prefix, sort_order) values (23,1,,0,'+',1)

    [TEP STOP]

    Anyone help out?

    I am also getting this error - and it is beyond my level of programming... I currently have this Contrib running smoothly on one site but am stuck with this error on sister site using different server.

    But, unlike Steve, my my products options values to products id table is populated.

    Can anyone Please! help me fix this?

×