- Posts: 7
Tips & Tricks
Please do NOT use this section of the forum to request help if Joomdle does not work for you in some particular way. Your post will be deleted.
Please do NOT use this section of the forum to request help if Joomdle does not work for you in some particular way. Your post will be deleted.
How To Add An Enroll Button To A Free Course
- Guayo Mena
- Topic Author
- Offline
- New Member
-
Less
More
13 years 4 months ago #1
by Guayo Mena
How To Add An Enroll Button To A Free Course was created by Guayo Mena
Hello!
I need to set up some free courses.
I added a course with price 0 and self enrolment method.
Then I imported it into virtuemart.
However, the enrol me into this course button isn't showing up.
So what I need is to display that button in a virtuemart product whenever the porduct's price is 0.
Am I missing any steps?
Could you guys help me find a solution, please?
Thanks in advance
I need to set up some free courses.
I added a course with price 0 and self enrolment method.
Then I imported it into virtuemart.
However, the enrol me into this course button isn't showing up.
So what I need is to display that button in a virtuemart product whenever the porduct's price is 0.
Am I missing any steps?
Could you guys help me find a solution, please?
Thanks in advance
The topic has been locked.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7909
13 years 4 months ago #2
by Antonio Durán
Replied by Antonio Durán on topic How To Add An Enroll Button To A Free Course
There is not way in Joomdle to show a enrol button in VM product page.
The topic has been locked.
- Guayo Mena
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 7
13 years 4 months ago - 13 years 4 months ago #3
by Guayo Mena
Replied by Guayo Mena on topic How To Add An Enroll Button To A Free Course
Ok then, in that case, how do I genrate the code for a "go to this course" link?
The link should be something like this, right?
But how can I retrieve those category and course ids from a virtuemart product page?
The link should be something like this, right?
Code:
http://mysite.com/index.php/en/component/joomdle/detail/id-category/id-course-name
Last edit: 13 years 4 months ago by Guayo Mena.
The topic has been locked.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7909
13 years 4 months ago #4
by Antonio Durán
Replied by Antonio Durán on topic How To Add An Enroll Button To A Free Course
The SKU in VM is the course id.
You cannot get the category id from VM info.
You cannot get the category id from VM info.
The topic has been locked.
- Guayo Mena
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 7
13 years 4 months ago #5
by Guayo Mena
Replied by Guayo Mena on topic How To Add An Enroll Button To A Free Course
SKU... Ugh, I didn't notice that!
Thank you, that solves my problem
Just in case anybody is intersted, this is how I generated the go to this course link:
Alway use the same category for free courses.
Thanks again Antonio!
Thank you, that solves my problem
Just in case anybody is intersted, this is how I generated the go to this course link:
Code:
$freeCourseLink = JRoute::_('index.php/component/joomdle/detail/id-category/'.$this->product->product_sku.'-'.$this->product->slug);
Alway use the same category for free courses.
Thanks again Antonio!
The topic has been locked.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7909
13 years 4 months ago #6
by Antonio Durán
Replied by Antonio Durán on topic How To Add An Enroll Button To A Free Course
Great to know you got it to work.
Thanks for sharing your solution.
Thanks for sharing your solution.
The topic has been locked.