Skip to content
Snippets Groups Projects
Commit fd0b9e07 authored by Reinhold Kainhofer's avatar Reinhold Kainhofer
Browse files

V3.1: Fix global counter

parent e81f8846
No related branches found
No related tags found
No related merge requests found
BASE=ordernumber
PLUGINTYPE=vmshopper
VERSION=3.0
VERSION=3.1
PLUGINFILES=$(BASE).php $(BASE).script.php $(BASE).xml index.html $(BASE)/
......
......@@ -401,7 +401,7 @@ class plgVmShopperOrdernumber extends vmShopperPlugin {
// If a separate counter format is given after the |, use it, otherwise reuse the number format itself as counter format
$parts = explode ("|", $fmt);
$ctrsettings["${type}_format"] = $parts[0];
$ctrsettings["${type}_counter"] = ($ctrsettings["${type}_global"]=='yes')?"":$parts[(count($parts)>1)?1:0];
$ctrsettings["${type}_counter"] = ($ctrsettings["${type}_global"]==1)?"":$parts[(count($parts)>1)?1:0];
return $ctrsettings;
}
......
......@@ -5,11 +5,11 @@
<author>Reinhold Kainhofer</author>
<authorEmail>office@open-tools.net</authorEmail>
<authorUrl>http://www.open-tools.net/</authorUrl>
<copyright>Copyright (C) 2012-2014 Reinhold Kainhofer. All rights reserved.</copyright>
<copyright>Copyright (C) 2012-2015 Reinhold Kainhofer. All rights reserved.</copyright>
<license>http://www.gnu.org/licenses/gpl-3.0.html GNU/GPLv3</license>
<version>3.0</version>
<releaseDate>2015-12-07</releaseDate>
<releaseType>Major update</releaseType>
<version>3.1</version>
<releaseDate>2015-05-23</releaseDate>
<releaseType>Minor update</releaseType>
<downloadUrl>http://open-tools.net/virtuemart/advanced-ordernumbers.html</downloadUrl>
<description>VMSHOPPER_ORDERNUMBER_DESC</description>
......
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment