'; //print_r($products); @endphp
ProductID | Sort | Edit | @foreach($columnAttributes as $colAtr) @if($colAtr->ColumnWidth != '' || $colAtr->ColumnWidth != 0) @php $mywidth = 'width: '. round($colAtr->ColumnWidth * 3.779528). 'px !important'; @endphp @else @php $mywidth = 'width: '. round(20 * 3.779528). 'px !important'; @endphp @endif @if($colAtr->InstanceAttribute == 1){{$colAtr->AttributeName}}
@if(!$isInhertingCatAttributes) @endif |
@elseif($colAtr->isVirtualAttribute == 1 && $colAtr->isCatalogAttribute == 1)
{{$colAtr->AttributeName}}
@if(!$isInhertingCatAttributes) @endif |
@elseif($colAtr->isVirtualAttribute == 0 && $colAtr->isCatalogAttribute == 1)
{{$colAtr->AttributeName}}
@if(!$isInhertingCatAttributes) @endif |
@elseif($colAtr->isVirtualAttribute == 1)
{{$colAtr->AttributeName}}
@if(!$isInhertingCatAttributes) @endif |
@else
{{$colAtr->AttributeName}}
@if(!$isInhertingCatAttributes) @endif @if($colAtr->AttributePrefix != '') @endif @if($colAtr->AttributeSuffix != '') @endif |
@endif
@endforeach
Action | ||
---|---|---|---|---|---|---|---|---|---|---|
{{$product->ProductID}} | @foreach($columnAttributes as $colAtr) @if(isset($product->attributes[$colAtr->AttributeColumnName])) @php $arr = $product->attributes[$colAtr->AttributeColumnName]; @endphp @if($colAtr->ColumnWidth != '' || $colAtr->ColumnWidth != 0) @php $mywidth = 'width: '. round($colAtr->ColumnWidth * 3.779528). 'px !important'; @endphp @else @php $mywidth = 'width: '. round(20 * 3.779528). 'px !important'; @endphp @endif @php $AttributeID = $arr['AttributeID']; $colName = $arr['colName']; $val = $arr['Value']; $cleansedValue = $arr['CleansedValue']; $imageStr = ''; $originalImage = $arr['OriginalImage']; $i = 0; foreach($originalImage as $oI) { $myOriginalImage = $oI->ImagePath; $sizeCss = 'width: 300px;'; $width = $oI->ImageWidth; $height = $oI->ImageHeight; if($width == $height) { $sizeCss = 'width: 300px;'; } else if($width > $height) { $sizeCss = 'width: 300px;'; } else { $sizeCss = 'height: 300px;'; } $imageStr .= ''.$arr['Image'][$i].''; $i++; } if($colAtr->OutputAsImage == "1") { $inputWidth = "100%"; } else { $inputWidth = "100%"; } @endphp @if($colAtr->AllowMultiLanguage == "1") |
@if($val == '')
@php $val = '[{}]'; @endphp
@endif
@php
$mval = json_decode($val);
@endphp
@foreach($catalogLanguages as $language)
@foreach($mval as $newVal)
@if($language->DisplayInCollections)
@if($language->RegionName != '')
@php $title = $language->LanguageDescription .' - '. $language->LanguageLocalName .' - '. $language->RegionName; @endphp
@else
@php $title = $language->LanguageDescription .' - '. $language->LanguageLocalName @endphp
@endif
@if($language->FlagPath == '')
{{$language->LanguageSubtag}}
@else
@endif
@endforeach
@endforeach
{!!$imageStr!!}
|
@else
@if($colAtr->datatype == 'enum')
@php
$set = explode(",",$colAtr->setValues);
$setvals = explode(",",$val);
$newsetval = [];
foreach($setvals as $sv)
{
$sv = "'" . $sv . "'";
$newsetval[] = $sv;
}
@endphp
@foreach($set as $sv)
@php $newVal = trim(str_replace("'","",$sv)); @endphp
@if(in_array($sv, $newsetval))
{{$newVal}}
@else
@endif
{!!$imageStr!!}
@endforeach
|
@elseif($colAtr->datatype == 'set')
@php $set = explode(",",$colAtr->setValues); $setvals = explode(",",$val); $newsetval = []; foreach($setvals as $sv) { $sv = "'" . $sv . "'"; $newsetval[] = $sv; } @endphp {!!$imageStr!!} | @else @if($colAtr->AllowHTML !=1 && $colAtr->isVirtualAttribute != 1) @if($colAtr->isTextArea ==1)@if($cleansedValue != $val) @endif | @else@if($cleansedValue != $val) @endif {!!$imageStr!!} | @endif @else
{{ mb_strimwidth($arr['Value'], 0, 25,'...')}} @if($cleansedValue != $val) @endif {!!$imageStr!!} |
@endif
@endif
@endif
@else
@endif @endforeach |