New stable Release Candidate 3.0.18 released, please anyone test.

Started by Milbo, September 13, 2016, 20:05:50 PM

Previous topic - Next topic

Milbo

This is the rough list of the changes in vm3.0.16 to vm3.0.18

Important for shops with overrides:
The new js for using ajax for reloading product content uses now always the same class. The class is "product-container". Just search for the div with "productdetails-view productdetails" and add product-container.

In case you want the ajax reload within a product modul, you need to adjust the overrides here also. Just search for

<li class="<?php echo $pwidth ?> <?php echo $float ?> ">

and change it to

<li class="product-container <?php echo $pwidth ?> <?php echo $float ?> ">


Just search for "echo vmJsApi::writeJS();" in the default.php of your cart overrides, replace it by

?><div style="display:none;" id="cart-js">
<?php echo vmJsApi::writeJS(); ?>
</div>


For a correct setup of some payments using their own layout, you need to move the main opening div a bit lower than before. Just search for <div id="cart-view" class="cart-view"> in your default.php of your cart view and place it above the "getLoginForm


<div id="cart-view" class="cart-view">
<div class="vm-cart-header-container">

Here cut the first div and set it here


<div id="cart-view" class="cart-view">
<?php
$uri vmURI::getCleanUrl();
$uri str_replace(array('?tmpl=component','&tmpl=component'),'',$uri);
echo shopFunctionsF::getLoginForm ($this->cartFALSE,$uri);


vm3.0.18
r9294
- fixed wrong detection of the default language
- added that commas are also replaced for desired final price 
- also ratings are autopublished (worked already for revenues)
- MV were sortable, but did not show the right order in product edit, fixed
- language depended sample data is loaded, when available (with suffix _fr_fr for example)
- fullinstaller has virtuemart sample data already selected
---------------------
r9293
fresh config did not set the language, fixed 
added checking for the new order stati, inserted if missing
---------------------
r9292
- replaced "all" jQuery calls against $, if within jQuery environment to prevent problems with safari
- changed reserver time of "keepAlive" script. The delivery time of the page must be considered.
- other minors
---------------------
r9290
enhanced ajax for reloading children. The view productdetails must have now the class product-container to work properly with ajax
---------------------
r9289
- Some more fields from char to varchar
- increased size of currency fields, so that we can use now html entities
- fixed small display error while adding ST address in BE user edit
---------------------
r9288
- Added ajax to browse view for multi variants and generic child variants
- removed id tag from dropdowns to ensure that chosen can always generate a unique id
- added installation language,
- minors for sample_virtuemart.sql minor for klik and pay
---------------------
r9287
- Added program cache and check if currencies are the same to the convertECB.php, maybe moved to database
- typo in config.php created empty language db suffix
- typo in order model $orderDetails['details'] must be $order['details']
- fixed recent products, was missing creating products by returned ids
- Currency can use now empty Space in format
---------------------
r9286
- very little changes on the css.
- Buttons have now same height
- restricted searchable on custom type S and P, because it is not written for the others yet fixed typo in shopfunctionsf.php
---------------------
r9285
- paypal payment_currency is now set in constructor paypal
- fixed sandbox for paypal hosted
- sofort ideal, fixed bank selection realex api, fixed table installation
- heidelpay removed a notice, removed unused code
---------------------
r9284
updated vmbeez3 parameter in sample_virtuemart.sql
---------------------
r9283
enhanced js of Amazon plugin
---------------------
r9278
Added sample_virtuemart.sql keeps the vm sql related changes, so we use now the original joomla.sql
---------------------
r9276
removed old overrides and add orginal joomla files
---------------------
r9275
Moving of installationj3 folder to "install" folder, because j2.5 fullinstaller is no longer supported
---------------------
r9274
- Added switch for j3.x to get the correct default language
- language for the order is now loaded within notifyCustomer of the order and by the view (email language for userfields)
- replaced getLoggedVendor by vmAccess::getVendor in payment and shipment edit
- changed addProductToRecent so that it stores always 10 product id, can be adjust by hidden config max_recent_products
---------------------
r9273
- added $order['details']['has_ST']
- getPrice had 3 parameter to define which customfields should be loaded
---------------------
r9272
- added plgVmOnCheckoutCheckStock
- better handling of menuitems by the router  login uses current url for return
---------------------
r9271
Amazon: - core ajax for amazon cart  - confirm uses email setting of vm core - removed option cnname, is now hardcoded
---------------------
r9270
- fixed discount by payment, affected before only the shipment price. It is now a real discount for the full cart
- Paypal no cancel by user for Pending and capture state
---------------------
r9269
added for rounding of product prices in getProductPrices a check for numeric
Added command to remove all option=com_virtuemart menu entries, when removing all vm tables
---------------------


vm3.0.17.6
r9268
- Added searchAllCats option. Atm commented in the default.php
- sendCurrForm works now also with checkboxes
- prodOnlyWLang shows the lang dropdown also for "new" products
- added taxfreightcode to avatax
---------------------
r9267
enhanced search, dropdowns directly fire the search now itemid sets active menu now removed parameter/Request key "search" is now completly replaced by "keyword"
---------------------
r9266
- setCartIntoSession stores now the session first, and after that the cart to reduce the possibility that a session is not written.
---------------------
r9265
- ajax for adding product has now a timeout of 20 seconds to prevent that products are not added to cart. 
- added function sendCurrForm, which simply fires the form of a dom marked by class
---------------------
r9264
css is a bit changed for a more clean logic for product rows.  also some css for the new search dropdowns
---------------------
r9263
- already loaded grouped products are stored and not displayed twice on the same browseview. - missing escape for getneighboured products - minors
---------------------
r9262
new layout for mod_virtuemart_currencies, shows only a dropdown, which directly changes the currency
---------------------
r9261
- update plugin heidelpay to 16.02.15 - customfields; added cache for declaration of pluginparams - added missing require(VMPATH_ADMIN.DS.'helpers'.DS.'html.php'); to vmPagination - config; strings are trimmed before storing
---------------------
r9260
fix product pdf name
---------------------
r9259
fix for vendor_letter_header_line_color
---------------------
r9258

---------------------
r9257
add view to action url to keep url after filtering  option to use vendor letter pdf also for product pdf
---------------------
r9256
minor typo in convertDec
---------------------
r9251
divs and classes for the search, Thx to StefanSTS
---------------------
r9250
Added a tag around the custom title to easier style it as block or inline.
---------------------
r9249
fixed error in BE dashboard, when shop offline enhanced listing of "related categories, products" replaced using against ON other minors
---------------------
r9248
Added new search feature. Enable search in category view (joomla menu item). Added attribute searchable for customs. Creates dropdowns for values of product customfields when custom has the attribute searchable
---------------------
r9247
currencies for payment plugins enhanced.
---------------------
r9246
Minors, customer number char to varchar, customer number default length is now 7+2 and ordernumber default length is now 5 (inreased by one)
---------------------
r9245
- Another fix for the collation problem, we just remove in case the mb4 for the vm table and let the original collation for the joomla user table
- Paypal works now accepting multiple currencies.
- little fix to prevent that login into the cart after reloaded by ajax leads to a page without surrounding joomla
---------------------
r9244
- Tool to optimize some database tables (Thanks to Franzpeter)
---------------------
r9243
- access.xml added edit state to custom and calc rules removed old wrong use of cache in convertECB.php (was without harm)
---------------------
r9242
- added check for collation in ratings model
- config.php fixed that languages were not created, when adding them to config
- fixed orderlisting for user view, used the search options of the orderview
- added seconed parameter to removeOrderItems to bypass the auth check
- product model added quote to "orderByValue"
- vendor model added getVendorAndAcceptedCurrencies
---------------------
r9241
- calculation helper getProductPrices returns now the whole price data of the product and does not deleted "unused" prices and other values anylonger
- set vmGetCharset to deprecated and set anywhere UTF-8 fixed (for so long)
- medihandler; check for path of "for sale" medias and some more 4remove classes added
---------------------
r9239
- category view, added attribute shared
- config view added check to for imagePath
- currency edit view added escaped chars
- fixed path for media "file is for sale" in edit view
- decoupled "remove js" from the icon class vmicon-16-remove, it uses 4remove instead
- product listing had a light error for admins in mv shops, fixed
---------------------
r9238
Empty customfield_prices are now stored as 0 and not null anylonger
---------------------
r9237
User depended currency for invoice, mail, and order view
---------------------
r9236
- router.php removed fallback $vars['view'] = 'productdetails'; for case if(!isset($vars['virtuemart_product_id']))
- fixed option products_per_row in category view
- exchanged $uri->setVar('showall', 1); against vRequest::setVar('showall', 1); (more secure)
---------------------
r9235
cart helper _productAdded starts with value "true", so prepare data is directly correctly executed cart products are directly loaded with prices
---------------------
r9234
dynupdater executes setproducttype after loading child
---------------------
r9233
Product is now virtually added to the cart before the conditions are tested. So it works now also for weights and other conditions (not just price)
---------------------
r9232
tcpdf throws errors and notices now
---------------------
r9231
Corrected typo in en-GB.com_virtuemart_perms.ini
---------------------
r9230
More language file updates
---------------------
r9229
Update for BE en-GB language files
---------------------
r9228
Updates for FE en-GB language files
---------------------
r9227
- Added js validation for required registration fields (got lost due changes last year)
- shopfunctions.php getCountryIDByName works now with standard model
- added payment_currency_id and payment_currency_rate to order table
- added sorting of MV in BE
- small fix for plugin logos by welrachid
- fixed tax display in order be view
- fixed that only activated users can checkout, if activiation is set to admin
- shopfunctions::getLoginForm works now with a sublayout login, so it can be used in other views
- fix for router by Patrick Kohl http://forum.virtuemart.net/index.php?topic=134268.0
- added expire to header of the cart, so that it must be reloaded after 1 second
---------------------
r9226
plgVmDisplayLogin (VirtuemartViewUser) replaced cast (VirtuemartViewUser) against VmView Klarna API for php7
---------------------
r9224
Update of com_tcpdf to tcpdf version 6.2.12 (thx FranzPeter)
---------------------
r9222
- enhanced js by Abhishek Das (virtueplanet.com) for the country/state listing and validation. Works now cached and displays correct asterisk, needs a little change in the edit_address_userfields.php.
- enhanced js selector for MV and GCV
- snippets.php is now correctly escaped
- fixed small error in category/view.html.php
- small fix by Andrew for order list.php layout
---------------------
r9221
- fixed setting style/template per category
- fixed category edit, does not automatically prefill the template and layout variables with the default value
- enhanced tableupdater, keys are only recreated when they were changed.
- order view BE fixed listing of taxes, displayed as sum now.
- fixed reuse of pending orders (typo), used all the time only the fallback
- ratings model function show tests if a user is logged in before checking per sql if he bought the product
- fixed width of math op list in calc edit
- added loading of vm language to vmcategory field
---------------------
r9220
Amzaon with new APA Library - added cnname field - moved some function in own files
---------------------
r9218
Added double quote escaping to prevent JSON formatting errors
---------------------
r9215
added class vm-drop for BE chosen dropdowns to prevent zero size
- minors in vmjsapi.php in function writeJS
- fixed error in vmpsplugin if(strpos($t,'/',$t!==FALSE)){
- update to jquery 1.11.3
- fixed problem with productsleft in checkForQuantities
- router small fixes
- fixed set Title in category view
- load always vmJsApi::jPrice();
- we use now always in the register mails if (!empty($userField['value']) && $userField['type'] != 'delimiter' && $userField['type'] != 'hidden') {
- Amazon: fixed signin.php, new LPA library
---------------------
r9207
store cart only if the shopper switch is not used show reg_captcha only for registration if guest checkout is possible
show reg_captcha only for registration if guest checkout is possible
---------------------
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

gba

Demo data is not imported in the full package.
Sample data installation setting as visible on attached screenshot (ss.jpg).
After installation and logging in, this screen appears: ss2.jpg
When I click on the left button, I get this: ss3.jpg
And no products are created.
What's the matter?

Kind regards,
Gerald

gba

Haha ...  ;D
Who can read, has a big advantage:
I should have pressed the right button - voilĂ !

Thank you for your attention!

Kind regards,
Gerald

gba

Hi!

Registering a new customer is not possible.
Ordering as guest works.

Kind regards,
Gerald

jenkinhill

In Joomla user options turn on  Allow User Registration  - in new Joomla versions it is disabled by default.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum


bortolani

Hi,
I have a problem with ajax product reloading in product details page that is not working after upgrading from vm 3.0.17 to 3.0.18.

I tried the patch suggested in this post but it does not work.
I've been searching for the string "product-container" in all VM files hoping to find it and understand how to trigger the reload event but I couldn't find it.

Is there something else I could try?

Thanks,
Bruno

FabioZumbi12

Quote from: bortolani on September 25, 2016, 16:18:17 PM
Hi,
I have a problem with ajax product reloading in product details page that is not working after upgrading from vm 3.0.17 to 3.0.18.

I tried the patch suggested in this post but it does not work.
I've been searching for the string "product-container" in all VM files hoping to find it and understand how to trigger the reload event but I couldn't find it.

Is there something else I could try?

Thanks,
Bruno

The exact same here!!

How or where i find this files? Wheres is the overrides?
Joomla - 3.6

jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Studio 42

What i don't understand, it's why VM for wordpress?
I understand WM for drupal but not WP.
If someone will a complex shop then he can use Joomla too, If he will a simple shop then he have allready WooCommerce.
if he need a complex shop with a simple design and blog, you have  prestashop.

Have someone already customers that want VM in Wordpress?

VMTemplates.net

Quote from: Studio 42 on October 09, 2016, 00:11:27 AM
What i don't understand, it's why VM for wordpress?
I understand WM for drupal but not WP.
If someone will a complex shop then he can use Joomla too, If he will a simple shop then he have allready WooCommerce.
if he need a complex shop with a simple design and blog, you have  prestashop.

Have someone already customers that want VM in Wordpress?

I think it's not about if someone have a customers who wants VirtueMart on WordPress. It's more about CMS usage and growing WP market and it's natural evolution where great ecommerce solution will be avilable for other popular CM Systems. Of course we can give a 100's good reasons for why people should use Joomla however the facts are as follows:
https://www.google.com/trends/explore?q=joomla,wordpress
https://www.google.com/trends/explore?q=joomla%20shop,wordpress%20shop
If it's not enough just take a look at http://dev.virtuemart.net/projects/virtuemart/files and compare downloads values, for example:
VirtueMart_1.1.9-COMPLETE_PACKAGE.j15.zip    2011-06-20 15:12    2,284 MB    657043
and
com_virtuemart.3.0.14_extract_first.zip    2016-03-11 15:57    4,212 MB    75402
where in 2011 VM has been downloaded 650.000+ times and in 2016 only 75.000+. We can't explain these differences only by new ecom extensions available for Joomla but also by falling Joomla usage trends.

I know it might be not entirely reliable data but it's clearly visible that WordPress became more popular than Joomla. It seems to be obvious that VirtueMart must to be avilable for WordPress. Aside from obvious benefits I think that moving to WP will allow to grow up VM community, will bring new authorities who may designate new trends in VirtueMart development process and much much more you can only imagine.

So, again it's not about "Have someone already customers that want VM in Wordpress?" it's more about 'We can get more customers by providing VirtueMart for other content management systems like WordPress or Drupal'.

Thanks,
Jason.
We develop VirtueMart templates since 2008
https://www.virtuemarttemplates.net/
Join the VirtueMart Templates Club today and get an access to over 60 VirtueMart templates
https://www.virtuemarttemplates.net/template-club.html
If you need a custom VirtueMart Template design please visit https://www.virtuemarttemplates.net/custom-virtuemart-template-design.html
Visit our new shop https://demo.virtuemarttemplates.net/
Join the VirtueMart Templates Club, purchase the template or order one of our services like Hosting, Website Maintenance, Security and Optimization, Template Customization and more

GJC Web Design

Agree Jason,

clients often ask me for WP sites because someone told them it is "better" .. I try to set them right and normally succeed but the pressure is always there

I also had the misfortune recently to work on a WooCommerce site ...  am lost for words.. a cobbled together ext. with huge overhead re queries etc as soon as u get past a few 10's of products.

So offering VM for WP is another possibility to extend VM's popularity ..  although will certainly continue to push Joomla as the solution as it is "easier" to achieve any out of the ordinary requests.
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Studio 42

I had a customer that wanted worpress for the blog part, i simply installed wordpress for Joomla and the customer is happy.
I manage some WooCommerce solution too and i can say that the integration in WP have same problem as VM in Joomla, each update need some Template rewrite for the woocommerce part and you have many other problem mixing SSL, because many widgets are badly written. And i think that wordpresss can be nightmare and is hard to optimise becasue most use function that cannot be overiden without hacks.
So i think that using virtuemart can be a nightmare in a nightmare  because conflits, eg currently VM use function as "logInfo" not namespaced and all this shiould be renamed and well structured before trying to do a compatible release.
Another problem(perhaps not for templater) is to rewrite all the addons for Wordpress. If you have only 500 WP sites using WM, i don't think that spending time to write something for WM for WP is viable.

For the problem of number of download, i have a 3 real explain:
1. Many WM user do not want update because each time they spend to many time on update.
2. Most of the extension for VM3 are now paid release and you had great free tools for VM2(and more for vm1).
3. some user dont follow the direction given by the code progress because all "member release" and private features.
So i think you have part of the answer, why only 75402 downloads
I tried myself some of my site with vm3.0.18 but had trouble too and had to revert to old release, because some customer don't want pay 1 day debugin time.

VMTemplates.net

Quote from: Studio 42 on October 09, 2016, 18:29:43 PM
So i think you have part of the answer, why only 75402 downloads

Like you mentioned - it's only a part of the answer and we need to see whole picture. I think the key part are trends. Looking at the stats I attached we can see Joomla going down where WordPress sits quite stable. So, even if this would be a nightmare in a nightmare (it was funny btw ;) +1 for you ;) ) I still think it's worth to move VirtueMart to WordPress to keep this project on the surface. Like I already mentioned we can give 100's reasons for why to use Joomla and the same number why WordPress. We can also give 100's reasons why to use Magento or OpenCart or even shopify instead of VirtueMart. It's all about what people like to use, what they need to use or what they go with when they think about running an online shop on exisiting websites. In some cases it's also a budget issues. One thing is sure now - WP user probably won't use VirtueMart for his shop at the moment because this would mean he would need to install and learn to Joomla. Unless he will really need some functionallity which is not available in other ecommerce solutions he can choose from.

About your points - I agree and disagree to be honest:
1. Yes, they don't but many of them think this way: "why should I fix something what actually works and brings me money". In this point we should mentioned about security issues, important improvements and bug fixes. From my expirience many people install updates only if they really have to or someone let them know "Hey buddy, you are using outdated software. Are you sure it's safe?". And this is visible in forum posts where some users still using VM 1.1 or some very outdated versions of VirtueMart 2.
2. Many extensions (and the same WP plugins) are payable. If someone runs an online shop is aware or should be aware of that NOT ALL is free and to run an online business he need to pay to someone (not only for domain, hosting, nice looking design or SEO).
3. I think this point can be attached to point 1.

Quote from: Studio 42 on October 09, 2016, 18:29:43 PM
Another problem(perhaps not for templater) is to rewrite all the addons for Wordpress. If you have only 500 WP sites using WM, i don't think that spending time to write something for WM for WP is viable.
No one said that "migration" from Joomla to WordPress will be easy but from the other side addons developers will get customers from new quite huge market. I'm sure it will be worth to spend a little more time to adapt ;).

Quote from: GJC Web Design on October 09, 2016, 13:54:43 PM
clients often ask me for WP sites because someone told them it is "better" .. I try to set them right and normally succeed but the pressure is always there
And this is another reason of why VM should be available for WordPress ;) WordPress is not better or worse than Joomla. It's simply different. We need to remember that orginally WP has been developed as blogging system and till today nothing changed ;). I guess it was a WP community pressure or evolution or yet something else to make WP to be ... everything (?).

Thanks,
Jason.
We develop VirtueMart templates since 2008
https://www.virtuemarttemplates.net/
Join the VirtueMart Templates Club today and get an access to over 60 VirtueMart templates
https://www.virtuemarttemplates.net/template-club.html
If you need a custom VirtueMart Template design please visit https://www.virtuemarttemplates.net/custom-virtuemart-template-design.html
Visit our new shop https://demo.virtuemarttemplates.net/
Join the VirtueMart Templates Club, purchase the template or order one of our services like Hosting, Website Maintenance, Security and Optimization, Template Customization and more

GJC Web Design

Quoteclients often ask me for WP sites because someone told them it is "better" .. I try to set them right and normally succeed but the pressure is always there

I only mention this in the sense that although I do WP sites I much prefer Joomla..  so often I see them start with a "simple WP site" but as they expand or they have new ideas WP struggles to fulfil
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation