Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

johnnymke

Archived
  • Posts

    103
  • Joined

  • Last visited

Posts posted by johnnymke

  1. Hi-

     

    product_thumbs.php cause mod_evasive to flip and block requests, especially on pages producing alot of thumbs.

     

    This is cited on this thread too:

     

    http://www.oscommerce.com/forums/index.php?showtopic=122761

     

    Any help on that front?

     

    Here's my mod_evasive parameters:

     

    DOSHashTableSize 3097

    DOSPageCount 100

    DOSSiteCount 500

    DOSPageInterval 1

    DOSSiteInterval 1

    DOSBlockingPeriod 1

     

    I know its not the safest, but I figure DDoS attacks are generally pushing alot more requests than whats here...

     

    Any help appreciated...

  2. please let me know if you find out the answer :-)

     

    I kinda solved it. I changed email.php in admin/includes/classes. I was having line breaks inserting <br> tags in the email html...

     

    From

     

    	function add_html($html, $text = NULL, $images_dir = NULL) {
      $this->html = tep_convert_linefeeds(array("\r\n", "\n", "\r"), '<br> ', $html);
      $this->html_text = tep_convert_linefeeds(array("\r\n", "\n", "\r"), $this->lf, $text);

     

    To this:

     

    	function add_html($html, $text = NULL, $images_dir = NULL) {
      $this->html = tep_convert_linefeeds(array("\r\n", "\n", "\r"), ' ', $html);
      $this->html_text = tep_convert_linefeeds(array("\r\n", "\n", "\r"), $this->lf, $text);

     

    Now my emails come correctly formatted. However, it seems this is needed for sending out order updates (no line breaks, creates run-on text emails). I turned off send emails in MIME Html under Configuration>Email Options to see if that works...

  3. Hi Everyone-

     

    I got a call from a Web Integretion rep @ fedex wondering if I was the developer of this module amongst other questions in my quest to be certified for the production server. I explained a little about oscommerce and in particular about this module. The rep seemed rather excited about the project and promised to forward the links to their programmers. I expressed my hope they will consider supporting this and other fedex modules in the future considering that when I call USPS or Authorize.net to setup an account they know what I mean when I say "OSCommerce".

     

    Thought I'd share that....

  4. Right, but what if the billing address differs from the delivery address?

     

    Considering Im from Wisconsin, and I buy something from a Wisconsin-based sales operation, and then ship it to Granny in Michigan, I would still be charged the sales tax...since both I and the business are from Wisconsin. It doesnt make sense to figure the sales tax based on the delivery address all the time....

     

    In Ohio, you need to calculate the sales tax based on the delivery address.

  5. Update:

     

    I found two areas that I think this is calculated from (maybe someone can enlighten me)

     

    in catalog/includes/modules/order_total/ot_shipping.php

    CODE

    $shipping_tax = tep_get_tax_rate($GLOBALS[$module]->tax_class, $order->delivery['country']['id'], $order->delivery['zone_id']);

    $shipping_tax_description = tep_get_tax_description($GLOBALS[$module]->tax_class, $order->delivery['country']['id'], $order->delivery['zone_id']);

     

    $order->info['tax'] += tep_calculate_tax($order->info['shipping_cost'], $shipping_tax);

    $order->info['tax_groups']["$shipping_tax_description"] += tep_calculate_tax($order->info['shipping_cost'], $shipping_tax);

    $order->info['total'] += tep_calculate_tax($order->info['shipping_cost'], $shipping_tax);

     

    if (DISPLAY_PRICE_WITH_TAX == 'true') $order->info['shipping_cost'] += tep_calculate_tax($order->info['shipping_cost'], $shipping_tax);

    }

     

     

    This certainly looks like tax is based off of the delivery address exclusively...How could I port this to the billing address if thats the case?

     

    OR

     

    catalog/includes/classes/order.php

     

    CODE

     

    $tax_address_query = tep_db_query("select ab.entry_country_id, ab.entry_zone_id from " . TABLE_ADDRESS_BOOK . " ab left join " . TABLE_ZONES . " z on (ab.entry_zone_id = z.zone_id) where ab.customers_id = '" . (int)$customer_id . "' and ab.address_book_id = '" . (int)($this->content_type == 'virtual' ? $billto : $sendto) . "'");

    $tax_address = tep_db_fetch_array($tax_address_query);

     

     

     

    Should I modfy this query?

     

    I also found this advice but I cannot find the referenced code anywhere in order.php:

     

    QUOTE

    I've found a solution for the tax calculation being based in the shipping address instead of the billing address!

    In the catalog/includes/classes/order.php find the

     

    $tax_address_query

     

    replace it by the $billing_address_query (find it a couple of lines before).

    In the following line:

    $billing_address = tep_db_fetch_array($tax_address_query);

     

    replace it by:

    $billing_address = tep_db_fetch_array($billing_address_query);

     

    And that's it!

    You now have the tax calculated according to the billing address.

     

     

    Since its a live store I dont want to mess around to much without knowing for sure...

     

    Im not the only one taking consideration to this issue...

     

    http://www.oscommerce.com/forums/index.php?showtopic=66450

     

    Calculating sales tax on the shipping address is not sound since the BILLING address is the location/zone/whatever that the payee resides in, and therefore would be subject to taxation. However, I dont want them taxed TWICE, once for billing and again for shipping so you see the issues here...

  6. Hi-

     

    I never bothered to notice, but a customer of mine pointed this out: The sales tax is only applied to the shipping address, not the billing address. In talking to my CPA, it seems, at least in my state, sales tax must be applied to person who pays for the sale, regardless of the shipping address.

     

    My question then is this: Is my site the only one not calculating this properly? Also, what could I do to fix this? Thanks everyone...

  7. There are problems with this contribution that have been posted but no follow-ups on how to fix them....

     

    Warning: Missing argument 3 for display_price() in E:\Miata\dividi\includes\classes\currencies.php on line 72

     

    Warning: Missing argument 3 for display_price() in ...\apache\htdocs\b2bshop\includes\classes\currencies.php on line 72

     

    Please, anybody who got this fixed, post the solution!

  8. I get the same error, anyone else?

     

    Warning: main(includes/boxes/downloads.php): failed to open stream: No such file or directory in /home/solution/public_html/account_history_info.php on line 263

     

    Im gonna check any back contrib. releases for this file....

     

     

    Ok here we go...

     

    account_history_info.php, line 263 edit:

    <?php
     if (DOWNLOAD_ENABLED == 'true') include(DIR_WS_BOXES . 'downloads.php');
    ?>

     

    <?php
     if (DOWNLOAD_ENABLED == 'true') include(DIR_WS_MODULES . 'downloads.php');
    ?>

  9. Can't get downloads to work. I get the following message

    Warning: main(includes/boxes/downloads.php): failed to open stream: No such file or directory in

     

     

    Is there supposed to be a file called downloads.php in catalog/includes/boxes? Because is there is, I don't have it.

     

    I get the same error, anyone else?

     

    Warning: main(includes/boxes/downloads.php): failed to open stream: No such file or directory in /home/solution/public_html/account_history_info.php on line 263

     

    Im gonna check any back contrib. releases for this file....

  10. I ran the IPN test. I noticed in admin/orders.php under the edit, delete, invoice, packing slip buttons it shows up like this...

     

    Date Created: 10/20/2004

    Last Modified: 10/20/2004

     

    Payment Method: PayPal

    TABLE_HEADING_PAYMENT_STATUS:

     

    I still get what I posted above so the directions on the page about TransactionIDs Etc. do not make any sense...

     

    Thanks!

  11. Hi-

     

    I just installed this recent version. I had some issues with the install (mostly mysql probs since this was an upgrade)

     

    In the last 2 transactions the store had, I see this under 'Transaction Activity' in admin/orders.php:

     

    No PayPal Transaction Information Available (1264e60a3291d535bea0af1a20946bfe)

     

    Any ideas? This thread is entirely too huge to see if this has been addressed...Perhaps furhter threads can be broken up according to releases? Just a thought...

×
×
  • Create New...