mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-22 18:30:14 +01:00
fix(bundles): hide old price if no discount (#5561)
This commit is contained in:
parent
9e85f2aab5
commit
a5a535d341
4 changed files with 23 additions and 4 deletions
|
|
@ -91,7 +91,7 @@ export class BundlesService {
|
|||
storeUrl: `${this.STORE}/${item.handle}`,
|
||||
tags: item.tags,
|
||||
title: item.title,
|
||||
description: (item.body_html as string).trim().replace(/^<p>/, '').replace(/<\/p>$/, ''),
|
||||
description: (item.body_html as string).trim().replace(/<(?:.|\n)*?>/gm, ' ').replace(/ +/gm, ' '),
|
||||
variants: item.variants.map(variant => {
|
||||
return {
|
||||
available: variant.available,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue