InaneCoding / Piwik-OpenCart-Ecommerce-VQMod

A repository for the Piwik Ecommerce mod for Open Cart using VQmod.
22 stars 17 forks source link

Add checks and adjustments to mod admin info #5

Closed kevinb456 closed 10 years ago

kevinb456 commented 11 years ago

Currently the admin settings entered have to be correct and no checks/adjustments are done.

E.g. "Piwik installation URL (https): The full secure URL to your Piwik installation. e.g. "https://www.example.com/piwik/" This MUST include a trailing '/' on the end!"

There could be an adjustment to the data entered to compensate for the user not entering '/' on the end. Also the non-secure (http) URL could be determined from the https URL.

Could also check other fields entered seem correct length/type as appropriate.

kevinb456 commented 10 years ago

Full list of checks to do; Add trailing slash '/' on the Piwik tracker URL if its not there. Check all URLs and filepaths do not contain any whitespace characters. Check HTTP / HTTPS correct - or add them on to base www URL and generate both. Check PiwikTracker.php file path ends with correct file. Change 'P' and 'T' in PiwikTracker.php to uppercase if they're not already.

kevinb456 commented 10 years ago

Also see issue #13 which has a similar check to possibly add to check the PiwikTracker.php file can be accessed.