Jump to content

bonester1981

Members
  • Content count

    13
  • Joined

  • Last visited

Everything posted by bonester1981

  1. bonester1981

    Quantity Price Breaks

    In version QPBPP_v1_3_5 you can only add net prices. I was looking for a way to put gross prices in and that is the way you do it: admin/categories.php After: (in the javascript section of categories.php) function updateNet() { var taxRate = getTaxRate(); var netValue = document.forms["new_product"].products_price_gross.value; if (taxRate > 0) { netValue = netValue / ((taxRate / 100) + 1); } document.forms["new_product"].products_price.value = doRound(netValue, 4); } insert: <?php for ($count = 0; $count <= (PRICE_BREAK_NOF_LEVELS - 1); $count++) { ?> function updateGross<?php echo $count; ?>() { var taxRate = getTaxRate(); var grossValue = document.forms["new_product"].products_price<?php echo $count; ?>.value; if (taxRate > 0) { grossValue = grossValue * ((taxRate / 100) + 1); } document.forms["new_product"].products_price_gross<?php echo $count; ?>.value = doRound(grossValue, 4); } function updateNet<?php echo $count; ?>() { var taxRate = getTaxRate(); var netValue = document.forms["new_product"].products_price_gross<?php echo $count; ?>.value; if (taxRate > 0) { netValue = netValue / ((taxRate / 100) + 1); } document.forms["new_product"].products_price<?php echo $count; ?>.value = doRound(netValue, 4); } <?php } ?> Replace: if(is_array($price_breaks_array) && array_key_exists($count, $price_breaks_array)) { echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_input_field('products_price' . $count, $price_breaks_array[$count]['products_price'], 'size="10"'); echo tep_draw_separator('pixel_trans.gif', '24', '15') . TEXT_PRODUCTS_QTY; echo tep_draw_separator('pixel_trans.gif', '24', '15') . tep_draw_input_field('products_qty' . $count, $price_breaks_array[$count]['products_qty'], 'size="10"'); echo tep_draw_separator('pixel_trans.gif', '24', '15') . tep_draw_checkbox_field('products_delete' . $count, 'y', false) . TEXT_PRODUCTS_DELETE; } else { echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_input_field('products_price' . $count, '', 'size="10"'); echo tep_draw_separator('pixel_trans.gif', '24', '15') . TEXT_PRODUCTS_QTY; echo tep_draw_separator('pixel_trans.gif', '24', '15') . tep_draw_input_field('products_qty' . $count, '', 'size="10"'); } With: if(is_array($price_breaks_array) && array_key_exists($count, $price_breaks_array)) { echo tep_draw_separator('pixel_trans.gif', '3', '15') . TEXT_PRODUCTS_PRICE_NET . ' ' . tep_draw_input_field('products_price' . $count, $price_breaks_array[$count]['products_price'], 'onKeyUp="updateGross'.$count.'()"'); echo '<br>' . tep_draw_separator('pixel_trans.gif', '3', '15') . TEXT_PRODUCTS_PRICE_GROSS . tep_draw_input_field('products_price_gross' . $count, $price_breaks_array[$count]['products_price'], 'onKeyUp="updateNet'.$count.'()"'); echo tep_draw_separator('pixel_trans.gif', '3', '15') . TEXT_PRODUCTS_QTY; echo tep_draw_separator('pixel_trans.gif', '3', '15') . tep_draw_input_field('products_qty' . $count, $price_breaks_array[$count]['products_qty'], 'size="10"'); echo tep_draw_separator('pixel_trans.gif', '3', '15') . tep_draw_checkbox_field('products_delete' . $count, 'y', false) . TEXT_PRODUCTS_DELETE; } else { echo tep_draw_separator('pixel_trans.gif', '3', '15') . TEXT_PRODUCTS_PRICE_NET . ' ' . tep_draw_input_field('products_price' . $count, $price_breaks_array[$count]['products_price'], 'onKeyUp="updateGross'.$count.'()"'); echo '<br>' . tep_draw_separator('pixel_trans.gif', '3', '15') . TEXT_PRODUCTS_PRICE_GROSS . tep_draw_input_field('products_price_gross' . $count, $price_breaks_array[$count]['products_price'], 'onKeyUp="updateNet'.$count.'()"'); echo tep_draw_separator('pixel_trans.gif', '3', '15') . TEXT_PRODUCTS_QTY; echo tep_draw_separator('pixel_trans.gif', '3', '15') . tep_draw_input_field('products_qty' . $count, '', 'size="10"'); } Directly below after: ?> </td> </tr> <?php } ?> Insert: <script language="javascript"><!-- <?php for ($count = 0; $count <= (PRICE_BREAK_NOF_LEVELS - 1); $count++) { ?> updateGross<?php echo $count; ?>(); <?php } ?> //--></script> Now you can enter the price as net or gross. :)
  2. bonester1981

    Multi_Vendor_Shipping new thread

    Hello, I Installed MVS and everything works fine. When I go to checkout_shipping.php and turn on Kiss Error & Debugging, following errors occur: Error: Undefined variable: order_id File: includes/classes/order.php Line: 288 Error: Undefined index: 1 File: includes/classes/shopping_cart.php Line: 369 Error: Undefined index: weight File: includes/classes/shopping_cart.php Line: 369 Error: Undefined index: cost File: includes/classes/shopping_cart.php Line: 370 Error: Undefined index: qty File: includes/classes/shopping_cart.php Line: 371 Error: Undefined index: ship_cost File: includes/classes/shopping_cart.php Line: 373 Error: Undefined variable: shipping_tax File: includes/modules/vendor_shipping.php Line: 44 Is someone able to fix that? Kind regards
  3. bonester1981

    ULTIMATE Seo Urls 5 - by FWR Media

    Hello, today I came across this tip here: http://forums.oscommerce.com/topic/155079-remove-index-php-when-browsing-back-to-main-page/ and I wanted to add this to my shop. The way they solved the "//" problem doesnt work for me, because I use USU5. Any Ideas how to solve it while using USU5?
  4. bonester1981

    SiteMonitor

    Hi, I am using the newest version of sitemonitor and when hitting "Manually Execute Sitemonitor" following error appears: There are also two emails send. When coming back to sitemonitor admin the following error occurs:
  5. Hi, first of all: thanks FWR for your work! Installing was easy and I tested it. When I tested the functionality a little error occured: When a customer will log in and has forgotten his password and tries a few passwords he will sooner or later get a new one. When pressing the password forgotten link, the customer will be redirected to password_forgotten.php and the email address will be prompted in the email address field, but while using Security Pro, the @ sign will be removed and user@example.com will become userexample.com . This is very uncomfortable for the customer so I wanted to change this: The core Security Pro files check if page is declared and will break down the whole security for that page, but this isn´t either what I wanted so I worked around that allowing special chars for user defined pages: includes\functions\security.php Find: Replace with: While experimenting I found out, that you can´t use something like this: When I used the $extra_chars on other functions it came like this: When someone has another way, please tell me! Another step has to be taken: application_top.php Replace: with Then go to your admin area ->FWR Security Pro->File Exclusions and set password_forgotten.php If you want another page allow extra chars, do following: For index.php 1. Go to your admin area ->FWR Security Pro->File Exclusions and set password_forgotten.php,index.php 2. Go to includes\functions\security.php and change in tep_get_char_exclusions() : to For every filename you declare in this part of this code, you to put a number before your allowed chars. the next where '3*' => FILENAME_LOGIN and so on... Comments are appreciated!
  6. bonester1981

    [Contribution] STS v4

    Hi, some time ago I posted these errors using FWR´s Error Handling: I found a way to fix it: Error: Undefined property: sts_default::$enabled File: includes/classes/sts.php Line: 94 if ($this->script->enabled==false) { Change to: if (isset($this->script->enabled) && $this->script->enabled==false) { Error: Undefined property: sts::$display_debug_output File: includes/modules/sts_inc/sts_display_output.php Line: 33 if ($sts->display_debug_output) { Change to: if (isset($sts->display_debug_output)) { I hope this will help! :)
  7. Hi, here is another list: http://solariz.de/download-7 Perhaps you can implement it as a second stopword list, because it is much bigger than the first one so german users can decide which one they will use. Your Error Handler works well: :) E_STRICT Error Count: 1 Error: Non-static method KissMT_Modules::stripStopWords() cannot be called statically, assuming $this from compatible context KissMT_Module File: includes/modules/kiss_meta_tags/abstracts/kiss_modules.php Line: 134 This error occurs when I visit index.php
  8. bonester1981

    [Contribution] STS v4

    Hi, I added FWR Media´s KissER Error Handling and the output was: E_NOTICE Error Count: 2 Error: Undefined property: sts_default::$enabled File: includes/classes/sts.php Line: 94 Error: Undefined property: sts::$display_debug_output File: includes/modules/sts_inc/sts_display_output.php Line: 33 I tried to fix it, but the page got broken... Can someone fix it? Used contrib: STSv4.5.8 Dated Jan 23, 2008
  9. Here is a list of german stopwords: http://www.ranks.nl/stopwords/german.html
  10. Hi, I am testing this contribution and find it very useful. I like your contribs, thanks for that! :) Everything works fine, except this: Error: Undefined index: break File: includes/kiss_error_handler.php Line: 316 E_WARNING Error Count: 1 Error: Invalid argument supplied for foreach() File: includes/kiss_error_handler.php Line: 316 My configuration: PHP Version 5.2.12 Linux Kind regards
×