VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: BearWood on June 21, 2017, 15:15:06 PM

Title: Wrong information front end [language issue]
Post by: BearWood on June 21, 2017, 15:15:06 PM
Hi,
I'm Evi and I've already learned a great deal from everyone on the forum. I'm working with the most recent versions of VM and Joomla.

I now seem to have a problem I can't find any information on.

I just noticed today that when I copy an article in VM (as I always have) and I make all the changes (name/info/price/...) and save it, it seems okay in the backend, but in the frontend only the price and the pictures have changed. All the articles have the name and information of the original "source"...

I suspect this to be related to the recent upgrade in VM, which caused several other issues.

you can see on this page for example all the sheds are called Gloucester and have the same info, prices and pics have changed...
https://www.bearwood.be/index.php/webshop/tuin-dier/tuinhuizen/tuinhuizen?limitstart=0

If anyone could offer me any tips I would be very grateful!

Thank you in advance
Title: Re: Wrong information front end
Post by: jenkinhill on June 21, 2017, 15:35:11 PM
So you are using Joomla 3.7.2 and VirtueMart 3.2.3#9579  ?  (that's the latest released version of VM - http://dev.virtuemart.net/projects/virtuemart/files  com_virtuemart.3.2.3_extract_first.9579.zip ) Works OK for me on a live site but test on a backup of the live site first, as should always be done when updating.

With this version and default VirtueMart templates I just used "Clone product" on the product list to make a copy of an existing product, changed name , price description and image. Then published that product, all new information appeared on backend and the "new" product showed on the front end exactly as I had changed it. So I could not replicate what you have described.

I do use a cache cleaner plugin so that caches are cleared whenever a new product is saved.  I don't usually use "clone" though.
Title: Re: Wrong information front end
Post by: BearWood on June 21, 2017, 15:42:26 PM
Hi, thanks for your reply
I am using joomla 3.7.2 but vm 3.2.2 so that doesn't seem to be up to date
I'll try updating then? that should do it maybe...

if you don't use clone then how do you quickly replicate products?

regards
evi
Title: Re: Wrong information front end
Post by: jenkinhill on June 21, 2017, 15:58:55 PM
I enter each product individually if there is a small number, for large sites I would use CSVI (https://csvimproved.com/) - but we all have different ways to do things.

I'd certainly recommend a cache cleaner for anyone who makes regular updates. https://www.regularlabs.com/extensions/cachecleaner
Title: Re: Wrong information front end
Post by: BearWood on June 21, 2017, 19:07:06 PM
Hi,

so i tried all the updates, which went fine, but the problem persists
a cloned product, though seemingly fine in the backend, shows the name and information of the original 'source' product, although pictures and price are displayed correctly

any other ideas?

:o
Title: Re: Wrong information front end
Post by: BearWood on June 21, 2017, 19:51:19 PM
Cache seems to be disabled so that shouldn't be the problem either, right?
Title: Re: Wrong information front end
Post by: BearWood on June 21, 2017, 20:03:32 PM
Okay, just keeping you up to date in case you suddenly see the problem, it seems to be related to the languages, my shop is multilingual, Dutch and English.
When I throw out the Dutch and leave just the English, the backend is as the frontend, so all the products have the same name as the original.
when i put dutch back, the backend is back to normal, the frontend isn't

so it has sth to do with the language files, but what???

any tips or ideas?

my greatest thanks in advance!
Title: Re: Wrong information front end
Post by: BearWood on June 21, 2017, 20:11:50 PM
In addittion I found that if I set my website language to Dutch (as it was before the latest joomla update) all the names of my categories disappear and the entire VM shop seems broken somehow, so I put it to English now, but it shouldn't be...
Title: Re: Wrong information front end [language issue]
Post by: hellorain on June 22, 2017, 08:37:33 AM
Hello,

For switching language which module are u using?

Lanugage switcher module have some issue?

Best Regards,
hellorain.
Title: Re: Wrong information front end [language issue]
Post by: BearWood on June 22, 2017, 08:49:08 AM
hi i'm just changing the language in the configuration files of virtuemart
Title: Re: Wrong information front end [language issue]
Post by: BearWood on June 22, 2017, 09:39:16 AM
SOLVED

Okay so I ended up changing the Joomla settings for both front- and backend to Dutch
In VM I set a multilingual shop with the shop language set to English

--> Now the frontend is completely in Dutch and everything works as it should!!!
Title: Re: Wrong information front end [language issue]
Post by: Milbo on June 22, 2017, 10:22:42 AM
Quote from: jenkinhill on June 21, 2017, 15:35:11 PM
I do use a cache cleaner plugin so that caches are cleared whenever a new product is saved.  I don't usually use "clone" though.

Vm does that itself. I know I said already a year ago, that vm does it, but there was an error. Vm uses now an own Cache loader which ensures, that we use always the FE cache. And so we can also delete the FE cache from BE (that was the problem before).
Title: Re: Wrong information front end [language issue]
Post by: Milbo on June 22, 2017, 10:25:32 AM
Quote from: BearWood on June 22, 2017, 09:39:16 AM
SOLVED

Okay so I ended up changing the Joomla settings for both front- and backend to Dutch
In VM I set a multilingual shop with the shop language set to English

--> Now the frontend is completely in Dutch and everything works as it should!!!

Sounds like you entered the products always in english and only sometimes you translated them to dutch. When you have a multilanguage store you must always edit and work first with the primary language. Setting the shop language to english, automatically sets english as fallback for dutch. But the sql assumes that the english translation always exists. I tried to write a double fallback, but it takes insane performance.
Title: Re: Wrong information front end [language issue]
Post by: jenkinhill on June 22, 2017, 10:47:59 AM
Quote from: Milbo on June 22, 2017, 10:22:42 AM
Vm does that itself.

OK, but most of the sites I build and maintain are not eCommerce. So cache cleaner is the first extension installed - and in many cases the only one.
Title: Re: Wrong information front end [language issue]
Post by: BearWood on June 22, 2017, 13:22:55 PM
Quote from: Milbo on June 22, 2017, 10:25:32 AM


Sounds like you entered the products always in english and only sometimes you translated them to dutch. When you have a multilanguage store you must always edit and work first with the primary language. Setting the shop language to english, automatically sets english as fallback for dutch. But the sql assumes that the english translation always exists. I tried to write a double fallback, but it takes insane performance.
[/quote]

Hi,
I think I messed up there indeed, after the last joomla update, all my categories disappeared and I then solved this by setting everything to English, and now I started adding products and encountered this problem, but considering the high number of products involved, I'd hate to have to make changes...

Now there isn't really any english information on my site, it's all in Dutch; I just use the english setting to fix this problem...
Is this gonna be okay or am I gonna have future problems? (I don't really understand the whole explanation, sorry about that)

And thank you guys for all the help!
Title: Re: Wrong information front end [language issue]
Post by: Milbo on June 22, 2017, 14:33:02 PM
You should check your language tables, for example virtuemart_product_en_gb. Examine it,... maybe it is twisted, I mean, that you have dutch text in the english table or so.