Product and COUPON help!! URGENT

Discussion in 'Troubleshooting' started by alexi1, Sep 19, 2007.

  1. alexi1

    alexi1 New Member

    Joined:
    Aug 22, 2007
    Messages:
    13
    Is it possible to set up a product to be not visible on the main sign up page to the public? but viewable for the right people you intended in to see?

    What I mean is so a random person can't walk in off the street and just select to purchase the product when it wasn't intended for them.

    If this isn't possible are you able to make it be allowed to be purchased with the use of a coupon is that possible? So that if you don't have the coupon code you wouldn't be able to buy the product?


    I need a quick reply to this. Need to have this up so my clients can access!
  2. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    Create a product with price group -2

    Make a copy of signup.php and signup.html as signup2.php and signup2.html

    In the new signup2.php
    Place $vars['price_group'] = "-2";
    after function show_payment_form(){
    and change
    $config['amember_signup_template'] : 'signup.html');
    to
    $config['amember_signup_template'] : 'signup2.html');

    now tell your client to go to
    www.yoursite.com/amember/signup2.php

    Not a perfect solution, but it should work.

    *Change from -2 to any - number to make it more difficult for someone to guess.

    David
    __________________
    aMember Hacks and install videos
    ==> Membership Academy <==
    Comparisons, reviews, forums and videos on membership software and payment systems.
  3. alexi1

    alexi1 New Member

    Joined:
    Aug 22, 2007
    Messages:
    13
    so thats the only way?
    theres no other way?
  4. alexi1

    alexi1 New Member

    Joined:
    Aug 22, 2007
    Messages:
    13
    there are two
    function show_payment_form(){

    one in check payment and one in show payment form.

    which one do i put it under.

    i changed the price group and put the code under both of the show payment form. but on my signup2.php its doesn't show the hidden product which i put as "-2"

    it says this

    "You can link to an alternate Signup page like this signup.php?price_group=-1 to display products ONLY from Price Group -1."

    in the group thing, but i dont know how or where to put the signup.php?price_group=-1 or in my case -2
  5. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    function show_payment_form(){
    global $t;
    global $error;
    global $db, $config, $vars;
    global $signup_scope_allowed;
    ///ADD
    $vars['price_group'] = "-2";

    //And change
    $t->display($config['amember_signup_template'] ?
    $config['amember_signup_template'] : 'signup.html');
    //to
    $t->display($config['amember_signup_template'] ?
    $config['amember_signup_template'] : 'signup2.html');

    David
    __________________
    Discover How to Start-Up and Run a Profitable Membership Site
    ==> Membership Academy <==
    Comparisons, reviews, forums and videos on membership software and payment systems.
  6. alexi1

    alexi1 New Member

    Joined:
    Aug 22, 2007
    Messages:
    13
    thank you worked. legend!

Share This Page