Show all Moodle course and buy throgh hikkashop
- Wynand Louw
-
- Offline
- Premium Member
-
You said I must try the display. It does give the option for a student to buy if they are not yet registered on the course, which then takes them to the Hikashop cart to do the purchase. If they have previously purchased the course they can then just enter the course. So that works as indicated, although it displays everything that you can see on the Moodle Course.
The problem is that it also displays all closed Moodle courses, even the ones that the student has not enrolled for.
I cannot choose which courses I want to display. In Hikashop I can choose which courses to display and unpublish the ones that are closed.
The student can still see all their courses under their profile, all that they finished as well as their certificates etc.
Hope this helps.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
- Posts: 7914
I think I am even more lost now
If I go back to what I thought you wanted is this, please correct me if I am wrong:
- List courses in Hikashop (you are not using any Joomdle views for course listings)
- Don't allow users to buy courses twice
From what I read in your Hikashop forum thread, I think this is possible with Hikashop.
But then, there you say:
> If the student has purchased the course before, they can still add and pay them again in Hikashop, but that will not create another Moodle instance of the course. That means I have to manually intervene and change the course to something they have not done yet.
Which I don't understand. Is this for courses not bought through Hikashop in the first place? Because if it was bought, Hikashop won't let the user buy it again, right?
Maybe it is better to talk by email so you can send me links to better understand it all?
Please Log in or Create an account to join the conversation.
- Wynand Louw
-
- Offline
- Premium Member
-
Antonio Durán wrote: Hi,
I think I am even more lost now
If I go back to what I thought you wanted is this, please correct me if I am wrong:
- List courses in Hikashop (you are not using any Joomdle views for course listings)
No, I am not, but you suggested I try that listing. In Joomdle views.
Antonio Durán wrote: - Don't allow users to buy courses twice
That is the idea. So within Joomdle views for course listings, that works and does not allow adding the already purchased courses again. It only shows to enter the course.
Antonio Durán wrote: From what I read in your Hikashop forum thread, I think this is possible with Hikashop.
But then, there you say:
> If the student has purchased the course before, they can still add and pay them again in Hikashop, but that will not create another Moodle instance of the course. That means I have to manually intervene and change the course to something they have not done yet.
Which I don't understand. Is this for courses not bought through Hikashop in the first place? Because if it was bought, Hikashop won't let the user buy it again, right?
That is what we are trying to figure out with Hikaskop. I use the Free version before and that did not allow you to add a course twice in your Hikashop Cart. So that works as expected because training courses are set up to allow only one instance of the workshop in the cart.
I then found that a student who bought a course last year, could buy it again this year, But since it is the same Moodle course as last year, Moodle will not create a second instance of the course. I then have to change the student course manually through Hikashop to something else.
I bought the Essential version to try and prevent a student to add an old course already owned, again to the cart. That is what we are trying to set up and figure out why it is not working as expected.
Hikashop suggested the following within the Joomdle plugin:
Regarding the possibility to limit the purchase based on the courses already taken in Joomdle/Moodle, since there is already a plugin made by Joomdle to link products in HikaShop and courses in Moodle, it should be that plugin which should be modified to offer the possibility to block the purchase of a product if the corresponding course has already been taken.
This can be done in the code of the plugin with the onAfterProductCheckQuantities(&$products, &$cart, $options) event of HikaShop.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
- Posts: 7914
Ok, I see I did... almost 2 years ago
> I bought the Essential version to try and prevent a student to add an old course already owned, again to the cart. That is what we are trying to set up and figure out why it is not working as expected.
This is what you really need to solve. I guess you have the same problem if you just create a "normal" test product, and buy it, right?
> Hikashop suggested the following within the Joomdle plugin:
If this is a feature in Hikashop, it is always better to use it than trying to create a workaound.
Please Log in or Create an account to join the conversation.
- Wynand Louw
-
- Offline
- Premium Member
-
Please Log in or Create an account to join the conversation.