VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: perenboom on April 09, 2014, 15:43:55 PM

Title: Strange text next to sorting, how to remove?
Post by: perenboom on April 09, 2014, 15:43:55 PM
Since today I have this strange text standing next to my sorting of articles, category or manufacturer, see attached image.
It doesn't mather if you choose, article, category or manufacterer, it is Always there.
I have looked at the overrides, but without succes.
The only thing I did today was, after the update, to replace the default.php with the one I had adjusted.
But when I look in this file, there is nothing that appears to create COM_VIRTUEMART_DESC.
Can anyone help me out with this isue?

[attachment cleanup by admin]
Title: Re: Strange text next to sorting, how to remove?
Post by: K&K media production on April 09, 2014, 22:48:23 PM
http://forum.virtuemart.net/index.php?topic=79799.0
Title: Re: Strange text next to sorting, how to remove?
Post by: perenboom on April 10, 2014, 07:50:21 AM
VM 2.0.26d
Joomla! 2.5.19
Title: Re: Strange text next to sorting, how to remove?
Post by: K&K media production on April 10, 2014, 12:02:51 PM
You updated yesterday to 2.0.26d?

Disable your override and look what is happen.
Title: Re: Strange text next to sorting, how to remove?
Post by: perenboom on April 10, 2014, 21:25:15 PM
There is no override enabled for this text.
Title: Re: Strange text next to sorting, how to remove?
Post by: K&K media production on April 10, 2014, 21:55:25 PM
disable your template overrides, not your language overrides
Title: Re: Strange text next to sorting, how to remove?
Post by: perenboom on April 11, 2014, 07:41:09 AM
I don't really understand what you mean with template overrides.
Where do I find these?
Title: Re: Strange text next to sorting, how to remove?
Post by: K&K media production on April 11, 2014, 14:35:21 PM
Quote from: perenboom on April 09, 2014, 15:43:55 PM
The only thing I did today was, after the update, to replace the default.php with the one I had adjusted.

Do you have replaced it as core hack? Then use the default.php which is the original and untouched.

Template overrides:
http://forum.virtuemart.net/index.php?topic=90935.0
Title: Re: Strange text next to sorting, how to remove?
Post by: perenboom on April 11, 2014, 14:58:57 PM
It seems to be a problem in VirtueMart:

http://www.bambuszkerteszet.hu/hu/component/virtuemart/magas-bambuszok/indocalamus.html?Itemid=0
http://www.doggueto.com.br/wu-tang-clan.html
http://www.kredos.pl/index.php/respiratory/view/category/limit/5/start/50/orderby/product_availability/virtuemart_manufacturer_id/2

On these pages the exact same problem accures.

Monday I will update VM and AIO to 2.26.0 to see if the problems solves itself.
Title: Re: Strange text next to sorting, how to remove?
Post by: Margriet on April 11, 2014, 16:36:26 PM
Won't help I'm afraid. Can't reproduce it in earlier versions nor in 2.6.0.
Title: Re: Strange text next to sorting, how to remove?
Post by: perenboom on April 12, 2014, 09:39:24 AM
The thing I've changed in the default.php: I have taking the original file, put the option of an Add-to-cart button directly in the category.
Then I placed the adjusted file back. In vm-ltr.css I have changed the order-button (fond-weight normal) and the size of the prices (0,85 em to 14 px). So there is nothing I have changed with the sorting option.
And it looks pretty impossible to me, that there are several shops in VM that have exactly the same problem as I have due to something that we all did in the core files, all at the same time after a update.
Title: Re: Strange text next to sorting, how to remove?
Post by: K&K media production on April 12, 2014, 14:00:23 PM
the simplest way to fix is create a language override for

COM_VIRTUEMART_DESC with -/+
COM_VIRTUEMART_ASC with +/-
Title: Re: Strange text next to sorting, how to remove?
Post by: jjk on April 12, 2014, 14:35:23 PM
Seems that those two lines in the language file your-root\components\com_virtuemart\language\en-GB\en-GB.com_virtuemart.ini
were accidentially deleted. As a result the previous "-/+" and "+/-" labels are not generated in the translations either and you see e.g. the key part COM_VIRTUEMART_ASC.


If you have an editor that can store text files encoded as 'utf-8 without BOM' (check your editor options) you can add around line 10:
COM_VIRTUEMART_ASC="-/+"

Around line 152, add:
COM_VIRTUEMART_DESC=" +/-"

Do the same in your other installed language.

Alternatively, like kkmediaproduction mentioned above, create a language file override in your language using for example your Joomla language manager.

You do NOT need to hack any php or css files to solve this.

I'll try to fix the language packs later today.
Title: Re: Strange text next to sorting, how to remove?
Post by: Margriet on April 12, 2014, 18:02:42 PM
I still think this has to do with template overrides. The strings for the +/- and -/+ are COM_VIRTUEMART_SEARCH_ORDER_ASC and COM_VIRTUEMART_SEARCH_ORDER_DESC
Title: Re: Strange text next to sorting, how to remove?
Post by: jenkinhill on April 12, 2014, 18:44:04 PM
Looks more like something to do with the way some users have configured langage files, eg when adding a second langauge.
Title: Re: Strange text next to sorting, how to remove?
Post by: perenboom on April 13, 2014, 10:05:16 AM
@margriet: there are no template overrides used at this website.

@jenkinhill: the only other kanguage is Dutch. Besides this, the site was fine untill I updated it to the last version before 2.26.
So it is still possible that there is something missing in one of the files of VM.
Title: Re: Strange text next to sorting, how to remove?
Post by: jjk on April 13, 2014, 22:26:41 PM
Might sound complicated but actually is pretty simple. In VM 2.0.26 the keys/strings in the frontend en-GB.com_virtuemart.ini were:
COM_VIRTUEMART_SEARCH_ORDER_ASC="-/+"
COM_VIRTUEMART_SEARCH_ORDER_DESC=" +/-"
located in the file your-root\language\en-GB\en-GB.com_virtuemart.ini

For the latest versions (VM 2.5+ and 2.6) these were replaced by
COM_VIRTUEMART_ASC="-/+"
COM_VIRTUEMART_DESC=" +/-"
located in the file your-root\components\com_virtuemart\language\en-GB\en-GB.com_virtuemart.ini

In addition to that,
COM_VIRTUEMART_ASC="-/+"
COM_VIRTUEMART_DESC=" +/-"
were accidentially removed from the english language source file before the release of VM 2.6. And because we updated the source files on Transifex last week, those two keys/strings got lost in the translations. So if you updated to VM 2.0.26d and also updated your language files, you missed them.

Meanwhile I've re-added them to the source file on Transifex again.

Note, that the current language files on Transifex include a number of changes since 2.0.26 was released.
I'll check if I have a 2.0.26 language pack that we can upload into the VM download section.
Title: Re: Strange text next to sorting, how to remove?
Post by: perenboom on April 14, 2014, 08:15:31 AM
Thanks everybody for all the replies and a special thanks to jjk for giving me the right solution.
The site is up-to-date now (running 2.6.x, how I ever could think it was 2.26.x...).