WOO - 2.2.1 - EDUCATION
Courses/services configuration
Activate “Enable for virtual orders” option.
Default service date: set the period for the end of the course
The format for the duration will be PXY:
X: the number that will define days, weeks, months or years.
Y: one of the following letters:
D for days.
W for weeks.
M for months.
Y for years.
For example, you can define the service duration like this:
15 days: the code will be P15D.
6 weeks: the code will be P15D.
3 months: the code will be P3M.
2 years: the code will be P2Y.
In case you need to set a different end period or date in a specific course, you can modify it individually in its configuration. You will find the option going to Products → All products. Select the product with the different date. You will see in the right column the fingernail Service end date.
Configuration of courses/services depending on the teaching mode (presential, online or mixed)
Besides the end period or date, we also need to know if the course is online, presential or mixed. You can set this in the product configuration page. Scroll down until you see the configuration section:
Make sure the service is set as Virtual.
If the course is presential, you must disable the Downloadable option.
If the course has downloadable content, you should enable the Downloadable option.
The rest of the configuration must be checked in order to ensure it doesn’t affect negatively to the performance.
CSV configuration for courses/services
If you have many courses with different end dates, WooCommerce allows you to export, edit and upload a CSV list file with your courses and their conditions, so you can avoid editing each product separately.
Note: if you don’t find the columns with SeQura metas when exporting, please introduce the duration manually to one of the courses, save it, and try exporting again.
Go to Products → All products → Export
Type these parameters in the exportation columns field: ID, SKY, Name, Categories. Also make sure the “Export custom meta” is enabled.
The exportation process will begin once you click on Generate CSV, and the file will be downloaded. Open the file with Excel and you should see all the info in one same column.
To see all the info distributed in columns in order to ease the editing, please follow these steps:
Select the first column and click on “Text in columns” in the “Data” tab.
A window will pop up. Select the “Delimited” option and click on “Next”.
On the next screen, select ONLY the “Coma” option and click on “End”.
Now you should already see the info distributed in columns.
You can edit now the column “Meta: sequra_service_end_date” and add the desired end date to each service.
If you want to filter a product to unable it with SeQura payments, you can edit the the column “Meta: is_sequra_banned”, writing “yes”.
Once you have done the modifications you must delete all the columns except for: “ID”, “Meta: is_sequra_banned”, “Meta: sequra_service_end_date”, “Meta: is_sequra_service” and “Meta: sequra_registration_amount”.
Return to WooCommerce → Products → All products and click on “Import”.
On the first step you should do the following:
Select the Excel file.
Check the “Update existent products” checkbox
Click on “Show advanced options”.
Type “;” (semicolon) in the “Delimiter CSV” field.
On the next step WooCommerce will show you the columns that have been recognized as edited. Click on “Execute importing” if they are correct.
The last step will confirm everything went correctly. At this point you can end the process.