Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7859863
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T22:03:31+00:00 2026-06-02T22:03:31+00:00

We are trying to setup a simple BTB site to support our retailers (somewhere

  • 0

We are trying to setup a simple BTB site to support our retailers (somewhere they can download product text/images and corporate branding). We are using Joomla 1.5.2 and Virtuemart 1.1.9

We want it to be completely secure (unregistered viewers – and competition – just see simple intro page, and login with option to register). Not any content at all.

And we also also want to use VM registration for registering new users.

I set up the secure access for categories/products using Joomla menu items pointed to virtuemart categories, and set the menu item access to “registered”. Worked perfect, user not logged in, don’t see anything but splash page. Logged in, all of the product categories were available via the menu items.

But we just realized this messes up user registration. We want to use Virtuemarts user reg so we don’t have to gather all of that data (address info, etc.) and come back and enter by hand.

Apparantly, with the virtuemart menu items set to “registered” access, the user gets redirected to joomla’s registration page(which doesn’t gather the data we need into Virtuemart). I’ve pasted a valid VM registration url everywhere I could find in the backend login files (com_user and mod_user), but no luck (didn’t think that would work, im a beginner).

Anyone know if there is a workaround? Or a better way to do this?

Thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T22:03:32+00:00Added an answer on June 2, 2026 at 10:03 pm

    I can you tell with absolute certainty that you’ll need to make a minor adjustment in the VM code if you want to do this. The hurdle is that VM uses the same menu Item ID as it’s default throughout the script, so even if you create a different menu item for the registration, it’s always going to fall back to the first one that you had.

    The only way around this is a small hack in the VM function that always forces this to happen. Put the below code at the very beginning of function getShopItemid() located in ps_session.php somewhere around line 459. Leave all the existing code in place, but this needs to run before that does.

        /*Hack For multiple VM menu itemids, if there is a page specified, find THAT Itemid */
        global $page;
        if($_REQUEST['Itemid']) {
            $_REQUEST['shopItemid'] = $_REQUEST['Itemid'];
        } elseif($page) {
            $db_hack = new ps_DB;
            $q = "SELECT id FROM #__menu WHERE link='index.php?option=com_virtuemart' AND published=1 AND params like '%page=".$page."%'";
            $db_hack->query( $q );
            if( $db_hack->next_record() ) {
                $_REQUEST['shopItemid'] = $db_hack->f("id");
            }
        }
    

    Once this is in place, you’ll need to have a Joomla menu item that includes at least this:

    option=com_virtuemart&page=shop.registration
    

    With that menu item in the database, the above code will find the menu item for that page, and use that one instead of the default VM method. The Joomla security will trigger as you expect because it has the correct menu item.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to set up a simple Roles model for my site. Users can
Alright, I'm just trying to setup a simple rewrite rule for a site. First
I'm trying to setup a simple timer that gets started from a Rails Application.
In an academic project I'm trying to setup a simple physics engine. I am
I'm trying to make a simple base war which includes all the boilerplate setup
I'm trying to setup a simple has_many :through => association. I have 3 models.
I'm trying to setup a simple logging framework in my shell scripts. For this
I'm trying to setup a simple tabview from existing markup, ala this example from
We're trying to setup controller tests for our Pylons app. I made a very
I'm trying to setup a CORS enabled API that I can access via JavaScript.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.