Jump to content



BrockleyJohn

Member Since 04 Aug 2008
OFFLINE Last Active Yesterday, 19:04
*****

Topics I've Started

[Addon] Catalogue Hierarchy Check Dashboard Module

15 March 2017 - 08:20

If a category in the shop catalogue contains both products and categories, the categores are not shown in standard osCommerce index.php

 

Worse, if the category only contains inactive products, you see a message 'there are no products available in this category'.

 

This admin dashboard module checks for mixed categories, and lists any with a link straight into categories.php so you can sort it out.

 

 


[Addon] Store Times BS

13 March 2017 - 18:51

A rewrite of the Store Open/Closed addon. The closing of pages is an option so it could be used in a store that's open all the time , e.g. to display whether the customer service phone line is operating.

 

Written for osc 2.3.4 BS Gold and upwards.

 

Set store opening times and open and close checkout:
- Set opening & closing time for each weekday – or set the day to closed
- Define dates and ranges for holidays in the current year; choose to use European or US date format in admin settings
- Set time zone of store to allow for server and store in different zones
- Format for date displays in catalogue and admin are taken from language files to support multi-language/international stores
- Option to close store checkout (or any other pages) by diverting to the Store Times page during closed hours
- Store Times page displays shop hours and holidays
- Header message displays store status
- Dashboard module shows current status and allows admin to override it
- On installation, picks up opening times and holidays from addon 8044 Store Open/Closed if available

 

Download and github links to follow shortly.


Customer Orders Tab in Admin Orders (hook)

08 October 2016 - 08:25

This uses the hooks system and tabbed display of admin / orders implemented by the Paypal App.

It adds a tab to admin / orders which lists all orders from the customer of the current order.
The current order is highlighted. Clicking on one of the other orders will load it instead.
Works for all orders, not just those paid by Paypal.

COMPATIBILITY
Compatible with the tabbed admin orders page of the Paypal App in any version of osCommerce (2.2RC2, 2.3.x).
FILENAMES DEPRECATED - if your admin / orders page is not called orders.php you'll have to change the hard-coded name in the module.
Not compatible with BS EDGE Hooks of 2016-10-03 (which don't cover admin).

Uses tradition language defines, not Paypal App-style.

INSTALLATION
Just copy the 3 files to your store.
No code changes and no admin install - it just works.

 

DOWNLOAD

from the addons area http://addons.oscommerce.com/info/9511

GITHUB
also available in a branch on its own in a fork of gburton/Responsive-osCommerce at:
https://github.com/B...omer_orders_tab
 


Worldpay Hosted Payments extended

17 September 2016 - 18:13

I am uploading to the addons area a version of the standard Worldpay Hosted Payments module with a couple of small improvements that improve the shopper experience and make shop admin easier.

 

The enhancements lie in the processing of shopper responses and payment messages, so that:

  • when the transaction is cancelled in Worldpay, the shopper is transferred back to the checkout payment page in osc, to complete the purchase in another way
  • when the transaction is authorised, the payment message is decoded and fraud checking results are added to the order status history. This saves logging into Worldpay to check each transaction before fulfilling the order.

Example of fraud checking info:

CVV: Matched
Postcode: Matched
Address: Matched
Country match: Matched
3D secure: Authenticated 

Link to the addon to follow once uploaded.

 

Github users with stores based on osc 2.3.4BS Edge can get the modified code in this branch:

https://github.com/B...yments_extended


PHP7 Dynamic Class/Array Handling Gotcha

10 April 2016 - 09:45

There are lots of places where osc goes through a whole set of classes, instantiating and using them dynamically - most of the module stuff in fact. The vast majority of it is fine, but I just hit an oddity in admin/security_checks.php
 

    $secCheck = $$module['class'];

The above didn't work any more assigning the $secCheck object to a previously instantiated object. Subsequent use throws:

Warning: Creating default object from empty value in [...]/security_checks.php on line 82

Fatal error: Uncaught Error: Call to undefined method stdClass::pass() in [...]security_checks.php:87 Stack trace: #0 {main} thrown in [...]/security_checks.php on line 87

 

but

    $tmpclass = $module['class'];
    $secCheck = $$tmpclass;

works fine.

 

Maybe it's a php bug, maybe it's a deliberate change. Either way, it might save someone the load of time I just spent on it!