Jump to content

Understanding Java Script - Code. Where I can find the Code?


danielsaar

Recommended Posts

Hi all,

I like to understand the concept of Presta. Its a lot, I know.
Perhaps I find the code I am looking for by explaining it more in general.
There is the category-tree in Presta-Frontend.
Now I am looking for the js-code for it.

The browser shows me in the footer an uglified-file: bottom....js
If I am right, all js-code of the page will be put together in one file and then uglified.
But where is the Code for a special modul?

In modules\ps_categorytree\ I can't find any special js-code (or I am blind ;)

yours,
Daniel

:::EDIT1:::
ps: this helped me a little bit to understand the php-code of a modul:
https://blog.prestatuts.com/show-number-of-products-next-to-each-category-in-category-tree-menu/

Edited by danielsaar (see edit history)
Link to comment
Share on other sites

  • 2 weeks later...
On 10/18/2021 at 5:08 PM, danielsaar said:

If I am right, all js-code of the page will be put together in one file and then uglified.

Only if JS compression/combination is activates (see performance section in backoffice) - deactivate it to the the original source files loaded.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...