News:

Looking for documentation? Take a look on our wiki

Main Menu

Update VM without losing custom product description?

Started by webzight, February 20, 2013, 20:23:57 PM

Previous topic - Next topic

webzight

Don't know if this is the right place to post this and I did search without any results forthcoming?

How can I update VM without losing my custom product descriptions, i.e. weight, dimensions, etc ???

Every time I update, I have to go dig down through the code sections and redo this and it's really odd that I have to this, when these things could be either part of the core code or at least a clickable option to display, or not :o
May the Cloud be with you :)

jenkinhill

If you mean you have hacked the core code then that code will be deleted, but in an update category & product data is not lost from the database and their images are not affected. However if you use template overrides in a version earlier than 2.0.10 then they will need editing to comply with the changes in VM output.

The safest update method is to use Joomla's extensions installer.

If you are still using Joomla 1.5 then note that this is no longer supported.
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

webzight

Thanks for the reply Kelyvin.

On the site in question, it's running under that latest version of Joomla, but have not updated VM from  2.0.12b because of said issues. 

In order to get the item descriptions to display the weight and dimensions, I had to add code snippets to the "productdetails/tmpl/default.php" file.

Code which I got off this forum and works just great, until I update, that is!

What I've have started doing is creating a copy of the modified default.php file and then using that in place of the overwritten file.

My only concern is that I made be wiping out a legitimate update of that file by replacing same with modified copy, this means digging down through the new file to see if any changes where made in the update.

There has got to be a better way ::)
May the Cloud be with you :)

jenkinhill

That is a template file so you should be using it as an override - nothing new, overrides were introduced with Joomla 1.5 to stop component/module template changes from being overwritten during updates.  The override file should be placed in joomla_root/templates/(your_template)/html/com_virtuemart/productdetails/
See http://www.ostraining.com/blog/joomla/overrides  and  http://dev.virtuemart.net/projects/virtuemart/wiki/Hints_for_the_use_of_the_template_system
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

webzight

Thanks Kelvyn for the accurate info :D

I just around to implementing the override trick and now my life will be upgrade worry free, hopefully ::)
May the Cloud be with you :)