egor7712
asked 7 years ago

Hi!

  1. My customer’s comments are not shown in question comments. Comments must be manually approved is off, in plugin permissions to customers allowed to read and to post comments. But, thier comments i see in Console->Comments.
  2. How can I do so that categories was autochiose when customer open specific category page. In example: Page1 (has category1), page2 (has category2). When I open page1 in form must be autochoice category1

Is this possible? Thank you.
(sorry for my bad english)

egor7712
replied 7 years ago

OR
better if category select will be as required. This can solve second problem 🙂

1 Answers
Allen
answered 7 years ago

Hi, mate so sorry for my late reply, 
issue 1 : i’m not sure i get your idea, may be you can provide me your site and an admin account to login via private answer, or contact me directly at the live chat. i’ll check it then.
issue 2 : I need you to describe it more clearly. where is the auto choose ? i need to look at it ( example ) to understand your situation. thanks

egor7712
replied 7 years ago

issue 1: solved.
issue2: I decided not to do auto chooce, but I wanna to make category select as required, that customer can’t ask a question without category
thanks

Allen
replied 7 years ago

ok for issue 2 , you can try open file : dw-question-answer-pro/inc/handle.php
go to line : 410 and add this code :

if ( $category == 0 ) {
dwqa_add_notice( __( ‘You need to select a category’, ‘dwqa’ ), ‘error’ );
return false;
}

egor7712
replied 7 years ago

it’s not work, sends http error 500, may be i paste incorrectly? can you show please a full code?

egor7712
replied 7 years ago

or can I send to you my handle.php?

Allen
replied 7 years ago

Hi, the code’s from DW Q&A pro version,
you can send me your site and an account to login via private answer, i can implement it for you.

Powered by DW Question & Answer Pro