Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

analli

Archived
  • Posts

    76
  • Joined

  • Last visited

Everything posted by analli

  1. Here's an interesting update. It seems that the CHECKOUT does the calculations correctly but when reviewing the order in the order editor it shows the calculations done differently. Anthony
  2. I think this issue has been brought up before and there was a simple resoultion. But once I updated to the latest version the update was wiped out and I just realized it. In my case the discount is being applied AFTER the tax calculation. This means my clients are paying tax on the higher, pre-discount amount. I'd like the discount to be applied BEFORE the tax, therefore taxes are calculated on the lower, discounted price. What changes do I have to make so this is the case? Anthony
  3. Both of the above edits restore the normal function of Order Editor with the drop down. Unfortunately, a feature of the freeofcharge module is that if the cart has a value of 1 cent or greater freeofcharge is excluded from the payment list. With either one of these edits in place freeofcharge ALWAYS appears as a payment option regardless of cart value. No biggie. The dropdown is not at all critical to me. I thought you might like a follow up. Anthony
  4. Thanks, that did the trick. Is there something I can do to reenable it or will I always have that dropown disabled now? Anthony
  5. I've just installed a Free Of Charge payment module and now I get a fatal error in Order Editor. In the area where payment information would be I get this error... Fatal error: Call to a member function on a non-object in .../catalog/includes/modules/payment/freeofcharge.php on line 42 Below is the contents of freeofcharge.php... <?php /* $Id: freeofcharge.php,v 1.0 2005/07/11 17:04:32 cap Exp $ Free Of Charge Payment Module for osCommerce 2.2 MS2 Module written by Want A Better Website, Inc. http://www.wantabetterwebsite.com/ Module checks the grand total of the customer's shopping cart. If the grand total is $0.00 and this module is enabled, a Free Of Charge option is given to the customer on checkout. Module Copyright © 2005 Want A Better Website, Inc. osCommerce Copyright © 2003 osCommerce Released under the GNU General Public License */ class freeofcharge { var $code, $title, $description, $enabled; // class constructor function freeofcharge() { global $order; $this->code = 'freeofcharge'; $this->title = MODULE_PAYMENT_FOC_TEXT_TITLE; $this->description = MODULE_PAYMENT_FOC_TEXT_DESCRIPTION; $this->sort_order = MODULE_PAYMENT_FOC_SORT_ORDER; $this->enabled = ((MODULE_PAYMENT_FOC_STATUS == 'True') ? true : false); if (is_object($order)) $this->update_status(); } // class methods function update_status() { global $order; // disable the module if the order only contains virtual products if ($this->enabled == true) { global $cart; if ($cart->show_total() >= 0.01) { $this->enabled = false; } } } function javascript_validation() { return false; } function selection() { return array('id' => $this->code, 'module' => $this->title); } function pre_confirmation_check() { return false; } function confirmation() { return false; } function process_button() { return false; } function before_process() { return false; } function after_process() { return false; } function get_error() { return false; } function check() { if (!isset($this->_check)) { $check_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_PAYMENT_FOC_STATUS'"); $this->_check = tep_db_num_rows($check_query); } return $this->_check; } function install() { tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable Cash On Delivery Module', 'MODULE_PAYMENT_FOC_STATUS', 'True', 'Do you want to accept Cash On Delevery payments?', '6', '1', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Payment Zone', 'MODULE_PAYMENT_FOC_ZONE', '0', 'If a zone is selected, only enable this payment method for that zone.', '6', '2', 'tep_get_zone_class_title', 'tep_cfg_pull_down_zone_classes(', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort order of display.', 'MODULE_PAYMENT_FOC_SORT_ORDER', '0', 'Sort order of display. Lowest is displayed first.', '6', '0', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, use_function, date_added) values ('Set Order Status', 'MODULE_PAYMENT_FOC_ORDER_STATUS_ID', '0', 'Set the status of orders made with this payment module to this value', '6', '0', 'tep_cfg_pull_down_order_statuses(', 'tep_get_order_status_name', now())"); } function remove() { tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')"); } function keys() { return array('MODULE_PAYMENT_FOC_STATUS', 'MODULE_PAYMENT_FOC_ZONE', 'MODULE_PAYMENT_FOC_ORDER_STATUS_ID', 'MODULE_PAYMENT_FOC_SORT_ORDER'); } } ?> It appears that Line 42 is a blank line under class freeofcharge { var $code, $title, $description, $enabled; Any ideas? Anthony
  6. Regarding images in event listings... I find that when I am editing an event that has an image file included, despite the image appearing in the bottom right of the event editor unless I REATTACH the image it will be lost on saving. Is there a way to have the image retained as to avoid reattaching every time I edit? Anthony
  7. A new update was released but I have new issues. 1) When I insert an a href link in the body of the event, I CAN view the link in the preview but when I take the next step and save the event it turns out to be 0 bytes with no text in the body of any kind. 2) The heading bar background color for some reason changed from the default grey to a beige color. This does not match any other part of my site's color scheme. Anthony
  8. Is there a way to add multiple external web links to the bottom of event details pages rather than just one? I tried adding a href entries in the body but when I have ' or " in the link \\\ is automatically added. Anthony
  9. As processed during checkout: ------------------------------------------------------ 1 x MRX - PCAS (MRX) = $549.00 ------------------------------------------------------ Discount Coupon xxxxxxxx applied: -$30.00 Sub-Total: $519.00 Shipping (Shipping to Ontario, Canada ): $19.00 Tax: $72.66 Total: $610.66 The tax is 14% of $519.00 (the AFTER DISCOUNT purchase price). Below is what is found in the Order Editor... Discount, Shipping and Total Discount Coupon xxxxxxxxx applied: -30.00 ONT PST 8.0% + GST: 76.86 Sub-Total: 549.00 Shipping:Shipping (Shipping to Ontario, Canada ): 19.00 Total: 614.86 It appears that the order editor is not subtracting the discount from the subtotal. Anthony
  10. Here's a new quirk for me... I use a Discount Coupon contribution. During checkout, when a discount code is used, it subtracts the value of the discount from the purchase BEFORE TAXES. When I open Order Edit, it appears that the discount coupon entry applies the discount AFTER TAXES. Therefore, there is a difference in totals between the actual checkout and the total amount indicated in Order Editor equal to the taxes on the value of the discount coupon. Any way to resolve? Anthony
  11. I installed "over" 2.9.2 and the upgrade was 100% successful. It is very important to run the sql command from UPGRADES.TXT before following INSTALL.TXT starting at step 2 (do NOT do step one, it's a NON-UPGRADE sql command). Anthony
  12. Version 3 is great and the upgrade process is perfect! Thanks and good work. Anthony
  13. I was running 2.9.1 and upgrading to 2.9.2 but I now notice version 3.0. I'd love to try that as an upgrade! Anthony
  14. I restored from backup. It was a sql error relating to a missing table. Can someone create complete instructions for upgrading from the previous version (including sql)? Anthony
  15. When installing the upgrade a few days ago from a previous version I recieved an error message relating to a table not being found. I did run the mysql command but it did not execute properly. Do the sql installation assume a clean install? If so, as there are upgrade install procedures, are the upgrade sql entries? Anthony
  16. I'm looking for something similar. I'd like to see a way to filter out search engine spiders or block them altogether. Anthony
  17. GAF Alert! Sorry guys, I missed the upload of admin/includes/functions/coupons.php. All is okay. Great upgrade! Anthony
  18. GAF Alert! Sorry guys, I missed the upload of admin/includes/functions/coupons.php. All is okay. Great upgrade! Anthony
  19. After upgrading to version 3.0 and creating a test coupon I get the following error after I press Insert: 1054 - Unknown column 'coupons_discount_percent' in 'field list' insert into discount_coupons ( coupons_id, coupons_description, coupons_discount_percent, coupons_date_start, coupons_date_end, coupons_max_use, coupons_min_order, coupons_max_order, coupons_number_available) values ('t12', 't12', '0.000253292806484', null, null, 1, 1974, 1974, 1) [TEP STOP] Also, on the coupon creation page the following do not appear to be defined: TEXT_DISCOUNT_COUPONS_PERCENT TEXT_DISCOUNT_COUPONS_FIXED TEXT_DISCOUNT_COUPONS_MAX_ORDER Anthony
  20. I just upgraded my Discount Coupons installation with the Apr. 20 bug fixes version. I really like the ability to edit now! The issue I seem to be having is with FIXED DISCOUNTS. I enter, for example, a fixed discount of 49.99 for a minimum purchase of $1774 and when I apply it a percentage shows up of something like 0.0003 and when tested the discount works out to about 30 cents on a nearly $2000 purchase. I can just stick with percentages but was wondering what this behavior was. Anthony
  21. It's strange. I still get the LDF004 error when I first start Leapfrog and then go on to my store's main page. Then a few clicks in (usually when I finally reach a product page) Leapfrog displays properly. A
  22. I _THINK_ I'm moving forward with this. Now this is the problem I'm having. The following error occurs. Unable to connect to the Leapfrog data feed. Please read the following suggestions: 1. Do you have an admin login contribution installed? If so you must edit it to allow Leapfrog to access '/admin/leapfrog_feed.php'. 2. Are you using IE and SSL? There is a known issue with this setup. Please see INSTALL.txt for details. Alternatively switch to Firefox. 3. Visit the support thread on the official osCommerce forum. There might be an answer there. Code: LDF004 I get this in both IE and Firefox. As far as I know I do NOT have an admin login contrib. Anthony
×
×
  • Create New...