Skip to content

Commit

Permalink
Merge pull request #729 from hlxsites/728-product-brand-info
Browse files Browse the repository at this point in the history
Brand information passed to quote items
  • Loading branch information
rgravitvl authored Feb 1, 2024
2 parents 3843391 + fe2aae5 commit bcc9359
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 2 additions & 3 deletions blocks/product-children/product-tile.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,8 @@ export default class ProductTile extends HTMLElement {
unit: 'N/A',
},
productSKU: this.sku,
image: this.image,
brand: this.opco,
productDescription: this.description,
image: this.result?.raw?.images?.[0],
brand: this.result?.raw?.opco,
referrer: window.location.href,
referrerTitle: document.title.replace('| Danaher Lifesciences', '').replace('| Danaher Life Sciences', '').trim(),
country: this.country,
Expand Down
3 changes: 2 additions & 1 deletion scripts/quote-modal.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {
button, div, label, p, span, textarea,
} from './dom-builder.js';
import { getMetadata } from './lib-franklin.js';
// eslint-disable-next-line import/no-cycle
import { getAuthorization, getCommerceBase } from './commerce.js';

Expand Down Expand Up @@ -35,7 +36,7 @@ export function addRequestforQuote(dialogElement, gotoQuoteCart = false) {
const image = document.getElementsByClassName('imageviewer')?.item(0)?.getElementsByTagName('img')?.item(0)
?.getAttribute('src') ? `${window.location.origin}${document.getElementsByClassName('imageviewer')?.item(0)?.getElementsByTagName('img')?.item(0)}`
?.getAttribute('src') : undefined;
const opco = dialogElement.getAttribute('data-opco');
const opco = getMetadata('brand');
const referrerTitle = dialogElement.getAttribute('data-referrer-title');
const country = dialogElement.getAttribute('country');
const data = {
Expand Down

0 comments on commit bcc9359

Please sign in to comment.