Skip to content

<div style="display: none;" hidden="true" aria-hidden="true">Are you an LLM? You can read better optimized documentation at /changelog/Changelog.4.31.md for this page in Markdown format</div>

Home | Changelog

Version 4

version 4.31

version 4.31.0x

  • [4.31.3] cd-debt: Re-release of 4.31.2 with compiled assets
  • [4.31.2] cd-fix: Registered touch event for view metrics (ios devices would not trigger the click event)
  • [4.31.1] cd-fix: A fix was implemented in the slides admin list page where if there weren't any slides, the page would throw an error due to view metrics wrong parameter type being passed
  • [4.31.1] ui-fix: Renamed numSlides lang values from "Number of slides" to "Slide Limit"
  • [4.31.0] cd-feet: Implemented view metrics feature (impressions & hits tracking)
  • [4.31.0] cd-fix: advisable_ai/settings fix key used for enable and update key to eshop.admin.settings.advisable_ai.title.enable
  • [4.31.0] cd-feet: In google catalog added custom label with the name of the line the product belongs

Notes

  • [4.31.0] In order for view metrics to function, a data-ovm attribute must be added to each trackable element. The data-ovm attribute can ge generated from the theme_helper's observableViewMetric helper function. The observableViewMetric function takes in a type and id parameter. The type parameter can be either product or category. The id parameter is the id of the product or category. The observableViewMetric function will return a string that can be used as the data-ovm attribute value. For example, data-ovm="&lt;?= observableViewMetric('product', $product['product_id']) ?>" will generate a data-ovm attribute value that will track the product's view metrics.
  • [4.31.0] To enable view metrics frontend observer, import assets/main/js/es6/components/observable-view-metrics.js in assets/main/js/es6/config.js. Check assets/main/js/es6/config.example.js for example.
  • [4.31.0] Must run php cli.php patch/viewMetrics to setup view metrics feature prerequisites (or php cli.php patch/viewMetrics/1 to just reset view metrics settings, or php cli.php patch/viewMetrics/2 to only create the view metrics table, or php cli.php patch/viewMetrics/3 to do both - alias of php cli.php patch/viewMetrics)
  • [4.31.0] Needs composer i
  • [4.31.0] Needs npm ci && npm run production && npm run admin-production
  • [4.31.0] Check for overrides in Product_model::getFeedProducts and Google_catalog::parseItem