SP LMS - configure checkout - Forum | JoomShaper
Staff replied Extensions

SP LMS - configure checkout

Asked by Raul Dominguez 1 year ago Last activity 1 year 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!

13 replies

Ofi Khan Staff

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: https://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

Raul Dominguez Asked this

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!

Ofi Khan Staff

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.

Raul Dominguez Asked this

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!

Ofi Khan Staff

Please check my screencast shared in the hidden content.

Raul Dominguez Asked this

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!

Ofi Khan Staff

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.

Raul Dominguez Asked this

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

Ofi Khan Staff

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

Raul Dominguez Asked this

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!

Log in to reply.