Version parameter for OpenCart 2.x
Helper function which fixing visitors browser cache issue after your changes at CSS or javascript
You can also use this function for your custom files (CSS / JS, images, ...) like this:
<link href="<?php echo versionNumber($style['href']); ?>" type="text/css" rel="<?php echo $style['rel']; ?>
- Requiring installed vQmod because vQmod doesn't support installing via composer itself.
- ๐ฒ
composer require burdapraha/oc_version_number dev-master - ๐ฒ
composer require sasedev/composer-plugin-filecopierfor files manipulating - Add this code to your ๐ต composer.json project file, extra section:
"extra": {
"filescopier": [
{
"source": "vendor/burdapraha/oc_version_number/upload",
"destination": "upload",
"debug": "true"
}
]
}
It will move vQmod xml file to correct folder.
- optionally you can add row to your
.gitignorefile with path to svg.xml (example: upload/vqmod/xml/oc_version_number.xml) - celebrate! ๐ ๐ ๐
