product

{{ 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 }} } @if (selectedVariation ? selectedVariation.discount : product.discount) { }

{{ 'product_details' | translate }}:

    @if (product.sku) {
  • {{ 'sku' | translate }}: {{ product.sku }}
  • } @if (product.stock_status) {
  • {{ 'stock_status' | translate }}: {{ product.stock_status! | titleCase }}
  • } @if (product.quantity > 0) {
  • {{ 'quantity' | translate }}: {{ product.quantity }} {{ 'items_left' | translate }}
  • }
@if (product?.wholesales?.length && product?.wholesale_price_type) { @for (wholesale of product?.wholesales; track wholesale) { }
{{ 'Min QTY' | translate }} {{ 'Max QTY' | translate }} {{ (product?.wholesale_price_type === 'fixed' ? 'Unit Price' : 'Percentage' ) | translate }}
{{ wholesale.min_qty }} {{ wholesale.max_qty }} {{ (product?.wholesale_price_type === 'fixed'? (wholesale.value | currencySymbol) : wholesale.value +'% Off') }}

{{ 'Total Price:' | translate }} {{ totalPrice | currencySymbol }}

} @if (product.attributes?.length) {
@for (attribute of product?.attributes; track attribute; let i = $index) {

{{ attribute?.name }} : {{ attribute?.selected_value }}

@if (attribute?.style === 'dropdown') { } @else { @if (attribute?.style === 'radio') {
@for (value of attribute.attribute_values; track value; let indexx = $index) { @if (attributeValues?.includes(value.id)) {
} }
} @else { @if (attribute?.style === 'color') {
    @for (value of attribute.attribute_values; track value) { @if (attributeValues?.includes(value.id)) {
  • } }
} @else {
    @for (value of attribute.attribute_values; track value) { @if (attributeValues?.includes(value.id)) {
  • @if (attribute?.style === 'image') { image } @else { {{ value?.value }} }
  • } }
} } } }
}
@if (!product?.is_external) { @if ((selectedVariation && selectedVariation?.stock_status === 'in_stock' || product?.stock_status === 'in_stock' && product.type === 'simple')) { {{ 'add_to_cart' | translate }} } @else { {{ ((selectedVariation?.stock_status === 'out_of_stock' || product.stock_status === 'out_of_stock' ) ? 'out_of_stock' : 'add_to_cart') | translate }} } } @else { {{ product.external_button_text ? product.external_button_text : 'buy_now' | translate }} }