Skip to content

Commit

Permalink
fix: shortdescription instead of description
Browse files Browse the repository at this point in the history
  • Loading branch information
maxakuru committed Nov 14, 2024
1 parent b29a8ee commit f7521ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/templates/html/overrides/wilson-ecommerce--wilson.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ export default class extends HTMLTemplate {
*/
constructor(ctx, product, variants) {
super(ctx, product, variants);
// use description field for meta description, if not explicitly set
this.product.metaDescription = this.product.metaDescription || this.product.description;
// use shortDescription field for meta description, if not explicitly set
this.product.metaDescription = this.product.metaDescription || this.product.shortDescription;
}

/**
Expand Down

0 comments on commit f7521ec

Please sign in to comment.