SP LMS - Configure Checkout - Question | JoomShaper
SP Page Builder 6 is Here! Learn More →

SP LMS - Configure Checkout

RD

Raul Dominguez

Extension 10 months ago

Hello

I continue to investigate the LMS, I tried to make the checkout flow for the purchase of a course, but I do not understand how it works. On the course page, a button is displayed that indicates the value of the course and the text "Buy Now", when you press it, the text of the button changes and says "Checkout", but in the shopping cart the course is not added, or anything, if I access the shopping cart the message "Your cart is empty" is displayed, if I reload the page the button returns to its initial state "Buy Now". Is there an error? Is it necessary to configure something more than the email associated with the PayPal account? Can you explain to me how to do the configuration?

Thanks!

0
13 Answers
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 10 months ago #176496

Hello Raul Dominguez

Please follow this documentation:

SP LMS Configuration

Then set everything properly on the settings. Then check the checkout process.

I have recorded a screencast for you. Please check how to purchase a course as a student here: files.fm/u/4qnjfvr9cp

After the student purchases the course, you have to manually active the course from the admin panel -> SP LMS -> Orders.

Best regards

0
RD
Raul Dominguez
Accepted Answer
10 months ago #176631

Hello

The video is very clear, but it is not what I see in the checkout process. First of all, the template I use is not Educon I, it is Educon.

On the other hand, I don't know if it is because of the template, but the course detail page looks quite different, the button to start the checkout is at the bottom of the page, in the video you shared, it is on the right side of the screen, but the problem is that that button does not do what it has to do, it only shows the cart page and indicates that it is empty. I have followed the steps in the documentation, as you indicated, but there is no positive result. I leave a link to a video https://files.fm/u/kgsp9329mu

Thank you!

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 10 months ago #176672

You had customization on this file:

templates/shaper_educon/html/com_splms/course/defualt.php

I have renamed your file to _default.php and used original overriden file from the tempate Educon. Checkout is working now. Please check your site.

My screencast video and yours are different because of the template design. The courses page is designed differently on templates Educon and Educon 2.

0
RD
Raul Dominguez
Accepted Answer
10 months ago #176780

Hello

Thanks for the quick response, I checked the site and I see the change in the view, the payment button for the course is at the top, although it was not the main problem, it looks better.

The main problem is that you cannot pay, whenever I press the checkout button, the message "Warning Your cart is empty" is displayed, this was not fixed it seems, please tell me if I am doing something wrong. I give access to a video https://files.fm/u/5r9xdfuejw

Thank you!

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 10 months ago #177135

Please check my screencast shared in the hidden content.

0
RD
Raul Dominguez
Accepted Answer
10 months ago #177214

Hello

Thanks for the answer, I see in the video that you can do the flow correctly, but I don't get the same result.

I tried clearing the cache and cookies of the chrome browser I tried in an incognito chrome browser I tried in a safari browser I tried in an opera browser I tried on a mac computer and on a windows computer with an incognito browser

In all the attempts the result is the same as I shared with you in that video, when clicking on the checkout button, it shows the message "the cart is empty"

I swear I don't understand what the difference is between your test and mine, I don't see any JS errors in the console either.

I appreciate it if you can try to help me

Thanks!

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 10 months ago #177271

On my browser, there is session storage. I have checked with my another colleague and on incognito mode. I have also found the issue now.

Please take a full site backup with Akeeba Backup in ZIP format and share here. Follow this tutorial. I will check it on my localhost.

0
RD
Raul Dominguez
Accepted Answer
10 months ago #177365

Hello, I share the link to the zip, Thanks!

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 10 months ago #177672

I have uploaded your site backup on our test server. Cart works fine here. Please check it in the hidden content.

0
RD
Raul Dominguez
Accepted Answer
10 months ago #177980

Hello

I honestly can't believe that the checkout doesn't work only when accessing from my devices. There must be something that makes the difference and I don't understand what the error is.

Anyway, I continued testing and tried connecting to a VPN, without getting a positive result. Finally, I tell you that I live in Uruguay and my daughter lives in Argentina. I asked her to do the same test from her devices, with which she never accessed the site, PC and mobile, but we always get the same message: "your cart is empty."

You who have developed the component, can't you think of something I can check to see what the error is? Does the component generate a log? Do I have a way to debug the execution in some way?

I understand that the hosting is not a problem, because according to what you tell me, you accessed the site on my server and it worked fine.

I really don't know what to think.

Thanks!

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 10 months ago #178021

I have got the issue later on your server too. This is why I have uploaded the site backup on your server. Have you checked and tried to place an order? The country should not be a problem.

0
RD
Raul Dominguez
Accepted Answer
10 months ago #178182

Hi

ok, I didn't understand that you had experienced the same error on my server. On your server I checked that it works correctly. Perfect, so it's something related to the server, but what could be wrong? something related to javascript? a version of some library?

Thanks !

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 9 months ago #178678

Will you please share our link and ask your hosting provider? I think they might understand it. It is related to session storage (Hosting will understand).

0