Jump to content
Latest News: (loading..)

raiwa

♥Ambassador
  • Content count

    3,124
  • Joined

  • Last visited

  • Days Won

    102

Everything posted by raiwa

  1. raiwa

    AJAX Attribute Manager support

    @John W, I finally went through all changes step by step and could localize the error. In javascript/attributeManager.js within the amUpdate function I had accidentally removed these lines when removing the attributes code support: amSendRequest('amAction=update&option_id='+optionId+'&option_value_id='+optionValueId+'&price='+getDropDownValue('price_'+optionValueId)+'&prefix='+getDropDownValue('prefix_'+optionValueId)+'&sortOrder='+getDropDownValue('sortOrder_'+optionValueId)+'&image='+getDropDownValue('image_'+optionValueId)+'&weight='+getDropDownValue('weight_'+optionValueId)+'&weight_prefix='+getDropDownValue('weight_prefix_'+optionValueId)+'&code_suffix='+getDropDownValue('code_suffix_'+optionValueId)+'&suffix_sort_order='+getDropDownValue('suffix_sort_order_'+optionValueId),'',false); getElement('price_'+optionValueId).blur(); if ((weight != null) && (weight_prefix != null)) getElement('weight_'+optionValueId).blur(); var el = getElement('sortOrder_'+optionValueId); if(el != null) el.blur(); return false; I found some other minor glitches. Tested with: PHP 7.0, 7.1 and 7.2, QTPro support and sort order support. Here the new package version 2.9.5. Please replace all files. Please try and let me know. Thanks for all your help and support. AJAX-AttributeManager-V2.9.5 BS.zip
  2. raiwa

    AJAX Attribute Manager support

    It's a cache issue. Under PHP 7.2: 1. installed new fresh Frozen CE 2. Added AM 2.9.3 => works 3. Updated to AM 2.9.4 => doesn't work 4. Downgraded to AM 2.9.3 => doesn't work 5. Deleted session and browser cache => 2.9.3 works again 6. Updated to 2.9.4 and deleted cache and session => doesn't work => now I can recreate your scenario and try to find the error
  3. raiwa

    AJAX Attribute Manager support

    Now it is getting interesting: Checked on PHP 7.0 and the price update doesn't work with none of the am versions from 2.9 to 2.9.4. PHP 7.1 all versions are working, PHP 7.2 none is working. Can you please check your am config file if you have the same add-on support settings used in both versions and post them. I have all support switched off.
  4. raiwa

    AJAX Attribute Manager support

    @John W, I had a look on this and it seems to me it's not an Attribute manager version issue. It's an issue with PHP 7.2. I checked all versions from 2.9 to 2.9.4 on PHP 7.1 and the price change works correct with all of them. Then I checked the same under PHP 7.2 and the price change doesn't work with none of the attribute manager versions. Can you confirm this, please. I'll have a deeper look to search a fix.
  5. Sorry, it works for me, I can't give you advice other than continue trying. You could check in the database if the categories are correct registered. And please, it would be helpful to see the complete checkout confirmation page with products listed.
  6. @sinopia, just to be sure, you are using the latest version 4.4.0 BS?
  7. Did you check the radio button "products" or "categories" instead of "subtotal"? Can you please post a screenshot with an example (both, admin and checkout confirmation). I checked again and it works for me for 2 products: NOTE: Mouse and graphic card gets discounted.
  8. The option " Number of products to apply the discount: " is only available for discounts on specific products or categories or manufacturers, not for subtotal discounts. You have to use: Applies to: Products or Categories or Manufacturers and select the products/categories/manufacturers you wish to include. Selecting all categories or manufacturers is a trick if you wish to use it for all products. See previous posts about the exclude specials problem. For me it works all as expected. It applies to the amount of products as entered. No, I don't think so. It is not planned.
  9. raiwa

    AJAX Attribute Manager support

    It works now for me, see my EDIT in the previous post.
  10. raiwa

    AJAX Attribute Manager support

    @John W, I do not get this error and never saw it. This var (constant) is defined in the atrtributeManagerConfig.class.php line 109: $this->add('AM_SESSION_VAR_NAME','am_session_var'); // main var for atomic When I apply your suggested fix I get this error: Parse error: syntax error, unexpected '' (T_STRING), expecting ',' or ')' in C:\xampp_php_7_2\htdocs\2341-Frozen-QTPro\admin\attributeManager\includes\attributeManagerUpdateAtomic.inc.php on line 27 EDIT: Checked again and now it works flawless. Must have copied uncomplete or whatever. The fix looks good. I'll await if you find more issues and the update. best regards Rainer
  11. raiwa

    AJAX Attribute Manager support

    @John W, can you please give more details when this error appears. I had a fast look on line 226 in attribute_manager_class.php and it is an empty line! Are you sure you updated to the latest version 2.9.4?
  12. raiwa

    AJAX Attribute Manager support

    Uploaded update with the above posted fixes: https://apps.oscommerce.com/mKsGy&ajax-attribute-manager-bs AJAX Attribute Manager BS 2.9.4 + Fixed undefined errors and other PHP 7.2 warning errors. + Removed support for attribute products code contribution. + Fixed incompatibility with admin => Configuration => Sessions => Force Cookie Use => true.
  13. raiwa

    Store Mode BS

    Store Mode BS Complete recoded Add-On, 100% modularized, not any file changes. Inspired by: Store Mode (Open | Closed | Maintenance) and: Site Maintenance Status - All versions Maintenance page based on the page included there. Thanks to @@Demitry Installation: Upload new files and install one ht module and one content header module. How it works This add-on allows to switch your store to different closed/maintenance modes. It allows you to do installations, maintenance and checks, closing only the strict necessary areas of your store. Store modes: Online: Normal store mode Custom: Customizable group of pages. Default: product_reviews.php and product_reviews_write.php. Any group of pages can be defined. Customers will be redirected to the last visited page outside the restricted area or index.php. A temporary message will be shown only if a customer tries to access the restircted area. Checkout: By default all checkout pages are included in this group. Customers will be redirected to the last visited page outside the restricted area or shopping_cart.php. A permanent message will be shown on the shopping cart page and optional on the index page. An additional temporary message shows only if a customer tries to access the restircted area. Account: By default all checkout pages and account pages are included in this group. Customers will be redirected to the last visited page outside the restricted area or index.php. A permanent message will be shown on the shopping cart page and index page. An additional temporary message shows only if a customer tries to access the restircted area. Logged in customers will be logged off. Offline: Customers will be redirected by .htaccess rewrite rules to a standalone 503 maintenance page. The store administrators IP will be entered automatically in a configuration list. Additional administrators/developpers IPs can be added. These IPs are excluded from redirects in all the above listed Modes. Test Modes for all above listed modes are available which will only redirect the IP's included in the configuration list. This can be used to check the redirects and messages. Please give it a try for beta tests. Any error reports and suggestions are very welcome. Thanks and kind regards Rainer
  14. 2. In den Versand-Modulen (admin => modules => shipping) 3. Geht, nur müsste man wissen um welche OsCommerce Version es sich handelt und wo sie genau platziert sind. Wenns ein 2.2 Shop ist, vermutlich in index.php. Wenns eine neuere Version ist, kanns auch in einem Modul sein. Wenns ganz unten auf allen Seiten ist, wahrscheinlich im footer.
  15. raiwa

    Store Mode BS

    Hello @vmn, Thanks for your help and support. You are right, this add-on has not ben updated yet for PHP 7.2 and latest Frozen. I'll have a deeper look on all of this when I'll find some time. I'm really busy right now, please be patient. Best regards Rainer
  16. raiwa

    QTPro BS

    Hola Juanma, In the product info QTPRO Options module: Show Out of Stock Attributes => False Not sure what you mean here: 1. admin => configuration => stock => Check stock level or 2. admin => products attributes => Product Options => Track Stock 1 has no influence, 2 if set to false, it is not possible to hide because there is no combination (stock) control applied. The individual option "red" is available, so it will show. Mientras tanto, has podido comprobar una vez más los errores en ajax attributes manager?? Saludos cordiales Rainer
  17. 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
  18. raiwa

    JcM Gallery Zoom and Popover

    You do not need to uninstall KissIt. You can use the tep_image_legacy function anywhere you do not wish to use image thumbnails or if you experience any problems/errors.
  19. OK, also possible and easier 😉
  20. Hello @Rwe, Please post your question in the official support thread for this contribution: Your question is also not specific for this add-on. It is about all header modules. The header modules can't be placed before the navbar in a standard store because the order of the content groups is defined in template_top.php and header.php However you could create a new group which contains only the holiday message module and place it before the navbar. Have a look in template_top.php and header.php to see how it is made. You would need to add the call for the new group ("before_navbar" is just an example, you can call it as you wish) : <?php echo $oscTemplate->getContent('before_navbar'); ?> in template_top.php before: <?php echo $oscTemplate->getContent('navigation'); ?> Then create a directory called "before_navbar" in includes/modules/content/ Then you would need to move the holiday module into this directory and change the coding in the holiday message module to fit the class name etc.
  21. raiwa

    AJAX Attribute Manager support

    Hello Juanma @piernas, I checked your fixes and I do not get any error messages without them. I have also error reporting set to "all" and I'm running PHP 7.2 Are you sure that they are required. Did you replace/update all files with my new package. Anyway, your fixes do not make any harm, but they should be applied also to the optional add-ons support. My final function woul be this: function addAttributeToProduct($get) { $this->getAndPrepare('option_id', $get, $optionId); $this->getAndPrepare('option_value_id', $get, $optionValueId); if (isset($get['price'])) $this->getAndPrepare('price', $get, $price); if (isset($get['prefix'])) $this->getAndPrepare('prefix', $get, $prefix); if( (empty($price)) || ($price=='0') ) { $price='0.0000'; } else { if ( (empty($prefix))||($prefix==' ') ){ $prefix='+'; } } if (empty($prefix)) { $prefix=' '; } $data = array( 'products_id' => $this->intPID, 'options_id' => $optionId, 'options_values_id' => $optionValueId, 'options_values_price' => $price, 'price_prefix' => $prefix ); if (AM_USE_MPW) { if (isset($get['weight'])) $this->getAndPrepare('weight', $get, $weight); if (isset($get['weight_prefix'])) $this->getAndPrepare('weight_prefix', $get, $weight_prefix); if ( (empty($weight)) || ($weight=='0') ) { $weight='0.0000'; } else { if( (empty($weight_prefix))||($weight_prefix==' ') ) { $weight_prefix='+'; } } if (empty($weight_prefix)) { $weight_prefix=' '; } $data['options_values_weight'] = $weight; $data['weight_prefix'] = $weight_prefix; } // options images added by @raiwa if (AM_USE_IMAGE) { if (isset($get['image'])) $this->getAndPrepare('image', $get, $image); if ( (empty($image)) || ($image=='0') ) { $image=''; } $data['option_image'] = $image; } if (AM_USE_SORT_ORDER) { if (isset($get['sortOrder'])) $this->getAndPrepare('sortOrder', $get, $sortOrder); // changes by mytool // get highest sort order value $insertIndex = -1; $result = $this -> getSortedProductAttributes( AM_FIELD_OPTION_SORT_ORDER ); // search for the current Sort Order where the new value needs to be added $i = -1; foreach($result as $key => $val) { $i++; if( $val['options_id'] == $optionId ){ $insertIndex = $i; } } // if InsertIndex is still -1 then this is a new option and will be added at the end if($insertIndex > -1){ $i = -1; $newArray = array(); for ($n=0; $n < count($result) ; $n++){ $i++; if( $i == $insertIndex ){ $i++; $data[AM_FIELD_OPTION_SORT_ORDER] = $i; $newArray[$i] = $result[$n]; } else { $result[$n][AM_FIELD_OPTION_SORT_ORDER] = $i; $newArray[$i] = $result[$n]; } } $this->updateSortedProductArray($newArray); } else { $lastrow = end($result); $data[AM_FIELD_OPTION_SORT_ORDER] = (int)$lastrow[AM_FIELD_OPTION_SORT_ORDER] + 1; } // EO mytool } amDB::perform("products_attributes", $data); } Thanks and best regards Rainer
  22. raiwa

    Code for modules.php for shipping

    this line: foreach ($_POST['configuration'] as $key => $value) { is equivalent to that one: while (list($key, $value) = each($HTTP_POST_VARS['configuration'])) {
  23. The same way you changed the background colour in your header logo, you can add in the same class style definition in user.css, margin-top or padding-top for 1 and margin-bottom or padding-bottom for 2. Then the same for the categories module class to get space 3 and 4. Alternative you can do 2 and 3 in the breadcrumb module.
  24. https://github.com/gburton/Responsive-osCommerce https://github.com/gburton/Responsive-osCommerce/archive/master.zip
  25. raiwa

    AJAX Attribute Manager support

    Hello Juanma @piernas, hello Peter @petsk, Sorry, there was an error in one file, please use this one. I fixed all errors. Can you please check and confirm. I'll then upload the new version. Please replace all files (attributeManagerConfig.class has been modified, so please reconfigure if you have any add-on support switched on) Note that support for Attribute Product Codes has been removed. It is very outdated and seems not to be mainained any more. attributeManager.zip
×