Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added queue clearing #170

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

Codencode
Copy link

@Codencode Codencode commented Dec 17, 2024

JavaScript events considered:

  • updateCart
  • changedCheckoutStep
  • updatedProduct
  • updateProductList
  • clickQuickView
Questions Answers
Description? see PrestaShop/PrestaShop#37661
Type? bug fix
BC breaks? no
Deprecations? no
Fixed ticket? Fixes #37661
Sponsor company @Codencode
How to test? see PrestaShop/PrestaShop#37661

JavaScript events considered:
- updateCart
- changedCheckoutStep
- updatedProduct
- updateProductList
controllers/front/ajax.php Outdated Show resolved Hide resolved
/**
* @var Ps_Googleanalytics
*/
public $module;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this necessary? I think it should be automatic when you are extending ModuleFrontController.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, it's not necessary; I added it to make the type explicit, i.e., "Ps_Googleanalytics", so that there are no warnings in the editor.
However, if you consider it "redundant", I can remove it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just remove this please, your IDE complains because it lacks the context of a parent class. :-)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed it.
Thanks!

Co-authored-by: Nicolas Lœuillet <[email protected]>
@Codencode Codencode requested a review from nicosomb December 17, 2024 15:35
Copy link
Contributor

@Hlavtox Hlavtox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Block to prevent accidental merge, I want to check and test it. 👍

@Codencode
Copy link
Author

@Hlavtox,
I have also prepared the code to handle the update of the product list (e.g., on the category page when filtering).
I could upload this code to this PR or create another PR, so you can review everything when you have time.
What do you think?

@kreare
Copy link

kreare commented Dec 18, 2024

awesome, waiting for merge

@Codencode
Copy link
Author

@Hlavtox, have you had a chance to review this PR?

Also, if it's okay, I could create a second PR with the changes related to updating the product list (e.g., on the category page when filtering).

Thanks, and sorry for bothering you.

Copy link
Contributor

@Hlavtox Hlavtox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One comment but I think its good.

ping @kpodemski for check

/**
* @var Ps_Googleanalytics
*/
public $module;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just remove this please, your IDE complains because it lacks the context of a parent class. :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Ready for review
Development

Successfully merging this pull request may close these issues.

[ps_googleanalytics]: add_to_cart event in realtime
5 participants