Forums

[Plugin: eStore] Resctrict 'Add to cart' to only registered user (1 post)

  1. Altered_Sunset
    Member
    Posted 2 years ago #

    Hi to everyone.
    I would like to know how I can restrict the use of "Add to cart" button to only registered user, in order I can be sure that non-member users could not perform any shopping without login or register.

    I am thinking to add an "IF" check in the function that controls the "Add to cart" button, something like this:

    if is_user_logged_in {do the normal routine}
    else {redirect to login-register page}

    but I couldn't find where in eShop plugin is stored this button action.

    Could you please give me some advice?

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 2 years ago by Altered_Sunset
  • This topic is not resolved
  • WordPress version: 2.9.1

Tags