Shop / e-Commerce Integration

Other questions about bundles, selection of courses

  • pipelad
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
8 years 7 months ago #1 by pipelad
Hello, i have a "weird" situation that is making the setup of bundles a hussle.

The moodle im setting up is for a High-school, and so in diferent categories (each for a diferent year) and each one has courses that have about the same name (Ej. Biology is seen in 6m 7, 8, etc) So is there a way to select the bundles from the short name (that i configure with more información) or do i need to go and change the names of each course?

Also i have activated the "send email" to bundle buyers, i have configured the email to be sent etc, if there is a course tag within the mail will it sent the link for all the courses in the bunlde?

Please Log in or Create an account to join the conversation.

More
8 years 7 months ago - 8 years 7 months ago #2 by Antonio Durán
Replied by Antonio Durán on topic Other questions about bundles, selection of courses
Hi.

Thanks for the suggestion, I think that it totally makes sense.
A change will be included in next release, but it is easy to do if you want.
Edit file:
administrator/components/com_joomdle/models/fields/courselist.php
Change:
Code:
$text = $course['fullname'];
By:
Code:
$text = '(' . $course['shortname'] . ') ' . $course['fullname'];

Please test and let us know if this helps.

> if there is a course tag within the mail will it sent the link for all the courses in the bunlde?
That's not how it works. The system will send one email for each course in the bundle., each one with its own link.
Last edit: 8 years 7 months ago by Antonio Durán.

Please Log in or Create an account to join the conversation.

  • pipelad
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
8 years 7 months ago #3 by pipelad
Will test it and get back to you on that.

On the second topic, is there a way to not do that? to send only 1 email? i don't want to bombard our customers with too many emails, especially important on those who "buy" the whole high-school plan, would be getting over 20+ emails, not desirable

Please Log in or Create an account to join the conversation.

  • pipelad
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
8 years 7 months ago #4 by pipelad
i changed the file, i still see only the full name, not the "short" name of the course, i might need some additional step?

Please Log in or Create an account to join the conversation.

More
8 years 7 months ago #5 by Antonio Durán
Replied by Antonio Durán on topic Other questions about bundles, selection of courses
Which Joomdle version are you using?

> On the second topic, is there a way to not do that? to send only 1 email?
Not right now, but I agree that it could be nice. I will add it to the TODO list, to see if we can add it for next release.

Please Log in or Create an account to join the conversation.

  • pipelad
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
8 years 7 months ago #6 by pipelad
1.14, joomla 3.82, moodle 3.3

Please Log in or Create an account to join the conversation.

More
8 years 7 months ago #7 by Antonio Durán
Replied by Antonio Durán on topic Other questions about bundles, selection of courses
It seems you edited:
administrator/components/com_joomdle/fields/courselist.php
instead of:
administrator/components/com_joomdle/models/fields/courselist.php

Please Log in or Create an account to join the conversation.

  • pipelad
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
8 years 7 months ago #8 by pipelad
OH i might have, will check, and get back to you

Please Log in or Create an account to join the conversation.

  • pipelad
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
8 years 7 months ago #9 by pipelad
Sorry for the late responce i was focused on adding bucket loads of content.

Just here to tell you that the eddit worked correctly for bundles, but not for individual courses, that might also need the option

Please Log in or Create an account to join the conversation.

More
8 years 7 months ago #10 by Antonio Durán
Replied by Antonio Durán on topic Other questions about bundles, selection of courses
Great.
> but not for individual courses
Ok, I have added it to the shop course list too.
To get it you need to do 2 modifications:
- administrator/components/com_joomdle/views/shop/tmpl/default.php
Change:
Code:
<td><?php echo $row->fullname;?></td>
By:
Code:
<td><?php echo '(' . $row->shortname . ') ' . $row->fullname;?></td>
- plugins/joomdleshop/joomdlevirtuemart/joomdlevirtuemart.php
Function: onGetShopCourses ()
Add:
Code:
$c[$i]->shortname = $curso['shortname'];
After:
Code:
$c[$i]->fullname = $curso['fullname'];

Please Log in or Create an account to join the conversation.