Renewals for - product groups???

Discussion in 'Troubleshooting' started by jbildy, Jun 10, 2008.

  1. jbildy

    jbildy Member

    Joined:
    Aug 22, 2006
    Messages:
    97
    Renewals for -2 (minus) product groups???

    I have a product group as -2. (Cheaper version of prod 1.)

    However, when a member wishes to renew his subscription, the -2 product won't show up on his member.php page to allow renewal.

    How can I allow a member to 'renew' his -2 membership?
  2. jimjwright

    jimjwright New Member

    Joined:
    Sep 12, 2007
    Messages:
    162
    Change the following line in member.php

    PHP:
        } elseif ($v['price_group'] < 0){
            unset(
    $products_to_renew[$k]);
    to the following

    PHP:
        } elseif ( ($v['price_group'] < 0) && ($v['price_group'] != -2) ){
            unset(
    $products_to_renew[$k]);
    By default member.php/member.html will not make products available for renewal if the product group is negative. The above will allow any products in product group that have a value of -2 to be offered for renewal.

    Jimmy
  3. jbildy

    jbildy Member

    Joined:
    Aug 22, 2006
    Messages:
    97
    Thank you.
  4. jgilbert

    jgilbert New Member

    Joined:
    Apr 23, 2008
    Messages:
    6
    Yes, thank you. I wanted to...
    - Only show certain products on the default sign up page (price group=default)
    - Some products not show on default page (negative price group), but show only on their own page.
    - Yet, have ALL the products show on member page.

    I took your advice and just removed the elseif statement and chose not to unset any of them.

    Thanks again.
  5. labtjd

    labtjd New Member

    Joined:
    Sep 27, 2010
    Messages:
    3
    Can someone explain why Amember set this up the way they did? It seems that you would want people to renew the same product they bought (or at least be able to). Making this impossible also makes it complicated to manage custom fields, etc.
  6. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    You always can create separate product for renewal configure amember CP -> manage Products -> Edit Product ->Require another product/Disallow purchase of this product depends on subscription that user have already. So you have full control of what can be available in renewal page even if products with negative price groups are not available by default.
  7. labtjd

    labtjd New Member

    Joined:
    Sep 27, 2010
    Messages:
    3
    So, things with a positive price group will show up in the "add/renew" window? This might be what I was missing. So I can have the custom fields show on groups -1 and 1 and then use 1 for the renewals? Something like that. Point is, if they are renewing something that has custom fields, I don't want them to have to fill out a new set of fields. At best they should just have to edit what is already there.
  8. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Yes products with positive price groups will be displayed in default renewal form.

Share This Page