How to hardcode product_group id in signup

Discussion in 'Templates customization' started by james_wa, Jul 27, 2010.

  1. james_wa

    james_wa New Member

    Joined:
    Aug 29, 2006
    Messages:
    9
    I am trying to make different signup forms for two distinct user groups. I have signup_a.html and php and signup_b.html and php copied from orig signup.html and php files.

    I want to make signup_a behave as if it was called like signup_a.php?price_group=-1 but not have to actually pass the price_group info. Seems like there must be a way to do by setting something in the signup_a.html or php

    Thoughts?
  2. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    You can add it to the signup_a.php page

    function show_payment_form(){
    global $t;
    global $error;
    global $db, $config, $vars;
    global $signup_scope_allowed;

    $vars['price_group'] = "-1";

    David
  3. james_wa

    james_wa New Member

    Joined:
    Aug 29, 2006
    Messages:
    9
    Thanks davidm1,

    That worked like a charm and explained things to me a little better.

    Now if I can just figure out what I did to make my payment types disappear, I will be moving forward. LoL

Share This Page