mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-09-22 05:50:48 +02:00
docs(bundle): update bundle section, show collection list
This commit is contained in:
parent
fa5a5e3bb4
commit
3bb4803785
2 changed files with 5 additions and 4 deletions
|
@ -26,8 +26,8 @@ export const BUNDLE_LICENSE = {
|
||||||
};
|
};
|
||||||
|
|
||||||
export const STORE_PRODUCTS_URL = {
|
export const STORE_PRODUCTS_URL = {
|
||||||
base: 'https://store.akveo.com/collections/frontpage/products.json',
|
base: 'https://store.akveo.com/collections/collection-for-ngx-admin-landing/products.json',
|
||||||
material: 'https://store.akveo.com/collections/material-bundles/products.json',
|
material: 'https://store.akveo.com/collections/collection-for-ngx-admin-landing/products.json',
|
||||||
};
|
};
|
||||||
|
|
||||||
export class Feature {
|
export class Feature {
|
||||||
|
@ -40,6 +40,7 @@ export class Feature {
|
||||||
export class BundlesService {
|
export class BundlesService {
|
||||||
|
|
||||||
private readonly STORE: string = 'https://store.akveo.com/products';
|
private readonly STORE: string = 'https://store.akveo.com/products';
|
||||||
|
private readonly STORE_COLLECTION: string = 'https://store.akveo.com/collections';
|
||||||
|
|
||||||
private features: Feature[] = [
|
private features: Feature[] = [
|
||||||
{
|
{
|
||||||
|
@ -92,7 +93,7 @@ export class BundlesService {
|
||||||
return {
|
return {
|
||||||
id: item.id,
|
id: item.id,
|
||||||
imageUrl: this.getDefaultImage(item.images),
|
imageUrl: this.getDefaultImage(item.images),
|
||||||
storeUrl: `${this.STORE}/${item.handle}`,
|
storeUrl: `${this.STORE_COLLECTION}/${item.handle}`,
|
||||||
tags: item.tags,
|
tags: item.tags,
|
||||||
title: item.title,
|
title: item.title,
|
||||||
description: (item.body_html as string).trim().replace(/<(?:.|\n)*?>/gm, ' ').replace(/ +/gm, ' '),
|
description: (item.body_html as string).trim().replace(/<(?:.|\n)*?>/gm, ' ').replace(/ +/gm, ' '),
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
<span class="package-card__price package-card__price--old" *ngIf="shouldShowOldPrice(product.variants, selectedLicenseType)">
|
<span class="package-card__price package-card__price--old" *ngIf="shouldShowOldPrice(product.variants, selectedLicenseType)">
|
||||||
${{ (product.variants | license:selectedLicenseType).compare_at_price }}
|
${{ (product.variants | license:selectedLicenseType).compare_at_price }}
|
||||||
</span>
|
</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>
|
</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 }}"
|
<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">
|
class="package-card__buy-link btn">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue