docs(bundle): update bundle section, show collection list

This commit is contained in:
d.strigo 2020-06-18 12:42:25 +03:00
parent fa5a5e3bb4
commit 3bb4803785
2 changed files with 5 additions and 4 deletions

View file

@ -26,8 +26,8 @@ export const BUNDLE_LICENSE = {
};
export const STORE_PRODUCTS_URL = {
base: 'https://store.akveo.com/collections/frontpage/products.json',
material: 'https://store.akveo.com/collections/material-bundles/products.json',
base: 'https://store.akveo.com/collections/collection-for-ngx-admin-landing/products.json',
material: 'https://store.akveo.com/collections/collection-for-ngx-admin-landing/products.json',
};
export class Feature {
@ -40,6 +40,7 @@ export class Feature {
export class BundlesService {
private readonly STORE: string = 'https://store.akveo.com/products';
private readonly STORE_COLLECTION: string = 'https://store.akveo.com/collections';
private features: Feature[] = [
{
@ -92,7 +93,7 @@ export class BundlesService {
return {
id: item.id,
imageUrl: this.getDefaultImage(item.images),
storeUrl: `${this.STORE}/${item.handle}`,
storeUrl: `${this.STORE_COLLECTION}/${item.handle}`,
tags: item.tags,
title: item.title,
description: (item.body_html as string).trim().replace(/<(?:.|\n)*?>/gm, ' ').replace(/ +/gm, ' '),

View file

@ -37,7 +37,7 @@
<span class="package-card__price package-card__price--old" *ngIf="shouldShowOldPrice(product.variants, selectedLicenseType)">
${{ (product.variants | license:selectedLicenseType).compare_at_price }}
</span>
<span class="package-card__price">${{ (product.variants | license:selectedLicenseType).price }}</span>
<span class="package-card__price">From ${{ (product.variants | license:selectedLicenseType).price }}</span>
</div>
<a href="{{ product.storeUrl }}?utm_source=ngx_admin&utm_medium=referral&utm_campaign=akveo_store%20-%20specific%20bundle%20-%20ngx_admin%20landing&utm_content=buy_bundle_{{ selectedLicenseType }}"
class="package-card__buy-link btn">