WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: eShop] How do I allow "Authors" to add products? (5 posts)

  1. tankard
    Member
    Posted 5 years ago #

    Hi,

    Great plugin! However, I want to make a couple of small changes to the script.

    I want to allow different people to add products without a permission to edit other peoples' products. "Authors" seemed to be a good choice, however, eShop options are displayed only to admins. Can you please tell me which file to edit to allow Authors too?

    Then another thing. I need to generate a random string (unique code) after the payment has been made. This string should also go to my and customer's emails. I've already coded the randomizer thing. Could you suggest where's the best place to execute the randomizer?

    Thank you in advance!

  2. elfin
    Moderator
    Posted 5 years ago #

    Install WP Role Manger, and use that to add roles and capabilities to users, or groups.

    What does this random string do? does it need storing in the db? and does it need to be accessible in some way?

  3. wuzzer
    Member
    Posted 4 years ago #

    That was exactly what I was looking for! Great! Multicart can now go to rest :D

  4. tankard
    Member
    Posted 4 years ago #

    elfin, thank you very much for your reply! Role Manager does the trick but only partially. Is there a way to block "Authors" from accessing eShop settings? I probably need to edit the Role Manager.

    This random thing: I think I don't need the db. The string just has to go to two different e-mail addresses and have a variable output (for example, $mystring) so that I can work with the string further via $_GET. The short story is that after the payment has been confirmed, this $mystring triggers another script to work. I don't mind telling you everything about it, it's just that this is a fresh idea and I don't feel comfortable about everyone out there doing the same thing right now.

    However, I don't mind if you use this concept for your version 4. Maybe we can chat somewhere in private? May I contact you through your website? There was another interesting thing I wanted to share with you.

    Sorry guys, it's too spam-prone to make it public without prior consideration!

  5. elfin
    Moderator
    Posted 4 years ago #

    tankard - feel free to email me : elfin@elfden.co.uk

    You're right about the settings page - I'll add make some changes in a future release to address that issue.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags