对象已移动

可在此处找到该文档 Identify User Actions with JS event in PrestaShop 1.7 – New Self New Life
New Self New Life
No Result
View All Result
  • Home
  • Entertainment
  • Celebrity
  • Cinema
  • Music
  • Digital Lifestyle
  • Social Media
  • Softwares
  • Devices
  • Home
  • Entertainment
  • Celebrity
  • Cinema
  • Music
  • Digital Lifestyle
  • Social Media
  • Softwares
  • Devices
New Self New Life
No Result
View All Result
Home Softwares

Identify User Actions with JS event in PrestaShop 1.7

by admin
4 years ago
in Softwares
Identify User Actions with JS event in PrestaShop 1.7
Share on FacebookShare on Twitter


PrestaShop 1.7 entrance workplace has a scientific occasion system which “emits” some occasions. Moreover, we will use these occasions to determine consumer actions.

As an illustration, a consumer modifications mixture in product web page. Due to this fact the mixture and picture template is up to date. After that it emits “updatedProduct” occasion. You should use this occasion to seize this motion and determine the up to date mixture.

To make clear, these occasions are just like hooks system in PrestaShop core lessons. As you’ll be able to add PrestaShop core hooks to carry out your motion within the module. Equally, you should use theme occasions to determine consumer actions and carry out your required course of.

The best way to use

These occasions emit with “prestashop” object in JS. So we are going to use the identical object to use hook on these occasions:

prestashop.on("updatedProduct", perform(response) {
    // The mixture is modified
    // "response" argument has information associated to this occasion
    // Carry out your motion
});

The argument within the callback perform is elective. You possibly can add this everytime you want the occasion response information in your callback.

Checklist of all occasions

Right here is the checklist of occasions to determine consumer actions which might be accessible in core js of PrestaShop as per newest model:

Occasion Title Pages Motion
updateCart Itemizing pages, Product web page and cart web page. Add product to cart and cart amount updates.
updatedCart Cart web page After cart complete abstract template is up to date.
changedCheckoutStep Checkout web page When consumer clicks any reachable checkout step.
editAddress Checkout web page (Order remaining abstract) When consumer clicks edit tackle order remaining abstract.
updatedDeliveryForm Checkout web page When consumer modifications delivery choice in checkout.
editDelivery Checkout web page (Order remaining abstract) When consumer clicks to edit delivery choice order remaining abstract.
updateProductList Itemizing pages When the product checklist is up to date on account of filter or sorting change
clickQuickView Itemizing pages When buyer clicks on fast view of a product.
updateProduct Product web page As quickly as buyer clicks on mixture to vary.
updatedProduct Product web page When product template is up to date on mixture change.
updatedAddressForm Handle kinds (Addresses and checkout web page) When consumer modifications the nation and state checklist updates.
handleErrors All pages To deal with errors in any of the above occasions.
author-thumb

Ram Chandra
2 Badges

27 August 2021



Source link

Tags: ActionsEventIdentifyPrestaShopUser
Previous Post

jq for JSON

Next Post

‘day of the deadmau5’ Taking Over Miami & Red Rocks this Halloween [DETAILS]

Related Posts

This week in AI updates: Mistral’s new Le Chat features, ChatGPT updates, and more (September 5, 2025)
Softwares

This week in AI updates: Mistral’s new Le Chat features, ChatGPT updates, and more (September 5, 2025)

by admin
September 5, 2025
Hybrid 3D printing method boosts strength of eco-friendly parts with less plastic
Softwares

Hybrid 3D printing method boosts strength of eco-friendly parts with less plastic

by admin
September 8, 2025
Don’t Have the Backslash or Pipe Symbol? Type \ and | on Any Keyboard [Article]
Softwares

Don’t Have the Backslash or Pipe Symbol? Type \ and | on Any Keyboard [Article]

by admin
September 6, 2025
AI coding assistants speed delivery but multiply security risk
Softwares

AI coding assistants speed delivery but multiply security risk

by admin
September 4, 2025
Unlock the Future of ERP at Odoo Community Days 2025
Softwares

Unlock the Future of ERP at Odoo Community Days 2025

by admin
September 7, 2025
Next Post
‘day of the deadmau5’ Taking Over Miami & Red Rocks this Halloween [DETAILS]

'day of the deadmau5' Taking Over Miami & Red Rocks this Halloween [DETAILS]

‘Cobra Kai’ Season 5 Ordered By Netflix

‘Cobra Kai’ Season 5 Ordered By Netflix

  • Trending
  • Comments
  • Latest
I Only Have More Questions After Another Bizarre Outing With The Harrigans

I Only Have More Questions After Another Bizarre Outing With The Harrigans

April 20, 2025
Amazon Forgot to Take the 2024 MacBook Air Off Sale After Their Big Spring Event

Amazon Forgot to Take the 2024 MacBook Air Off Sale After Their Big Spring Event

April 4, 2025
Ecca Vandal’s “CRUISING TO SELF SOOTHE” video is an ode to skate culture

Ecca Vandal’s “CRUISING TO SELF SOOTHE” video is an ode to skate culture

March 10, 2025
Easy Blueberry Scones (With Frozen Blueberries)

Easy Blueberry Scones (With Frozen Blueberries)

April 10, 2025
Tuesday Snapshot – Vivaldi Browser snapshot 3621.3

Tuesday Snapshot – Vivaldi Browser snapshot 3621.3

March 5, 2025
A Global Recognition of Indi

A Global Recognition of Indi

April 21, 2025
It’s time for open-source contributions

It’s time for open-source contributions

February 9, 2025
I finally watched The Truman Show

I finally watched The Truman Show

April 6, 2025
Tchotchke bring diva rock to Playin’ Dumb

Tchotchke bring diva rock to Playin’ Dumb

September 8, 2025
All the Best Looks From the 2025 MTV VMAs After Parties

All the Best Looks From the 2025 MTV VMAs After Parties

September 8, 2025
Where will Prince Harry stay during UK visit without Meghan Markle?

Where will Prince Harry stay during UK visit without Meghan Markle?

September 8, 2025
5 Ways To Research Key Trends for Social Media Ad Campaigns

5 Ways To Research Key Trends for Social Media Ad Campaigns

September 8, 2025
Rokid Glasses Bring Everyday AR to IFA 2025

Rokid Glasses Bring Everyday AR to IFA 2025

September 7, 2025
Vivaldi Drama Primavera Unveils Deals As It Debuts At TIFF

Vivaldi Drama Primavera Unveils Deals As It Debuts At TIFF

September 7, 2025
10 Best Vampire TV Couples, Ranked

10 Best Vampire TV Couples, Ranked

September 7, 2025
Taylor Swift Left Travis Kelce’s Trainer’s Daughter In Complete ‘Awe’ With This Sweet Gesture! 

Taylor Swift Left Travis Kelce’s Trainer’s Daughter In Complete ‘Awe’ With This Sweet Gesture! 

September 7, 2025
New Self New Life

Your source for entertainment news, celebrities, celebrity news, and Music, Cinema, Digital Lifestyle and Social Media and More !

Categories

  • Celebrity
  • Cinema
  • Devices
  • Digital Lifestyle
  • Entertainment
  • Music
  • Social Media
  • Softwares
  • Uncategorized

Recent Posts

  • Tchotchke bring diva rock to Playin’ Dumb
  • All the Best Looks From the 2025 MTV VMAs After Parties
  • Where will Prince Harry stay during UK visit without Meghan Markle?
  • Home
  • Disclaimer
  • DMCA
  • Privacy Policy
  • Cookie Privacy Policy
  • Terms and Conditions
  • Contact us

Copyright © 2021 New Self New Life.
New Self New Life is not responsible for the content of external sites. slotsfree  creator solana token

No Result
View All Result
  • Home
  • Entertainment
  • Celebrity
  • Cinema
  • Music
  • Digital Lifestyle
  • Social Media
  • Softwares
  • Devices

Copyright © 2021 New Self New Life.
New Self New Life is not responsible for the content of external sites.

New Self New Life