Jump to content

raiwa

♥Ambassador
  • Content count

    3,369
  • Joined

  • Last visited

  • Days Won

    114

Everything posted by raiwa

  1. raiwa

    Modules Control

    New Version 1.0.1 uploaded. Modules Control Change-Log Version 1.0.2: - added missing language definitions for success messages - changed button labels to be more comprehensive and logical - changed $_GET to $_POST variable for virtually unlimited page/module combinations - tested under PHP 7.2
  2. raiwa

    Modules Control

    Hello @Omar_one, I found some time to update the module. I tried, but could not reproduce this error: Can you please explain the exact situation when you got it. EDIT: I just compared and this line of code is identical to the unmodified core. Best regards Rainer
  3. You have to do the second part also in checkout_shipping.php. You need to invert the order of shipping method /icon and the radio button in this part of the code <tr class="table-selection"> <td> <strong><?php echo $quotes[$i]['module']; ?></strong> <?php if (isset($quotes[$i]['icon']) && tep_not_null($quotes[$i]['icon'])) echo '&nbsp;' . $quotes[$i]['icon']; ?> <?php if (isset($quotes[$i]['error'])) { echo '<div class="help-block">' . $quotes[$i]['error'] . '</div>'; } ?> <?php if (tep_not_null($quotes[$i]['methods'][$j]['title'])) echo '<div class="help-block">' . $quotes[$i]['methods'][$j]['title'] . '</div>'; ?> </td> <?php if ( ($n > 1) || ($n2 > 1) ) { ?> <td align="right"> <?php if (isset($quotes[$i]['error'])) { // nothing echo '&nbsp;'; } else { echo $currencies->format(tep_add_tax($quotes[$i]['methods'][$j]['cost'], (isset($quotes[$i]['tax']) ? $quotes[$i]['tax'] : 0))); ?>&nbsp;&nbsp;<?php echo tep_draw_radio_field('shipping', $quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id'], $checked, 'required aria-required="true"'); } ?> </td>
  4. raiwa

    Question for Ambassadors

    EDGE BS4 is still under development and continuous changing occur. You may publish an add-on for it and a few days, weeks, months later you have to update it to keep it compatible. Meanwhile FROZEN is frozen and your add-on will stay working with it. That's why I still didn't begin to update my FROZEN BS3 add-ons for latest EDGE and BS4. I prefer to wait for the next stable release. 😉 Most users/developers here recommend EDGE BS4 only for developers or shop owners with coding skills to be able to update FROZEN BS3 add-ons themself.
  5. As I do not know which PWA version you are using, it's difficult to give exact advice. If you remove the hook call in checkout_procerss.php, the order confirmation e-mail will not be modified and still contain the link to the order in the customers account. This doesn't make sense for guest orders. If you are using PWA 3 series, the hook call is that one you posted. For the 2.x series the hook call is different. Please use the version for your store and follow exactly the instructions. Your other modifications are up to you. I'm sure that everything works correct in a correct installation for the correct version. Please consider that PWA is out since years and used in many shops. No one reported the problems you have until now. It makes sense to keep the guest orders flagged even the customer opts in to create a regular account. Shop owners like to keep track on which orders have been made with gueat checkout. This modification is up to you.
  6. This not normal. You probably have a problem withyour sessions. The other errors may be subsequent errors.
  7. I mean check if you did the installation correct and complete. Check if your sessions work correct and if your config files are correct. If you have other modifications in the relevant pages, switch them temporary off/ remove the code to be sure nothing else interferes. I can’t give more or more specific advice as I do not know what else you have modified/ added in your store.
  8. Please recheck your installation. It works fine in my develop/test-store.
  9. Please, neither this is a general support forum for your problem. This is for the PWA add-on. Please openm a new thread for your problem in the general support section for your store version.
  10. Hello @Mirko89, which exact OsCommerce version are you using.
  11. Please post this question in a general support thread. This is not related to Discount Codes.
  12. Hello @edo.script, PWA series 3.x is intended for 2.3.4.1 BS CE FROZEN. All instructions, files and references are for this version only. If your store version is a previous EDGE version, you need to know how hooks work and to be able to adapt the instructions/code references to your store. Otherwise please use the last series 2 version ( Purchase without account BS 2.5r2 ) The most important difference in FROZEN is that hooks registry is done automatically in application_top.php. But you do not need to adit this file in any PWA version. Tht's whi it is not included in the package and there is no need for it. If your store version is previous you need to add the hook registry manually like I posted befor to the page files where hooks are used. The modification in the instructions are the hook call which is the second part you need to get the hook working. Please understand that it is impossible to include accurate instructions for all BS CE versions which are out there. There are hundreds of them. The latest versions of my add ons are all for FROZEN which is the recommended actual and stable version for users which are not skilled in coding.
  13. 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.
  14. 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.
  15. 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_
  16. 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;
  17. 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 2.3.4.1 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.
  18. 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.
  19. It is required where done like this. Otherwise the function "Glotz" if called from outside will not be found, just like you say.
  20. 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
  21. 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.
  22. 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>
  23. 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.😉
  24. 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.
×