- Posts: 5
Shop / e-Commerce Integration
adding "go to course" button
- Can Gökçay
- Topic Author
- Offline
- New Member
-
Less
More
11 years 2 weeks ago #1
by Can Gökçay
adding "go to course" button was created by Can Gökçay
Hi,
We are using hikashop plugin to sell course as product.
I want to ask if it is possible to replace "buy" button with "go to course" button when a custumer purchase a course.
When custumer come to the product's detail page again, this user shouldn't see "buy" button anymore but should see "go to course" button. Because the user have this product allready.
Thanks.
We are using hikashop plugin to sell course as product.
I want to ask if it is possible to replace "buy" button with "go to course" button when a custumer purchase a course.
When custumer come to the product's detail page again, this user shouldn't see "buy" button anymore but should see "go to course" button. Because the user have this product allready.
Thanks.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7914
11 years 2 weeks ago #2
by Antonio Durán
Replied by Antonio Durán on topic adding "go to course" button
Well, this is supposed to work exactly like you describe, so if it does not, there is a bug.
I just tested in my local installation and it is working fine.
I just tested in my local installation and it is working fine.
Please Log in or Create an account to join the conversation.
- Can Gökçay
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 5
11 years 2 weeks ago #3
by Can Gökçay
Replied by Can Gökçay on topic adding "go to course" button
Hi,
Actually I want to make this replacement in the hikashop part. What you said is working correct in the joomdle part, there is no problem. I need to know how I can give link to the corresponding product content.
In hikashop part I query the database for order_status and I know the confirmed products. If a product is confirmed I will replace "buy" button with "go to course" button. But which link I should write to the href attribute of the button.
Actually I want to make this replacement in the hikashop part. What you said is working correct in the joomdle part, there is no problem. I need to know how I can give link to the corresponding product content.
In hikashop part I query the database for order_status and I know the confirmed products. If a product is confirmed I will replace "buy" button with "go to course" button. But which link I should write to the href attribute of the button.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7914
11 years 2 weeks ago #4
by Antonio Durán
Replied by Antonio Durán on topic adding "go to course" button
Hi.
Link will be different if you are using wrapper or not:
- With wrapper: index.php?option=com_joomdle&view=wrapper&moodle_page_type=course&id=[SKU]
- Without wrapper: moodle/course/view.php?id=[SKU]
You need to get SKU from the product record.
Link will be different if you are using wrapper or not:
- With wrapper: index.php?option=com_joomdle&view=wrapper&moodle_page_type=course&id=[SKU]
- Without wrapper: moodle/course/view.php?id=[SKU]
You need to get SKU from the product record.
Please Log in or Create an account to join the conversation.