-
Notifications
You must be signed in to change notification settings - Fork 810
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Product detail ui fixes 159293281 (#206)
Why? Feature: 1.Work on the product detail page for mobile. 2. Work on the write review page for the mobile. 3. Work on the search list page for the mobile. 4. Work on the product detail page mobile slider. This change addresses the need by: In this all changes are done. [delivers #159293281]
- Loading branch information
Showing
26 changed files
with
538 additions
and
328 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
131 changes: 101 additions & 30 deletions
131
...app/product/components/product-detail-page/product-details/product-details.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,108 @@ | ||
<div itemscope itemtype="https://schema.org/Product" *ngIf="product != null" class="row pt-5"> | ||
<div class="col-12 col-md-5"> | ||
<app-image-container [images]="images" class="col-12" [selectedImage]="images[0]"> | ||
</app-image-container> | ||
<div *ngIf="!isMobile"> | ||
<div itemscope itemtype="https://schema.org/Product" *ngIf="product != null" class="row pt-5"> | ||
<div class="col-12 col-md-5"> | ||
<app-image-container [images]="images" class="col-12" [selectedImage]="images[0]"> | ||
</app-image-container> | ||
</div> | ||
<div class="col-md-7 col-12"> | ||
<app-product-price-info [product]="product" (onAddToCart)="addToCart($event)" (onMarkAsFavorites)="markAsFavorite()" (selectedVariant)="selectedVariant($event)" | ||
class="row"> | ||
</app-product-price-info> | ||
</div> | ||
</div> | ||
<div class="col-md-7 col-12"> | ||
<app-product-price-info [product]="product" (onAddToCart)="addToCart($event)" (onMarkAsFavorites)="markAsFavorite()" (selectedVariant)="selectedVariant($event)" | ||
class="row"> | ||
</app-product-price-info> | ||
<div class="row"> | ||
<div class="col-12"> | ||
<h1 class="mt-2"> | ||
Description | ||
</h1> | ||
<app-product-description [description]="product.description" class="row"> | ||
</app-product-description> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-12"> | ||
<h1 class="mt-2"> | ||
Description | ||
</h1> | ||
<app-product-description [description]="product.description" class="row"> | ||
</app-product-description> | ||
<div *ngIf="similarProducts$ | async; let similarProducts"> | ||
<div class="slider" *ngIf="similarProducts.length >0"> | ||
<h2> | ||
Similar products | ||
</h2> | ||
<app-product-slider [productsList]="similarProducts"></app-product-slider> | ||
</div> | ||
</div> | ||
</div> | ||
<div *ngIf="similarProducts$ | async; let similarProducts"> | ||
<div class="slider" *ngIf="similarProducts.length >0"> | ||
<h2> | ||
Similar products | ||
</h2> | ||
<app-product-slider [productsList]="similarProducts"></app-product-slider> | ||
<div *ngIf="relatedProducts$ | async; let relatedProducts"> | ||
<div class="slider" *ngIf="relatedProducts.length >0"> | ||
<h2> | ||
Related products | ||
</h2> | ||
<app-product-slider [productsList]="relatedProducts"></app-product-slider> | ||
</div> | ||
</div> | ||
<app-product-review [product]="product" [reviewList]='reviewProducts$ | async'></app-product-review> | ||
|
||
</div> | ||
<div *ngIf="relatedProducts$ | async; let relatedProducts"> | ||
<div class="slider" *ngIf="relatedProducts.length >0"> | ||
<h2> | ||
Related products | ||
</h2> | ||
<app-product-slider [productsList]="relatedProducts"></app-product-slider> | ||
<div *ngIf="isMobile"> | ||
<div itemscope itemtype="https://schema.org/Product" *ngIf="product != null" class="row pt-2"> | ||
<div class="col-12 "> | ||
<h1 itemprop="name" class="title">{{product.name}}</h1> | ||
<!-- <div class="product-subtitle"> | ||
<a href="#"> | ||
By | ||
#To-do read from product properties. | ||
<span itemprop="brand"></span> | ||
</a> | ||
</div> --> | ||
</div> | ||
<div class="col-12"> | ||
<div class="row"> | ||
<div class="product-subtitle col-5 pr-0"> | ||
<a href="#"> | ||
By : | ||
<span> ABC </span> | ||
</a> | ||
</div> | ||
<div class="product-header-extras col-7 p-0"> | ||
<div class="ugc pr-3"> | ||
<a class="hide-phone js-revScrollTo"> | ||
<ngx-input-star-rating disabled="true" value="{{product.avg_rating }}" class="rating" required></ngx-input-star-rating> | ||
{{product.reviews_count }} | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="col-12 col-md-5"> | ||
<app-image-container [images]="images" [isMobile]='isMobile' class="col-12" [selectedImage]="images[0]"> | ||
</app-image-container> | ||
</div> | ||
<div class="col-md-7 col-12"> | ||
<app-product-price-info [product]="product" [isMobile]='isMobile' (onAddToCart)="addToCart($event)" (onMarkAsFavorites)="markAsFavorite()" (selectedVariant)="selectedVariant($event)" | ||
class="row"> | ||
</app-product-price-info> | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-12"> | ||
<h1 class="mt-2"> | ||
Description | ||
</h1> | ||
<app-product-description [description]="product.description" class="row"> | ||
</app-product-description> | ||
</div> | ||
</div> | ||
<div *ngIf="similarProducts$ | async; let similarProducts"> | ||
<div class="slider" *ngIf="similarProducts.length >0"> | ||
<h2> | ||
Similar products | ||
</h2> | ||
<app-product-slider [productsList]="similarProducts"></app-product-slider> | ||
</div> | ||
</div> | ||
<div *ngIf="relatedProducts$ | async; let relatedProducts"> | ||
<div class="slider" *ngIf="relatedProducts.length >0"> | ||
<h2> | ||
Related products | ||
</h2> | ||
<app-product-slider [productsList]="relatedProducts"></app-product-slider> | ||
</div> | ||
</div> | ||
<app-product-review [product]="product" [reviewList]='reviewProducts$ | async'></app-product-review> | ||
|
||
</div> | ||
<app-product-review [product]="product" [reviewList]='reviewProducts$ | async'></app-product-review> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.