hlxsites / aem-boilerplate-commerce

Use this repository template for new AEM+Commerce projects.
https://main--aem-boilerplate-commerce--hlxsites.aem.live
Apache License 2.0
27 stars 21 forks source link

improve product recommendations events #141

Closed sirugh closed 1 month ago

sirugh commented 1 month ago

This PR:

  1. Adds an "add to cart" button to product recs implementation. The button copy is conditional depending on productType.
  2. Triggers "add-to-cart" when that button is clicked, regardless of productType
  3. removes observer.disconnect so that product recs scroll out and in to view will re-trigger view event.

Test URLs:

aem-code-sync[bot] commented 1 month ago

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed. In case there are problems, just click a checkbox below to rerun the respective action.

Commits * [3ce55a9](https://github.com/hlxsites/aem-boilerplate-commerce/commit/3ce55a96ff11e49ecd77c10a6ce2b325b3bf0f7a) :arrows_counterclockwise: (latest) * [60b8d2f](https://github.com/hlxsites/aem-boilerplate-commerce/commit/60b8d2fa8d07cd715f3e146e7d1dafe54d87745f) :white_check_mark: * [e0bfde2](https://github.com/hlxsites/aem-boilerplate-commerce/commit/e0bfde2f50c1ea804b0a6d1a64a1feede905b9ce) :white_check_mark: * [0563bff](https://github.com/hlxsites/aem-boilerplate-commerce/commit/0563bff2b53ab219f550a1603973d2681ec93def) :white_check_mark: * [a80d491](https://github.com/hlxsites/aem-boilerplate-commerce/commit/a80d4914b34f65edfd528e3844f2fa0684af0445) :white_check_mark: * [62b1bf8](https://github.com/hlxsites/aem-boilerplate-commerce/commit/62b1bf8a419faac5db2fc6f81b70252183b32971) :white_check_mark: * [ed73dc1](https://github.com/hlxsites/aem-boilerplate-commerce/commit/ed73dc1b52ea1c3c263a0efc987d47767d1b7053) :white_check_mark:
aem-code-sync[bot] commented 1 month ago
Page Scores Audits Google
:iphone: / PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI
:desktop_computer: / PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI