Virtuemart - O cliente não consegue ver os produtos

  • thiagol
  • Avatar de thiagol Autor do Tópico
  • Offline
  • JCB! Estagiário
  • JCB! Estagiário
Mais
15 anos 3 meses atrás #35540 por thiagol
thiagol created the topic: Virtuemart - O cliente não consegue ver os produtos
O meu site esta funcionando perfeitamente, só estou com esse problema.

O usuario não registrado não consegue ver os produtos da loja sem fazer o login. Só consegue ver os produtos que esta na pagina principal.

Se ele clicar nas categorias vai para a tela de Login.

e dá esta mensagem: Primeiro você precisa efetuar o login no sistema

Acho que é alguma segurança, Já varri foruns a procura de solução, mas nada...
Alguem tem ideia do que pode ser?

Obrigado desde já.

Please Entrar ou Registrar to join the conversation.


  • thiagol
  • Avatar de thiagol Autor do Tópico
  • Offline
  • JCB! Estagiário
  • JCB! Estagiário
Mais
15 anos 3 meses atrás #35781 por thiagol
thiagol replied the topic: Re: Virtuemart - O cliente não consegue ver os produtos
Alguém?

Please Entrar ou Registrar to join the conversation.

Mais
14 anos 3 meses atrás #51504 por marckjesus
marckjesus replied the topic: Re: Virtuemart - O cliente não consegue ver os produtos
E Thiago, estou com o mesmo problema, mas ja tem um ano e ninguem para nos ajudar... rs

Please Entrar ou Registrar to join the conversation.

Mais
13 anos 8 meses atrás #64052 por jrbraga
jrbraga replied the topic: Re: Virtuemart - O cliente não consegue ver os produtos
Resolvido.




Ok, I found the problem, there is a terrible bug on VM

here is the issue ... for some reason VM carry the ItemId from page to page, the ItemId is from Jooma and identify objects like menu items, for some odd reason VM call the function ps_session.getShopItemid() to fill in this value, when this function is called, it does this,

SELECT id FROM #__menu WHERE link='index.php?option=com_virtuemart

if you happen to have more than one menu calling virtuemart and one of them is set as 'Restricted' you might get this problem, this is pretty random cause MySQL return the first row whatever it is, so it might or not happen ...

anyway ... here is the solution ... go and edit this file,

administrator/components/com_virtuemart/classes/ps_session.php

[color=#FF0000:3q0b20wd]find the function getShopItemid() ...

change the last shopItemid for Itemid,[/color:3q0b20wd] this is work for my site, and I haven't got any side effect so far, you might need to check your site as the structure might be different, you might need to do a different change, but definitely the problem is there.

Fonte: http://forum.virtuemart.net/index.php?topic=42149.15

Please Entrar ou Registrar to join the conversation.