Jump to content



raiwa

Member Since 27 Apr 2009
ONLINE Last Active Today, 20:26
*****

Topics I've Started

Reviews Navbar Header Module BS

04 April 2017 - 09:55

Reviews Navbar and Header Module BS
 
This Navbar and Header Modules intent to offer an alternative to the standard (core) side column boxes.
On small screens (Mobiles) the boxes are moved at the very bottom of the pages. They are therefore not useful for small devices. Header and Navbar Modules show on the top of the pages and are much more recommended for Mobile view. You can permanent replace your side column boxes to show always the Header or Navbar module instead on all screen sizes. Or you can add a device dependent helper class to the box and header/navbar module, so on desktop view the boxes are still used, but on smaller devices the header/navbar modules will replace them.
Instructions how to do this are included.
 

Compatibility:
OsC 2.3.4 Bootstrap Community Editions EDGE at least up to 2017/01
PHP: 5.3, 5.4, 5.5, 5.6, 7.0
Filenames, Database Table Names and paths hardcoded. Superglobal variables used.
================================================================
 
NOTE: The Navbar module requires EDGE version since 2016/02/25 which include modular navbar. Otherwise you need to update to modular navbar.

Download: http://addons.oscommerce.com/info/9562

 

Screenshots:

Attached File  header_reviews_store.jpg   57.93KB   1 downloads

Attached File  navbar_reviews_store.jpg   57.57KB   0 downloads

Attached File  header_reviews_admin.jpg   34.92KB   0 downloads


QTPro BS

13 January 2017 - 17:00

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:

  1. update qtprodoctor.php
    hardcoded stuff, superglobals
    language constants/definitions
  2. update stats_low_stock_attrib.php
    hardcoded stuff, superglobals
    language constants/definitions
  3. update stock.php
    hardcoded stuff, superglobals
    language constants/definitions
  4. replace mods in admin/boxes/tools.php by separate file
  5. replace mods in admin/boxes/reports.php by separate file
  6. avoid mods in admin/includes/functions/general.php
    load function file in modules
    replace core function mods by own functions?
  7. modularize product info options
  8. modularize product info stock table
  9. versions for Modular Product Page by kymation
  10. alternative product listing module for modularized shopping cart
  11. order class extension to avoid mods in core order class
  12. replace all mods in checkout files by hooks?
  13. check compatibility with ajax attribute manager
  14. add support for attribute sort order
  15. 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

 

[attachment=5012:QTpro BS 5.0 beta_01.zip]

 

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


Store Mode BS

01 December 2016 - 15:57

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.

[attachment=4944:Store Mode Closed Maintenance BS 1.0 beta.zip]

 

Thanks and kind regards

Rainer


footer_tags modules and element targeting by id

07 November 2016 - 19:01

Hello,

 

developing a header_tag module to manipulate page content, I found 2 issues which could be improved.

 

Header tags are loaded in template_top before the main page content. Even it is possible to switch the output to the footer group, the module loads at the top.

All variables which are defined and database query results which are done in the main page are therefore not available in the header tags.

Using hooks for the same purpose solves the problem, but it means at least for each page 2 core file changes in 2.3.4 (register and call) and one in 2.4 (call).

 

If a footer tag module group would be introduced, it could be nice used for this purpose.

 

I tried my example in a footer_suffix content module without template file, and it does the job, but it's not the clean way.

 

The second subject is to introduce a sistematic id system for all elements.

For example in all product related elements (product_listing) it would be useful to use id's containing the products id.

Like this it would be much easier to select and target product specific elements.

 

 

Maybe I miss something and there is another way to do things already introduced or planned in 2.4.

 

Best regards
Rainer

 


Improved HTML5 Input validation

04 November 2016 - 08:44

Example for create_account.php:

        echo tep_draw_input_field('firstname', NULL, 'required aria-required="true" id="inputFirstName" placeholder="' . ENTRY_FIRST_NAME_TEXT . '" pattern=".{' . ENTRY_FIRST_NAME_MIN_LENGTH . ',}" title="' . ENTRY_FIRST_NAME_ERROR . '"');

[attachment=4882:input_validation.jpg]

 

Source:

The Pattern Attribute

http://www.w3schools..._attributes.asp

 

Something for core??

 

Best regards

Rainer