Jump to content

Gnarpjohan

Members
  • Content count

    18
  • Joined

  • Last visited

Profile Information

  • Real Name
    Johan S?derstr?m
  1. Gnarpjohan

    Basic Blue Template

    Alright, for these two contribs - just follow installation instructions: FCK Editor 2.5 Beta for RC1 Define mainpage v 1.3.3 for MS2 (July 2003) Then, find this line of code in admin/define_mainpage.php: Change into: ...where '600' is the width and '400' is the height in pixels of the field in admin where you enter your stuff for the main page, you can change it into the size you prefer. I have also installed this infobox admin contribution and use the same type of adjustment to make it work with FCK Editor 2.5 Beta for RC1.
  2. Gnarpjohan

    Basic Blue Template

    Yes, Define Mainpage 1.3.3 works well with the Basic Blue Template. No problem in getting it to work with FCK Editor 2.5 beta either which I have installed for product descriptions. Simple install. I'll post the instructions here later for anyone interested.
  3. Gnarpjohan

    Basic Blue Template

    Toyicebear: Would the Basic blue template work well together with the Define mainpage 1.3.3 contrib? On an RC1 install. I feel I am beginning to stretch my luck but would like to install the mainpage contrib for the blue template to work with FCK Editor. I thought maybe others might be interested as well.
  4. Gnarpjohan

    Basic Blue Template

    Removing the Thai middle-of-the page text made the right column fall into place, very nice...thanks! :thumbsup:
  5. Gnarpjohan

    Basic Blue Template

    Many thanks for the nice contrib. I have a small issue with my right column, but only when using Thai language and only in the Mozilla Firefox browser. When I use MS Explorer, there does not seem to be a problem. For any other language, there is not problem in any of the two browsers I use. Basic blue with Thai language in Firefox, right column out of sync: Basic blue with Thai language in Explorer, no problem: The Thai language pack might not be fully RC1 compliant, but I have tried to replace any missing files with English language files.
  6. Gnarpjohan

    NEW! Complete Order Editing Tool!

    virtualend: I should add, take a backup of the database first...
  7. Gnarpjohan

    NEW! Complete Order Editing Tool!

    virtualend: Luckily, running this MySQL command is actually quite simple also for us non-tech-experts. There are softwares that help in managing the MySQL databases. Do you have phpMyAdmin installed? If you do, start up phpMyAdmin and choose the oscommerce database in the drop-down menu.Click the "SQL"-window in the menu and paste the SQL command text into the pop-up-window. Click "run" and that's it!
  8. Gnarpjohan

    NEW! Complete Order Editing Tool!

    After deleting the added product, I get: ...which again is the original order with VAT computed correctly but not displayed at the bottom row which would be the best. The order of the display is the same for the invoice as well.
  9. Gnarpjohan

    NEW! Complete Order Editing Tool!

    Order details from the invoice after the unedited order of one product with 20% VAT (VAT=moms=merv?rdesskatt) of total value: The same order details in Order Editor: "Fraktkostnad" is cost of shipping which also includes 20% VAT. (Yes, I should fix the language) Here I add one identical product from Order Editor and update: The funny thing is that the VAT is now computed correctly. But on another line (not the bottom line as before but before the shipping cost). Order total before shipping of 40 includes VAT and so does shipping cost ("fraktkostnad") of 25. So the total order value is 40+25=65 of which VAT should be 20% or 65*0.2=13, correct! My Order Total Modules setting in admin is still to display VAT at the bottom row. Thanks for even looking at this stuff...
  10. Gnarpjohan

    NEW! Complete Order Editing Tool!

    Yes, "moms" totalt is the total value added tax, usually but not always 20% of the total sales value. My not so qualified guess is that it is specified in the modified catalog/includes/modules/order_total/ot_tax.php Apologies for this post: <?php /* $Id: ot_tax.php,v 1.3 2005/02/19 09:01:10 joacim Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License [Joacim J?rkeborn, 2005-02-18] Modified for viewing taxes in different ways, more support for multiple tax rates and able to split the display per tax rate. */ class ot_tax { var $title, $output; function ot_tax() { $this->code = 'ot_tax'; $this->title = MODULE_ORDER_TOTAL_TAX_TITLE; $this->description = MODULE_ORDER_TOTAL_TAX_DESCRIPTION; $this->enabled = ((MODULE_ORDER_TOTAL_TAX_STATUS == 'true') ? true : false); $this->sort_order = MODULE_ORDER_TOTAL_TAX_SORT_ORDER; $this->output = array(); } /* ************************************************** * Summerar totala momsen p? en rad f?r momssatserna * ************************************************** */ function process() { global $order, $currencies; if(MODULE_ORDER_TOTAL_TAX_SHOW_HEADER == 'true') { $this->output[] = array('title' => '<b>' . MODULE_ORDER_TOTAL_TAX_HEADER . '</b>', 'text' => '', 'value' => ''); } // Calculate the total tax amount $num = 0; $total_moms_summa = 0; reset($order->info['tax_groups']); while (list($key, $value) = each($order->info['tax_groups'])) { if ($value > 0) { $total_moms_summa=$total_moms_summa+$value; // Summerar totala momsen $num++; } } $moms_desc = ''; if(DISPLAY_PRICE_WITH_TAX == 'false') { // Skriver ut totalamomsen $this->output[] = array( 'title' =>MODULE_ORDER_TOTAL_TAX_TITLE.':', 'text' => $currencies->format($total_moms_summa, true, $order->info['currency'], $order->info['currency_value']), 'value' => $total_moms_summa); } else { // If more than one tax group was used, display the total amount of tax if ( MODULE_ORDER_TOTAL_TAX_INCL_SPLITTED == 'false' || (MODULE_ORDER_TOTAL_TAX_INCL_SPLITTED == 'true' && $num > 1)) { $this->output[] = array('title' => MODULE_ORDER_TOTAL_TAX_INCL_TITLE . ':', 'text' => $currencies->format($total_moms_summa, true, $order->info['currency'], $order->info['currency_value']), 'value' => $order->info['total']); } if (MODULE_ORDER_TOTAL_TAX_INCL_SPLITTED == 'true' ) { // Display the taxes per tax group reset($order->info['tax_groups']); while (list($key, $value) = each($order->info['tax_groups'])) { if ($value > 0) { $this->output[] = array('title' => MODULE_ORDER_TOTAL_TAX_SPLIT_TITLE . $key . ':', 'text' => $currencies->format($value, false, $order->info['currency'], $order->info['currency_value']), 'value' => $value); } } } } } // *************************************************** function check() { if (!isset($this->_check)) { $check_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_ORDER_TOTAL_TAX_STATUS'"); $this->_check = tep_db_num_rows($check_query); } return $this->_check; } function keys() { return array('MODULE_ORDER_TOTAL_TAX_STATUS', 'MODULE_ORDER_TOTAL_TAX_SORT_ORDER','MODULE_ORDER_TOTAL_TAX_SHOW_HEADER' ,'MODULE_ORDER_TOTAL_TAX_INCL_SPLITTED'); } 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 ('Display Tax', 'MODULE_ORDER_TOTAL_TAX_STATUS', 'true', 'Do you want to display the order tax value?', '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, date_added) values ('Sort Order', 'MODULE_ORDER_TOTAL_TAX_SORT_ORDER', '3', 'Sort order of display.', '6', '2', now())"); 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 ('Display tax specification header', 'MODULE_ORDER_TOTAL_TAX_SHOW_HEADER', 'false', 'Enable to show the tax specification header?', '6', '3','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, set_function, date_added) values ('Display amount splitted per tax rate', 'MODULE_ORDER_TOTAL_TAX_INCL_SPLITTED', 'false', 'Enable to split the tax amounts on the different tax rates?', '6', '4','tep_cfg_select_option(array(\'true\', \'false\'), ', now())"); } function remove() { tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')"); } } ?> And in includes/languages/english/english/modules/order_total/ot_tax: <?php /* Swedish Text for osCommerce 2.2 Last Update: 2003-03-03 [Joacim J?rkeborn, 2005-02-18] Modified for viewing taxes in different ways, more support for multiple tax rates and able to split the display per tax rate. */ define('MODULE_ORDER_TOTAL_TAX_HEADER', 'Swedish value added tax specification '); define('MODULE_ORDER_TOTAL_TAX_TITLE', 'Swedish value added tax'); define('MODULE_ORDER_TOTAL_TAX_DESCRIPTION', 'Denna modul st?der att visa moms p? olika s?tt beroende p? om det ing?r eller ej i produktpriset'); define('MODULE_ORDER_TOTAL_TAX_INCL_TITLE', 'Including VAT '); define('MODULE_ORDER_TOTAL_TAX_SPLIT_TITLE', 'Of which '); ?>
  11. Gnarpjohan

    NEW! Complete Order Editing Tool!

    Yes! It is the same for me. The text in orders_total is correct for "including VAT" but the value is wrong and is instead order total. I have a feeling that could be a very helpful observation from you. Thanks!
  12. Gnarpjohan

    NEW! Complete Order Editing Tool!

    Hi and thanks for the contrib 2.6.3. I have just installed it but seem to have the same problem as Stefan Lindvald. My invoice screen shows VAT as 20% of the total purchase price at the bottom row, just as desired: But VAT becomes total purchase price in Order Editor: Here two screens of database table content (tax_class and tax_rate tables): The file catalog\includes\modules\order_total\ot_tax.php seems to be quite modified for Swedish VAT with the contribution "Swedish methods of payment 2.2" and if it helps I would be happy to post it here or parts of it here.
  13. Gnarpjohan

    NEW! Complete Order Editing Tool!

    Will do, and thank you for the work on the contribution!
  14. Gnarpjohan

    NEW! Complete Order Editing Tool!

    Did any of you Swedish people manage to solve the problem with total VAT for any version of Order Editor? I am considering which version to install.
  15. Doesn't seem to be the problem at first glance, the only difference between the categories.php modified by More pics and the previous file is the additions by More pics. Will continue to compare files...
×