@if(product){ @if((option?.product?.encourage_order && product.encourage_order) ||
(option?.product?.encourage_view && product.encourage_view)){
@if(option?.product?.encourage_order && product.encourage_order){
-
{{ ordersCount }} {{ 'customers_ordered' | translate }}
} @if(option?.product?.encourage_view && product.encourage_view){
-
{{ viewsCount }} {{ 'active_view_in_this_item' | translate }}
}
}
{{ selectedVariation ? selectedVariation.name : product.name }}
{{ (selectedVariation ? selectedVariation.sale_price : product.sale_price) | currencySymbol }}
@if(selectedVariation ? selectedVariation.discount : product.discount){
{{ (selectedVariation ? selectedVariation.price : product.price) | currencySymbol }}
{{ (selectedVariation ? selectedVariation.discount : product.discount) }}% {{ 'off' |
translate }}
}
@if(!(product && product.is_external)){
{{ product.reviews_count }} {{ 'review' | translate }}
}
@if(product.short_description){
@if(product && product.read_document ){
{{product.read_button_text || 'read'}}
}
} @if(product && product.status){
@if(product.sale_starts_at && product.sale_expired_at){
} @if(product.wholesales && product.wholesales.length){
{{ 'Total Price:' | translate }}
{{ totalPrice | currencySymbol }}
} @if(!(product && product.is_external)){
}
@if(!(product && product.is_external)){ @if(((selectedVariation && selectedVariation.status &&
selectedVariation.quantity >= productQty) || (!selectedVariation && product.quantity >=
productQty))){
{{ 'add_to_cart' | translate }}
}@else {
@if(((selectedVariation && selectedVariation.status && selectedVariation.quantity >= productQty)
|| (!selectedVariation && product.quantity >= productQty))){
} {{ ((selectedVariation && selectedVariation.status && selectedVariation.quantity < productQty
|| (!selectedVariation && product.quantity < productQty)) ? 'out_of_stock' : 'add_to_cart') |
translate }}
}
= productQty) || (!selectedVariation && product.quantity >= productQty)) ? false : true"
(click)="((selectedVariation && selectedVariation.status && selectedVariation.quantity >= productQty) || (!selectedVariation && product.quantity >= productQty)) && addToCart(product, true)"
>
{{ 'buy_now' | translate }}
}@else {
{{ product.external_button_text ? product.external_button_text : 'buy_now' | translate }}
}
} @if(!(product && product.status)){
{{ 'currently_item_unavailable' | translate }}
} }