Skip to content

Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.

Replace <b-tags> - CatalogProductListViewVue

DanielŻuławskica0fa654c33d
diff --git a/src/Web/Grand.Web/Views/Shared/_CatalogProductListViewVue.cshtml b/src/Web/Grand.Web/Views/Shared/_CatalogProductListViewVue.cshtml
index 6f10bcd26..1b3f0a91f 100644
--- a/src/Web/Grand.Web/Views/Shared/_CatalogProductListViewVue.cshtml
+++ b/src/Web/Grand.Web/Views/Shared/_CatalogProductListViewVue.cshtml
@@ -1,18 +1,18 @@
<div class="w-100 mb-3 border-bottom">
- <b-card no-body tag="article" v-bind:class="{ mobile: isMobile()}" class="product-box list mb-3">
+ <article v-bind:class="{ mobile: isMobile()}" class="card product-box list mb-3">
<div class="picture-container">
- <b-link class="img-container" :href="Model.Url" :title="Model.DefaultPictureModel.Title">
+ <a class="img-container" :href="Model.Url" :title="Model.DefaultPictureModel.Title">
<b-card-img-lazy :alt="Model.DefaultPictureModel.AlternateText" class="main-product-img" :src="Model.DefaultPictureModel.ImageUrl" :title="Model.DefaultPictureModel.Title"></b-card-img-lazy>
<template v-if="Model.SecondPictureModel.ImageUrl !== null">
<b-card-img-lazy class="hover-img" :alt="Model.SecondPictureModel.AlternateText" :src="Model.SecondPictureModel.ImageUrl"></b-card-img-lazy>
</template>
- </b-link>
+ </a>
<a title="@Loc["Products.QuickView"]" class="btn btn-secondary quick-view-button" data-target="ModalQuickView" :onclick="'AxiosCart.quickview_product(`@Url.RouteUrl("QuickView-Product")/' + Model.Id + '`);return false;'">
<b-icon icon="search"></b-icon>
<span>@Loc["Products.QuickView"]</span>
</a>
</div>
- <b-card-body>
+ <div class="card-body">
<h3 class="card-title mb-0">
<a :href="Model.Url">
{{Model.Name}}
@@ -116,32 +116,32 @@
<div class="attr-value">
<template v-for="spec in item.Values">
<template v-if="item.AttributeControlType == 1 || item.AttributeControlType == 2 || item.AttributeControlType == 3 || item.AttributeControlType == 50">
- <b-button variant="light" size="sm" class="name" :href="'/'+ Model.SeName + '?' + item.Name + '=' + spec.Name">
+ <a class="btn btn-sm btn-light name" :href="'/'+ Model.SeName + '?' + item.Name + '=' + spec.Name">
{{spec.Name}}
- </b-button>
+ </a>
</template>
<template v-if="item.AttributeControlType == 40">
<template v-if="spec.PictureModel.FullSizeImageUrl !== null">
- <b-button variant="light" size="sm" class="name color-container" :title="spec.Name" @@click="productImage($event)" :data-href="spec.PictureModel.FullSizeImageUrl">
+ <a class="btn btn-sm btn-light name color-container" :title="spec.Name" @@click="productImage($event)" :data-href="spec.PictureModel.FullSizeImageUrl">
<span class="color" :style="'background-color:' + spec.ColorSquaresRgb">&nbsp;</span>
- </b-button>
+ </a>
</template>
<template v-else>
- <b-button variant="light" size="sm" class="name color-container" :title="spec.Name" :href="'/'+ Model.SeName + '?' + item.Name + '=' + spec.Name">
+ <a class="btn btn-sm btn-light name color-container" :title="spec.Name" :href="'/'+ Model.SeName + '?' + item.Name + '=' + spec.Name">
<span class="color" :style="'background-color:' + spec.ColorSquaresRgb">&nbsp;</span>
- </b-button>
+ </a>
</template>
</template>
<template v-if="item.AttributeControlType == 45">
<template v-if="spec.PictureModel.FullSizeImageUrl !== null">
- <b-button variant="light" size="sm" class="p-1 name image-container" v-on:click='productImage' :data-href="spec.PictureModel.FullSizeImageUrl">
+ <a class="btn btn-sm btn-light p-1 name image-container" v-on:click='productImage' :data-href="spec.PictureModel.FullSizeImageUrl">
<img :src="spec.ImageSquaresPictureModel?.ImageUrl" :alt="spec.Name" />
- </b-button>
+ </a>
</template>
<template v-else>
- <b-button variant="light" size="sm" class="p-1 name image-container" :href="'/'+ Model.SeName + '?' + item.Name + '=' + spec.Name">
+ <a class="btn btn-sm btn-light p-1 name image-container" :href="'/'+ Model.SeName + '?' + item.Name + '=' + spec.Name">
<img :src="spec.ImageSquaresPictureModel?.ImageUrl" alt="spec.Name" />
- </b-button>
+ </a>
</template>
</template>
</template>
@@ -159,21 +159,21 @@
<b-button-group>
<template v-if="!Model.ProductPrice.DisableWishlistButton && Model.ProductType == 0">
<template v-if="!Model.ShowQty">
- <b-button v-b-tooltip.hover.bottom title="@Loc["ShoppingCart.AddToWishlist"]" class="btn btn-secondary" :onclick="'AxiosCart.addproducttocart_catalog(`@Url.RouteUrl("AddProductCatalog")/' + Model.Id +'/2?quantity=1`, `' + Model.ShowQty +'`,`' + Model.Id + '`);return false;'">
+ <button v-b-tooltip.hover.bottom title="@Loc["ShoppingCart.AddToWishlist"]" class="btn btn-secondary" :onclick="'AxiosCart.addproducttocart_catalog(`@Url.RouteUrl("AddProductCatalog")/' + Model.Id +'/2?quantity=1`, `' + Model.ShowQty +'`,`' + Model.Id + '`);return false;'">
<span class="sr-only">AddToWishlist</span>
<b-icon icon="heart"></b-icon>
- </b-button>
+ </button>
</template>
<template v-else>
- <b-button v-b-tooltip.hover.bottom title="@Loc["ShoppingCart.AddToWishlist"]" class="btn btn-secondary" :onclick="'AxiosCart.addproducttocart_catalog(`@Url.RouteUrl("AddProductCatalog")/' + Model.Id +'/2`, `' + Model.ShowQty +'`,`' + Model.Id + '`);return false;'">
+ <button v-b-tooltip.hover.bottom title="@Loc["ShoppingCart.AddToWishlist"]" class="btn btn-secondary" :onclick="'AxiosCart.addproducttocart_catalog(`@Url.RouteUrl("AddProductCatalog")/' + Model.Id +'/2`, `' + Model.ShowQty +'`,`' + Model.Id + '`);return false;'">
<b-icon icon="heart"></b-icon>
<span class="sr-only">AddToWishlist</span>
- </b-button>
+ </button>
</template>
</template>
<template v-if="!Model.ProductPrice.DisableBuyButton">
<template v-if="!Model.ShowQty">
- <b-button variant="info" class="justify-content-center w-100" :onclick="'AxiosCart.addproducttocart_catalog(`@Url.RouteUrl("AddProductCatalog")/' + Model.Id +'/1?quantity=1`, `' + Model.ShowQty +'`,`' + Model.Id + '`);return false;'">
+ <button class="btn btn-info justify-content-center w-100" :onclick="'AxiosCart.addproducttocart_catalog(`@Url.RouteUrl("AddProductCatalog")/' + Model.Id +'/1?quantity=1`, `' + Model.ShowQty +'`,`' + Model.Id + '`);return false;'">
<b-icon icon="cart2" class="mx-auto d-sm-none d-block"></b-icon>
<span class="add-cart-text d-sm-block d-none">
<template v-if="Model.ProductType == 20">
@@ -189,10 +189,10 @@
</template>
</span>
<span class="sr-only">AddToCart</span>
- </b-button>
+ </button>
</template>
<template v-else>
- <b-button variant="info" class="justify-content-center w-100" :onclick="'AxiosCart.addproducttocart_catalog(`@Url.RouteUrl("AddProductCatalog")/' + Model.Id +'/1`, `' + Model.ShowQty +'`,`' + Model.Id + '`);return false;'">
+ <button class="btn btn-info justify-content-center w-100" :onclick="'AxiosCart.addproducttocart_catalog(`@Url.RouteUrl("AddProductCatalog")/' + Model.Id +'/1`, `' + Model.ShowQty +'`,`' + Model.Id + '`);return false;'">
<b-icon icon="cart2" class="mx-auto d-sm-none d-block"></b-icon>
<span class="add-cart-text d-sm-block d-none">
<template v-if="Model.ProductType == 20">
@@ -208,25 +208,25 @@
</template>
</span>
<span class="sr-only">AddToCart</span>
- </b-button>
+ </button>
</template>
</template>
<template v-else>
<template v-if="Model.ProductType == 40">
- <b-button variant="info" class="justify-content-center w-100" :onclick="'AxiosCart.addproducttocart_catalog(`@Url.RouteUrl("AddProductCatalog")/' + Model.Id +'/1?quantity=1`, `' + Model.ShowQty +'`,`' + Model.Id + '`);return false;'">
+ <button class="btn btn-info justify-content-center w-100" :onclick="'AxiosCart.addproducttocart_catalog(`@Url.RouteUrl("AddProductCatalog")/' + Model.Id +'/1?quantity=1`, `' + Model.ShowQty +'`,`' + Model.Id + '`);return false;'">
<b-icon icon="hammer" class="mx-auto d-sm-none d-block"></b-icon>
<span class="add-cart-text d-sm-block d-none">@Loc["ShoppingCart.Bids"]</span>
<span class="sr-only">AddToCart</span>
- </b-button>
+ </button>
</template>
</template>
<template v-if="!Model.ProductPrice.DisableAddToCompareListButton && Model.ProductType == 0">
- <b-button v-b-tooltip.hover.bottom title="@Loc["ShoppingCart.AddToCompareList"]" class="btn btn-secondary" :onclick="'AxiosCart.addproducttocomparelist(`@Url.RouteUrl("AddProductToCompare")/' + Model.Id + '`);return false;'">
+ <button v-b-tooltip.hover.bottom title="@Loc["ShoppingCart.AddToCompareList"]" class="btn btn-secondary" :onclick="'AxiosCart.addproducttocomparelist(`@Url.RouteUrl("AddProductToCompare")/' + Model.Id + '`);return false;'">
<span class="sr-only">AddToCompareList</span>
<b-icon icon="shuffle"></b-icon>
- </b-button>
+ </button>
</template>
</b-button-group>
- </b-card-body>
- </b-card>
+ </div>
+ </article>
</div>
\ No newline at end of file