Technical migration manual from version 2.5.2 to version 2.5.3


Saving the training basket

In 2.5.2, the training/ELP basket was only saved locally in the browser (local storage).

In 2.5.3, if the FO user is logged in, the basket will be saved in the database.

To do this, you need to create 2 tables SQL :

CREATE TABLE ODFCartProgramsUserPref(
  login varchar(255) NOT NULL, 
  context varchar(128) NOT NULL,
  contentId varchar(255) NOT NULL,
  PRIMARY KEY(login, context, contentId)
);

CREATE TABLE ODFCartCoursesUserPref(
  login varchar(255) NOT NULL,
  context varchar(128) NOT NULL,
  contentId varchar(255) NOT NULL,
  PRIMARY KEY(login, context, contentId)
); 

Furthermore, in your graphic charter, if you have imported the script JS cart-helper.js, you must replace it with the script cart-helper.i18n.js :

<script type="text/javascript" src="{ametys:pluginResourceURL('odf-web', 'js/org/helper/cart-helper.i18n.js')}"></script>

 

 

Back to top