Welcome, Guest. Please login or register.
Login with username, password and session length


It's a release candidate! VirtueMart 2.0 RC - the next generation VirtueMart - is available! Read more....

  Advanced search

247038 Posts in 67506 Topics- by 258314 Members - Latest Member: aniketana
VirtueMart ForumVirtueMart 1.1.xCustomer / User ManagementCannot view products in VM 1.1 without logging in
Pages: 1 [2]   Go Down
Print
Author Topic: Cannot view products in VM 1.1 without logging in  (Read 8174 times)
marcelectro
Newbie
*
Posts: 4


« Reply #15 on: September 15, 2008, 23:32:21 PM »

start from scratch is not an option at the moment as I already personlised the site and VirtueMart and it was lot of work, it was working fine but i was testing the options of "User Registration Settings" and all of a sudden stopped working
Logged
marcelectro
Newbie
*
Posts: 4


« Reply #16 on: September 16, 2008, 00:26:03 AM »

we are not the only ones having this problem, I have seen a couple of posts with no answer ..

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

I wonder if someone knows where the app check for permissions so I can trace the code Huh
Logged
marcelectro
Newbie
*
Posts: 4


« Reply #17 on: September 16, 2008, 02:58:51 AM »

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

find the function getShopItemid() ...

change the last shopItemid for Itemid, 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.




Logged
ralphonz
Jr. Member
**
Posts: 72


« Reply #18 on: September 16, 2008, 11:43:41 AM »

Hi,

I have tried your solution and it didn't work for me.  (I'm using Joomla 1.0.15)  I changed more than one shopItemid and that still didn't work.  Has anyone had any luck in resolving this issue?

It would be great if a VM tech could find a solution,

Cheers
Logged
Phatrick
Newbie
*
Posts: 21


« Reply #19 on: September 29, 2008, 11:09:02 AM »

Same problem here.... seems to be a bug or something that really needs attention from one of the techs.

At the moment I can't work out how to make virtuemart catalog. My requirements are that the users don't have to register to view the catalog contents.... I simply can't determine how to let them view store contents without registration Huh??!

I really need this functionality.
Logged
Phatrick
Newbie
*
Posts: 21


« Reply #20 on: September 29, 2008, 11:21:25 AM »

Ahh sorry guys. 
 I found my problem. I had two links to the store on two seperate menus one public and the other one was set to restricted or special. This was generating the problem...
Logged
conquesttrade
Newbie
*
Posts: 30


« Reply #21 on: September 30, 2008, 03:06:37 AM »

doktor, I just tried it on your website and had no problem. I managed to add some "223 Target Grade 62g FMJ" to my basket, whatever that is.
Logged
changostraw
Newbie
*
Posts: 1


« Reply #22 on: July 18, 2009, 14:19:53 PM »

I am having this problem too.
I tried the above solution but it only changes the error from
"you must login first"
to
"you do not have permission to access this module"
 
I don't understand this since I have had virtuemart working fine for many months - and then suddenly it has locked all unregistered users out of the entire store.


please... please... please... help
Logged
adjalex
Newbie
*
Posts: 1


« Reply #23 on: February 15, 2011, 13:53:57 PM »

I had the same problem, but i solved it by doing the follow:

You have a shop.cart.tpl.php file in your template folder (just search it).
Open the file and find on line 67:   
      
$href = $sess->url( $_SERVER['PHP_SELF'].'?page=checkout.index&ssl_redirect=1', true);

Replace it with:

$href = $sess->url( $_SERVER['PHP_SELF'].'/index.php?page=checkout.index&ssl_redirect=1', true);

It worked for me, hope for you too!
Logged
adham
Newbie
*
Posts: 9


« Reply #24 on: March 23, 2011, 07:28:23 AM »

this post going for 2 years and no solution?
I have the same problem, just wasted 10 days of my time on it, dont have any idea where to look anymore, this is so not worth it, prob gonna switch to something with more support.
3rd sleepless night and nothing, problem is 2 sites (clones) one works one dont.
So VM is trying to teach us to do magic tricks, a crystal ball maybe??
I have read the manual 4 times and nothing on this issue, NOTHING for 2 years
Logged
Pages: 1 [2]   Go Up
Print
Jump to: