Open serveit-ca opened 5 years ago
@serveit-ca I believe all we need for the database for this is "URL of the company Logo Company Name Instruction Text Company Contact Info"
How do we feel about simply altering the dev_cura_corps table to include these details? Currently the table has id, mempr_id, and the company name.
@SideonDeaka lets alter the table, lets make Instruction Text a text field which can hold HTML code lets also add one more field which is post signup Text (displayed when the user has successfully signed up and will contain the next steps they need to take.
ALTER TABLE dev_cura_corps ADD COLUMN instruction_text text; ALTER TABLE dev_cura_corps ADD COLUMN logo text; (url to company logo/image - probably needs a specific aspect ratio) ALTER TABLE dev_cura_corps ADD COLUMN company_email varchar(255); ALTER TABLE dev_cura_corps ADD COLUMN company_phone varchar(15);
ALTER TABLE dev_cura_corps DROP COLUMN mempr_id;
Have also refactored member press ID out of the corp table, and all references to it, as well as cleaned up select statements for groups and corps
i am missing the SQL for the auth column
and perhaps the company name?
ALTER TABLE dev_cura_corps ADD COLUMN auth varchar(16);
new endpoint for corp creation
register_rest_route('curastream/v2', '/cura_new_corp/', array( 'methods' => 'POST', 'callback' => 'cura_new_corp' ));
Expected Data: $corpName = $data['corp-name']; $corpInstructionText = $data['instruction-text']; $companyLogoUrl = $data['logo-url']; $companyEmail = $data['company-email']; $companyPhone = $data['company-phone']; $companyAuth = $data['auth-token'];
@SideonDeaka can we add the functionality somewhere to assign a program to every user in a group so mike can do this. I am not sure which page this would be on, but i just wanted to ensure we have that functionality. We would also want to see the groups which have programs assigned. I am not sure how we track this long term.
@serveit-ca This functionality already exists in the group object, lines 197-216 'assignProgramToGroup' Let me know if anything is needed changed.
Hey @SideonDeaka
We want to create a landing page for each of the companies which are B2B.
the landing page will be under the namespace of www.curastream.com/c?c="aretta"&auth="5!peHbgAA!Qs#yxUn3P07dHDXHK74p"
if the endpoint being reached is www.curastream.com/c than the default page builder content which mike creates would be displayed.
if the endpioint being reached has a company name but not a auth key, an alert which says, url not valid will be displayed and the default page which mike creates would be displayed under that
if the endpoint being reached has a company name which is legit and a correct auth key, it would display the following:
URL of the company Logo Company Name Instruction Text Company Contact Info
Sign up Fields Username Password Type of exercise/training goals ???
Once the user clicks submit via jquery Front End