Reset Database

Discussion in 'Installation' started by akuraid, Mar 14, 2018.

  1. akuraid

    akuraid Member

    Joined:
    Jan 16, 2018
    Messages:
    34
    Hi dev,
    1. How to reset amember database?
    2. How to enable coupon on BuyNow button? The coupon code must be filled user, not predefined in BuyNow button.
    Thank you
  2. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    2,295
    Hello,

    1. you need to drop aMember database in your hosting control panel and remove file
    amember/application/configs/config.php

    All data will be lost.

    and then do installation from scratch.

    2. There is not such feature.

    Best Regards.
    akuraid likes this.
  3. akuraid

    akuraid Member

    Joined:
    Jan 16, 2018
    Messages:
    34
    Thanks caesar
    for question #2, is there any other way to do that?
    I want to create a link for user to buy specific product, but give them an option to use coupon if they have.
  4. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    2,295
    You can create separate signup form for each product and add coupon block to it:
    aMember CP -> Configuration -> Forms Editor

    create new form, add coupon brick to form and then click 'configure' link on product
    brick and choose to display only one particular product.

    Then save new form and test it.

    Best Regards.
    dailyxe and akuraid like this.
  5. akuraid

    akuraid Member

    Joined:
    Jan 16, 2018
    Messages:
    34
    yes it works
    the BuyNow button is not needed anymore
    thanks @caesar

Share This Page