Just some minor fixes. All this fixes are already ported to VirtueMart 5.But check your coupons, some shops had problems with the last token integration, this new version should fix this. All other enhancements are safe.
Interesting for shopadmins
- Fixed couponhandling. Moved the token check before the function setCouponCode
- added jpeg to multiple image uploads
- product model, small fix for correct search of products in a subcategory of a selected category
- added a hidden config for product slug handler. Can be set to "changed", which changes the slug if productname got changed, or "always"
- Enhanced 404 handling, parts of the router used a fallback, which was wrong
- Userfields in cart add captcha only, if it is allowed to register without product in cart
- PayPal checkout, order approved should not sent an email anylonger
- PayPal checkout configuration, removed invalid order stati in order dropdowns
Interesting for developers
- plgVmInitialise was just for the FE, added trigger plgVmInitialiseBE for the BE
- calculatorH enhanced the old rules cache. New calculator is now created without using delivery country or state. The new cache handles per vendorid, delivery country and states. All in a new static function loadAllRulesCached
- manufacturer model added triggers plgVmBeforeStoreManufacturer and plgVmAfterStoreManufacturer
- user cache works now for id 0 too
- vmtable self::$loadedX => $this->_loadedX
- Field vmorderstate added option to exclude stati
- added to vmTables the possibility to add a where (and not using the primary key)
DOWNLOAD VirtueMart 4.6.6
NOW (needs Membership)
Just Fixes
- Category model, fixed missing parents in case loaded by cache, but loaded by router without parents
- Little fiix by stAn of RuposTel for authorizenet plugin.
- Small fix in custom view to prevent error if there is no custom
- Some minors, removed setRouterVars after loadConfig in the module
- little fix for the getChildCategoryListObject to prevent str_replace with null
- catched 500: count(): Argument #1 ($value) must be of type Countable in reviews, if no review given
- cart helper, function add fixed the quantity array if it does not fit the given product id array
Optimisations
- changed currencydisplay to reuse already loaded vendor currency
- currency model, found uncached query and replaced against default getVendor function (likely cached or reused)
- shoppergroup model, the function getShoppergroup and getDefault share their result in the cache now, which spares 2 sql calls
- cart helper, $this->setCartIntoSession, removed the second param true, because actually we need it only one time at begin to prevent that a checkout is fired more than one time (spares 4-6 sql calles)