Hello Support,

just bought this great theme! Excellent Work!

I waited with my purchase until version 2.0 came out today and have 2 question regarding user role and payments.

1. As it looks, it is not possible to allow free listings?? I can disable paypal payments in AIT > General settings > Accounts, on the register widged the package select option and paypal button still shows. I also tried to not put a value in the price field but this didn't work.

I would like to start the site first with free listings and maybe switch later to payed. How would I do this?

2. How can I manually allow a registered member to post items? I registered a user (while I got a error during this process because I tried a zero price) and he initially had no user role assigned. I manually set him to "Subscriber" but the Directory Account page under his admin shows blank.


Maybe this is a bug:
the link that should show under "Leave a review" when logged out shows wrong.
instead of showing the link, the html code is visible like: You must be to post a review.

Thanks!
Gregor
February 21, 2013, 8:13pm
Hello again some update:

I found the solution for the second problem and know now how to set user roles. (at least 1 account type must enabled!)

Now I discover a new problem:
When registering and submitting the button I get following error:

bool(false) PRICE: 25 ROLE: directory_1 FREE:
Warning: Cannot modify header information - headers already sent by (output started at /home/lanzagui/public_html/wp-content/themes/directory/functions-dir.php:681) in /home/lanzagui/public_html/wp-content/themes/directory/functions-dir.php on line 733

The user got added to the system but he received no welcome message with password.
paypal is set to sandbox and API credentials set correctly.
February 21, 2013, 9:08pm

Same problem:

bool(false) PRICE: 990 ROLE: directory_1 FREE:
Warning: Cannot modify header information - headers already sent by (output started at /home/mappihu/public_html/wp-content/themes/directory/functions-dir.php:681) in /home/mappihu/public_html/wp-content/themes/directory/functions-dir.php on line 730

February 22, 2013, 8:46am

Had the same problem. Looks like the developper forgot to comment a line. Comment line 681 (add two slashes in front) in functions-dir.php and it works fine.

The line adds (non critical / non functional) output before a header() which results in an error.

For the free listing: use 0 as a price for it to be free.
February 22, 2013, 8:57am

Thank you safve! :)
February 22, 2013, 9:33am

Thanks Safve!!

because of the error I got I thought it wasn't possible to use 0 as value.
Now that I commented line 681 all works as expected!

The only think I miss is some sort of redirect or success message after the member registered. Now, after submitting, nothing really happens that tells me I registered (until I see the mail that I receive).

Any solution for this??
February 22, 2013, 9:40am

Guys can you explain how to fix this is simple terms, I understand i need to add // but where and how?

...thanks

Jamie.
February 23, 2013, 1:00pm

just add it in front of line 681 in functions-dir.php so it looks like this:

// echo "PRICE: ".$price." ROLE: ".$role." FREE: ".var_dump($free);
February 23, 2013, 7:22pm

Thax Gregorh, and all the others for finding the issue
February 24, 2013, 4:01pm

AIT Supportivan
Hi all, sorry for later response, seems that you found answers for the issue with output which was forgotten there.
I'll talk about message after registering with our developer if something like that may be implemented there.
Thanks, Ivan.
February 25, 2013, 2:31pm