Jump to content


  • Content count

  • Joined

  • Last visited

  • Days Won


Everything posted by raiwa

  1. In bm_category.php use: $category_titel = $OSCOM_CategoryTree->getData($current_category_id, 'name'); You just have to add a check if $current_category_id is not empty or zero and use MODULE_BOXES_CATEGORIES_BOX_TITLE for that case.
  2. raiwa

    Hack attempt - is there a way to prevent this?

    I guess this input example has been cleaned with: tep_db_prepare_input: function tep_db_prepare_input($string) { if (is_string($string)) { return trim(tep_sanitize_string(stripslashes($string))); } elseif (is_array($string)) { foreach($string as $key => $value) { $string[$key] = tep_db_prepare_input($value); } return $string; } else { return $string; } } which uses tep_sanitize_string: function tep_sanitize_string($string) { $patterns = array ('/ +/','/[<>]/'); $replace = array (' ', '_'); return preg_replace($patterns, $replace, trim($string)); } If it is enough I do not know neither.
  3. raiwa

    Hack attempt - is there a way to prevent this?

    malicious/problematic code has already been filtered out in this example: Bob Smith"__sCRiPt sRC=//jb.gy/i__/sC 244 Whatever St"__sCRiPt sRC=//jb.gy/i__/sCrIpT_
  4. Hello Ros @Rosyweb, In the category box module you can pass a fixed root category to the category class like this (example for root category 1): $OSCOM_CategoryTree->setRootCategoryID(1); or you can pass the actual category id as root category id. So the category box will dynamically show only the subcategories of the actual category: $OSCOM_CategoryTree->setRootCategoryID((int)$current_category_id); in this case you need to add $current_category_id to the globals list of the module: global $oscTemplate, $cPath, $current_category_id;
  5. Hello Ed @edo.script, Point 1: It looks like you tried to install/update PWA 3.0.5 over the old GOLD version from @De Dokta. It also seems you are mixing code provided from older PWA 2.x versions with PWA 3.0.5. The code you mention under point 1 is not used any more in PWA 3.0.5. Please complete uninstall your old PWA version before installing PWA 3.0.5, there are no update instructions available for that old version. For the hook call in checkout_process.php: $OSCOM_Hooks->call('pwa', 'PwaCheckoutMailMod');) . This is from an older PWA 2.x version. Please do not try to mix code from older version. Use only the coding provided in PWA 3.0.5. PWA 3.0.5 is for FROZEN BS which includes the hook call in application_top.php at the very end: $OSCOM_Hooks->register(basename($PHP_SELF, '.php')); Only if you do not have this in application_top.php you need to add to checkout_process.php: $OSCOM_Hooks->call('checkout_process', 'PwaCheckoutMailMod'); Observe that the "echo" you have in front is totally wrong. Point 2: Redo your installation like explained before. Make sure that you have the Header Tag module and the checkout_success content module correct installed.
  6. I remember a thread where this was discussed for the PHP7 update of EDGE with @BrockleyJohn but can't find it any more. He developed and tested the class constructer name updates in EDGE. Maybe he can explain the reasons better. I only remember that without this trick (there are also just empty class constructors used in some classes) function not found errors were thrown and his solution solved them.
  7. It is required where done like this. Otherwise the function "Glotz" if called from outside will not be found, just like you say.
  8. New coded content module for Bootstrap. This add-on is based on the idea of the older Holiday Message Add-Ons by fimble: http://addons.oscommerce.com/info/7648 http://addons.oscommerce.com/info/6127 It has been complete new written for BS. Easiest install: upload 2 files+language file. Install content header module in Admin. Message Header and Text can be introduced for each language in the content module set-up. Selectable pages where to show the modue. Download: http://addons.oscommerce.com/info/9331
  9. Updated to Holiday-Promotional Message 2.1.2 BS Changes version 2.1.2: - added additional fix in admin/modules_content.php to prevent escape backslash for sql sensitive special characters to be duplicated when edited. Changes version 2.1.1: - reverted wrong fix introduced in 2.1. - applied correct fix in admin/modules_content.php to allow sql sensitive special characters like single quote (apostrophe) in Text definitions.
  10. This could be achieved with javascript. But it's much easier to just show the $ sign permanent outside before the inputfield. <?php  echo '$ ' . tep_draw_input_field('enquiry', '', 0, 1, NULL, 'required aria-required="true" maxlength="6" id="inputEnquiry" placeholder="' . ENTRY_OFFER_TEXT . '"'); echo FORM_REQUIRED_INPUT; ?> shipping not included </div>
  11. Constant in text definition is: MODULE_NAVBAR_ABOUTUS_PUBLIC_TEXT Constant in template is: MODULE_NAVBAR_ABOUT_US_PUBLIC_TEXT Hope you see the difference.😉
  12. Make sure to include the variable which holds the product id in the globals list of your module. In your case it should be $printlist.
  13. raiwa

    QTPro BS

    QTPro BS 5.0 I'm working on a new version based on QTpro for osc 2.3 version 4.6.1 plus newer updates and fixes. Planned Changes: coding updates for latest 2.3.4 BS EDGE Community version with hardcoded filenames, database table names, paths and superglobals content modules for product info, shopping cart hooked modifications or separate functions where possible to avoid core file changes (stock checks etc in checkout pages) final product prices shown in option/attribute combinations on product info page also for more than one option/combinations general code clean up language constants/definitions for all texts for full multilanguage support To do list: update qtprodoctor.php hardcoded stuff, superglobals language constants/definitions update stats_low_stock_attrib.php hardcoded stuff, superglobals language constants/definitions update stock.php hardcoded stuff, superglobals language constants/definitions replace mods in admin/boxes/tools.php by separate file replace mods in admin/boxes/reports.php by separate file avoid mods in admin/includes/functions/general.php load function file in modules replace core function mods by own functions? modularize product info options modularize product info stock table versions for Modular Product Page by kymation alternative product listing module for modularized shopping cart order class extension to avoid mods in core order class replace all mods in checkout files by hooks? check compatibility with ajax attribute manager add support for attribute sort order update instructions It would be great if there appear testers for the mods. Who has the old version already installed: - replace the admin files - upload and install the product info content modules and (IMPORTANT!) uncomment the complete options/attributes section in product_info.php For new installations: - instructions are not updated yet follow the old instructions except A.: don't modify admin/includes/boxes/tools.php and reports.php, upload the nwe files instead B.: upload and install the product info content modules and (IMPORTANT!) uncomment the complete options/attributes section in product_info.php instead to apply the mods Most important for now are the changes in the product info option modules to show final prices according to the option selection even if there are muliple option combinations (single drop down and single radios) GitHub repository Thanks and best regards Rainer
  14. YEs, or maybe using a external payment service like PayPal standard he didn't come back to your store after payment and the account didn't get auto deleted on checkout success page. So in these cases you can identify guest accounts and delete them yourself in admin if you wish.
  15. Hello Peter, If you are using the BS Community version you do not need javascript. You can use the Bootstrap built in Modal Popup: https://getbootstrap.com/docs/4.0/components/modal/ This link is for BS4 but it's also available for BS3 OK it uses also javascript buit can be triggered with simple css/html code.
  16. raiwa

    QTPro BS

    Hello Fredrik @redrum, First of all to say that I didn't write the contribution from the beginning. I only updated and adapted it to the BS Community edition and higher PHP versions. I didn't digg into these functions until now, but tried to follow up how it works. If you check the mentioned functions, you'll see that they use "qtpro_product_exists". Which checks if the product whos id is stored in the stock table still exists. If you delete a product and don't remove the options/attributes of the product, the stock entry still is in the stock table even the asociated product has been removed. This produces that error message. When I find some time I'll research further how to avoid it. Best regards Rainer
  17. Hello Andrea @puggybelle, I'm pretty sure that this is again unrelated to PWA. The missing customer address, e-mail and phone is stored in the order tables and independant from the customers account data which is stored (and deleted by PWA) in the customers and address-book tables. The error you get trying to send a status update is because there is no e-mail address stored in the order like I can see in your screenshot. No e-mail address, no mail can be send. PWA and the modifications in paypal standard do not interfere in any way how the order data is stored, so it can't be the reason for this problem. If correct installed, PWA only modifies the content of the order confirmation mail and flaggs the order as a guest order, nothing else. The fact that guest accounts are auto deleted on successful checkout is one of main features and it makes sense. It is just what customers using guest checkout like. Only the strictly required order data is kept stored. Please revise your store and check again your modifications. Best regards Rainer PS: Please consider also that PWA guest checkout is published since years and for sure used in hundreds of stores. No one else has reported something similar yet.
  18. Hello Andrea @puggybelle, There is something unclear in your report: If going to add a new shipping address in checkout shipping.php, the customer will be linked back first to the checkout shipping page where he sees the new shipping address. Then in the next step he will go to the checkout payment page and see the old (first) payment address. (shipping address is shown on checkout shipping, payment address is shown on checkout payment) Anyway I would recommend you to check this yourself with a test guest order. I wouldn't believe too much in what customers report. Do it yourself and get familiar with the whole process and options. In general for PWA: The only differences between a guest and a regular account are: - guest account has no password set - guest account is flagged as guest account in the customer and order table in aditional columns - once a customer leaves the checkout process without finishing and the session has expired, he can't log in again to the account, even the account has not been deleted (he has no password). But he can create again a new guest account without problems. - guest checkout is auto deleted once the order is correct finished in checkout success (if the customer does not opt in to keep the account and set a password) So all functionality like different shipping address etc. is exact the same like for regular accounts. rgds Rainer
  19. raiwa

    Products excluded from free postage

    You may have a look on this: Free Shipping Per Product It's quite outdated, so depending on your OsCommerce version it may need some update. Or this one: Separate Shipping Per Product v2.5[SSPP] It is up to date, but it is a different approach. So you may need to change your setup.
  20. Mehrfach posten ist laut Forum Guidelines nicht erlaubt: 2. Posting Punkt 2: Guidelines Du hast auf dein erstes Post schon Antwort auf diese Frage erhalten: Ausserdem solltest du die wichtige Information, dass dein Shop ein von PL System modifizierter und somit kein Standard Shop ist, nicht vorenthalten.
  21. You could use the short word filter and set it to 2: Filter Short Words This setting will filter words less than or equal to the value from the URL. or use the character conversion list: Enter special character conversions This setting will convert characters. The format MUST be in the form: char=>conv,char2=>conv2 This allows to remove concrete expressions like: by=>[leave empty] Don't forget to reset the SEO cache after changing any of these settings 😉
  22. raiwa

    Help Updating Module

    In function keys there is the comma missing after sort order constant
  23. It's like I stated, the link you posted points to the EDGE master which has been updated to BS4 and has nothing to do any more with your version from 2/2017: <!-- bs 4.2.1 --> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous"> Discount code BS will not work with BS 4, only BS3. If you wish to test with a clean unmodified version, please use FROZEN: https://github.com/gburton/Responsive-osCommerce/releases/tag/2341-Frozen This will work and then you can compare to your real store to find the problem.
  24. Wholesale (SPPC lite) Simplified SPPC module, easy modularized installation. For Bootstrap and Standard osc 2.3.4. See develop topic: http://forums.oscommerce.com/topic/408481-sppc-lite/ Features: Posibility to asign customers to the wholesaler group Define individual wholesale prices to each product Optional tax exempt wholesalers Optional define individual wholesale prices to attributes Optional define global wholesale percentage discount to all products and attribute prices The global wholesale discount will not apply to products and attributes which have individual wholesale prices defined Optional setting to apply special price instead of wholesale price if the special price is lower than the wholesale price or discount. Optional payment and shipping modules Exclusion lists for Wholesalers and Retailers. Header text module to show different info text for guests, retailers and wholesalers. The texts are editable for each store language in the module settings. By default: Guests: no text Retailers: “Welcome to your Retailer Account.<br>Please <a class="btn btn-info btn-xs" role="button" href="contact_us.php">Contact Us</a> to apply for a Wholesaler Account. See <a class="btn btn-info btn-xs" role="button" href="conditions.php">Conditions</a>.” Wholesalers: “Welcome to your Wholesaler Account.<br>You can see your Wholesaler Prices on the Product Page and they will apply when you add the products of your choice to the Shopping Cart.” Product Info Content module to show the wholesaler price in addition to the normal price on the Product Info Page Only 2 Store file modifications. application_top.php one line added. Optional product_info.php attribute block modified to show wholesale attribute price. 3 admin files modified, categories.php, customers.php and product_attributes.php. Modified files for 2.3.4 standard, Bootstrap Gold and Bootstrap Edge included. The wholesale prices will be automatic applied when adding a product to the Shopping Cart. This is done via shopping cart class extension, no file modification needed. All database modifications and language definitions are integrated in the modules. Optional database columns removal to keep existing entances when removing the module NOTE: If you need more than one wholesaler group or other additional features, please consider to use the old, full version SPPC: http://addons.oscommerce.com/info/716 Thanks To @@greasemonkey for the initial idea, support, comments and testing To @@burt for the initial guideline exposed in the forum and his database installation-removing code examples used in the store module To @@wHiTeHaT for his help with the shopping cart class extension To @@Tsimi, @@Gergely, @@John W and @@14steve14 for their support, comments and testing Download: http://addons.oscommerce.com/info/9416