First upload
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
[{assign var="sTplName" value=$oView->getContentPageTpl()}]
|
||||
[{if $sTplName}]
|
||||
[{assign var=sRDFaUrl value=$oView->getLink()}]
|
||||
<div xmlns="http://www.w3.org/1999/xhtml"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
|
||||
xmlns:gr="http://purl.org/goodrelations/v1#"
|
||||
xmlns:foaf="http://xmlns.com/foaf/0.1/"
|
||||
xmlns:vcard="http://www.w3.org/2006/vcard/ns#"
|
||||
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
|
||||
xml:base="[{$sRDFaUrl}]">
|
||||
[{foreach from=$oView->getContentPageTpl() item=sTplName}]
|
||||
[{include file=$sTplName}]
|
||||
[{/foreach}]
|
||||
</div>
|
||||
[{/if}]
|
||||
@@ -0,0 +1,37 @@
|
||||
[{assign var=aExtends value=$oView->getBusinessEntityExtends()}]
|
||||
<div typeof="gr:BusinessEntity" about="[{$sRDFaUrl}]#companydata">
|
||||
<div property="gr:legalName vcard:fn" content="[{$oxcmp_shop->oxshops__oxcompany->value}]" datatype="xsd:string"></div>
|
||||
<div rel="vcard:adr">
|
||||
<div typeof="vcard:Address">
|
||||
<div property="vcard:country-name" content="[{$oxcmp_shop->oxshops__oxcountry->value}]"></div>
|
||||
<div property="vcard:locality" content="[{$oxcmp_shop->oxshops__oxcity->value}]"></div>
|
||||
<div property="vcard:postal-code" content="[{$oxcmp_shop->oxshops__oxzip->value}]"></div>
|
||||
<div property="vcard:street-address" content="[{$oxcmp_shop->oxshops__oxstreet->value}]"></div>
|
||||
</div>
|
||||
</div>
|
||||
[{if $aExtends.sRDFaLatitude && $aExtends.sRDFaLongitude}]
|
||||
<div rel="vcard:geo">
|
||||
<div typeof="rdf:Description">
|
||||
<div property="vcard:latitude" content="[{$aExtends.sRDFaLatitude}]" datatype="xsd:float"></div>
|
||||
<div property="vcard:longitude" content="[{$aExtends.sRDFaLongitude}]" datatype="xsd:float"></div>
|
||||
</div>
|
||||
</div>
|
||||
[{/if}]
|
||||
<div property="vcard:tel" content="[{$oxcmp_shop->oxshops__oxtelefon->value}]"></div>
|
||||
<div property="vcard:fax" content="[{$oxcmp_shop->oxshops__oxtelefax->value}]"></div>
|
||||
[{if $aExtends.sRDFaLogoUrl}]
|
||||
<div rel="vcard:logo foaf:logo" resource="[{$aExtends.sRDFaLogoUrl}]"></div>
|
||||
[{/if}]
|
||||
[{if $aExtends.sRDFaDUNS}]
|
||||
<div property="gr:hasDUNS" content="[{$aExtends.sRDFaDUNS}]" datatype="xsd:string"></div>
|
||||
[{/if}]
|
||||
[{if $aExtends.sRDFaISIC}]
|
||||
<div property="gr:hasISICv4" content="[{$aExtends.sRDFaISIC}]" datatype="xsd:int"></div>
|
||||
[{/if}]
|
||||
[{if $aExtends.sRDFaGLN}]
|
||||
<div property="gr:hasGlobalLocationNumber" content="[{$aExtends.sRDFaGLN}]" datatype="xsd:string"></div>
|
||||
[{/if}]
|
||||
[{if $aExtends.sRDFaNAICS}]
|
||||
<div property="gr:hasNAICS" content="[{$aExtends.sRDFaNAICS}]" datatype="xsd:int"></div>
|
||||
[{/if}]
|
||||
</div>
|
||||
@@ -0,0 +1,46 @@
|
||||
[{assign var="currency" value=$oView->getActCurrency()}]
|
||||
[{foreach from=$oView->getNotMappedToRDFaDeliverySets() item=oNewDeliveryMethod}]
|
||||
<div about="[{$sRDFaUrl}]#[{$oNewDeliveryMethod->oxdeliveryset__oxtitle->value|strip:''|cat:'_'|cat:$oNewDeliveryMethod->oxdeliveryset__oxid->value}]" typeof="gr:DeliveryMethod">
|
||||
<div property="rdfs:label" content="[{$oNewDeliveryMethod->oxdeliveryset__oxtitle->value}]"></div>
|
||||
</div>
|
||||
[{/foreach}]
|
||||
|
||||
[{assign var="oDelChargeSpecs" value=$oView->getDeliveryChargeSpecs()}]
|
||||
[{foreach from=$oDelChargeSpecs item=oDelChargeSpec}]
|
||||
<div typeof="gr:DeliveryChargeSpecification" about="[{$sRDFaUrl}]#[{$oDelChargeSpec->getId()}]">
|
||||
<div property="rdfs:comment" content="[{$oDelChargeSpec->oxdelivery__oxtitle->value}]" [{if $oView->getActiveLangAbbr()}] xml:lang="[{$oView->getActiveLangAbbr()}]"[{/if}]></div>
|
||||
[{assign var="oPriceValidity" value=$oView->getRdfaPriceValidity()}]
|
||||
<div property="gr:validFrom" content="[{$oPriceValidity.validfrom}]" datatype="xsd:dateTime"></div>
|
||||
<div property="gr:validThrough" content="[{$oPriceValidity.validthrough}]" datatype="xsd:dateTime"></div>
|
||||
[{if $oView->getRdfaVAT()}]
|
||||
<div property="gr:valueAddedTaxIncluded" content="[{if $oView->getRdfaVAT() eq 1}]true[{else}]false[{/if}]" datatype="xsd:boolean"></div>
|
||||
[{/if}]
|
||||
<div property="gr:hasCurrency" content="[{$currency->name}]" datatype="xsd:string"></div>
|
||||
<div property="gr:hasCurrencyValue" content="[{$oDelChargeSpec->oxdelivery__oxaddsum->value}]" datatype="xsd:float"></div>
|
||||
[{if $oDelChargeSpec->oxdelivery__oxdeltype->value eq "p"}]
|
||||
<div rel="gr:eligibleTransactionVolume">
|
||||
<div typeof="gr:UnitPriceSpecification">
|
||||
<div property="gr:hasUnitOfMeasurement" content="C62" datatype="xsd:string"></div>
|
||||
<div property="gr:hasCurrency" content="[{$currency->name}]" datatype="xsd:string"></div>
|
||||
[{if $oDelChargeSpec->oxdelivery__oxparam->value}]
|
||||
<div property="gr:hasMinCurrencyValue" content="[{$oDelChargeSpec->oxdelivery__oxparam->value}]" datatype="xsd:float"></div>
|
||||
[{/if}]
|
||||
[{if $oDelChargeSpec->oxdelivery__oxparamend->value}]
|
||||
<div property="gr:hasMaxCurrencyValue" content="[{$oDelChargeSpec->oxdelivery__oxparamend->value}]" datatype="xsd:float"></div>
|
||||
[{/if}]
|
||||
</div>
|
||||
</div>
|
||||
[{/if}]
|
||||
[{assign var=oDeliverySetMethods value=$oDelChargeSpec->deliverysetmethods}]
|
||||
[{foreach from=$oDeliverySetMethods item=oDelSetMethod}]
|
||||
[{if $oDelSetMethod->oxdeliveryset__oxobjectid->value}]
|
||||
<div rel="gr:appliesToDeliveryMethod" resource="http://purl.org/goodrelations/v1#[{$oDelSetMethod->oxdeliveryset__oxobjectid->value}]"></div>
|
||||
[{else}]
|
||||
<div rel="gr:availableDeliveryMethods" resource="[{$sRDFaUrl}]#[{$oDelSetMethod->oxdeliveryset__oxtitle->value|strip:''|cat:'_'|cat:$oDelSetMethod->oxdeliveryset__oxid->value}]"></div>
|
||||
[{/if}]
|
||||
[{/foreach}]
|
||||
[{foreach from=$oDelChargeSpec->getCountriesISO() item=sRegion}]
|
||||
<div rel="gr:eligibleRegions" content="[{$sRegion}]" datatype="xsd:string"></div>
|
||||
[{/foreach}]
|
||||
</div>
|
||||
[{/foreach}]
|
||||
@@ -0,0 +1,8 @@
|
||||
[{foreach from=$oView->getNotMappedToRDFaPayments() item=oNewPaymentMethod}]
|
||||
<div about="[{$sRDFaUrl}]#[{$oNewPaymentMethod->oxpayments__oxdesc->value|strip:''|cat:'_'|cat:$oNewPaymentMethod->oxpayments__oxid->value}]" typeof="gr:PaymentMethod">
|
||||
<div property="rdfs:label" content="[{$oNewPaymentMethod->oxpayments__oxdesc->value}]"></div>
|
||||
[{if $oNewPaymentMethod->oxpayments__oxlongdesc->value != ""}]
|
||||
<div property="rdfs:comment" content="[{$oNewPaymentMethod->oxpayments__oxlongdesc->getRawValue()|strip_tags|strip}]"></div>
|
||||
[{/if}]
|
||||
</div>
|
||||
[{/foreach}]
|
||||
@@ -0,0 +1,96 @@
|
||||
[{* Offering *}]
|
||||
[{assign var="currency" value=$oView->getActCurrency()}]
|
||||
[{assign var="oProduct" value=$oView->getProduct()}]
|
||||
[{assign var="sRDFaUrl" value=$oView->getLink()}]
|
||||
|
||||
<div xmlns="http://www.w3.org/1999/xhtml"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
|
||||
xmlns:gr="http://purl.org/goodrelations/v1#"
|
||||
xmlns:foaf="http://xmlns.com/foaf/0.1/"
|
||||
xmlns:v="http://rdf.data-vocabulary.org/#"
|
||||
xml:base="[{$sRDFaUrl}]"
|
||||
typeof="gr:Offering" about="[{$sRDFaUrl}]#offeringdata">
|
||||
<div rel="foaf:page" resource="[{$sRDFaUrl}]"></div>
|
||||
[{oxifcontent ident=$oView->getRDFaBusinessEntityLoc() object="oCont"}]
|
||||
<div rev="gr:offers" resource="[{$oCont->getLink()}]#companydata"></div>
|
||||
[{/oxifcontent}]
|
||||
[{if $oProduct->oxarticles__oxtitle->value}]
|
||||
<div property="gr:name" content="[{$oProduct->oxarticles__oxtitle->value|strip_tags|strip}]" [{if $oView->getActiveLangAbbr()}] xml:lang="[{$oView->getActiveLangAbbr()}]"[{/if}]></div>
|
||||
[{/if}]
|
||||
[{oxhasrights ident="SHOWLONGDESCRIPTION"}]
|
||||
[{assign var="oLongdesc" value=$oProduct->getLongDescription()}]
|
||||
[{if $oLongdesc->value}]
|
||||
<div property="gr:description" content="[{$oLongdesc->value|strip_tags|strip}]" [{if $oView->getActiveLangAbbr()}] xml:lang="[{$oView->getActiveLangAbbr()}]"[{/if}]></div>
|
||||
[{/if}]
|
||||
[{if !$oProduct->oxarticles__oxbundleid->value}]
|
||||
<div property="gr:hasStockKeepingUnit" content="[{$oProduct->oxarticles__oxartnum->value}]" datatype="xsd:string"></div>
|
||||
[{if $oProduct->oxarticles__oxmpn->value}]
|
||||
<div property="gr:hasMPN" content="[{$oProduct->oxarticles__oxmpn->value}]" datatype="xsd:string"></div>
|
||||
[{/if}]
|
||||
[{/if}]
|
||||
[{/oxhasrights}]
|
||||
[{include file="rdfa/details/inc/object.tpl"}]
|
||||
[{if $oView->getRDFaNormalizedRating()}]
|
||||
<div rel="v:hasReview">
|
||||
<div typeof="v:Review-aggregate">
|
||||
[{assign var="aRDFaRating" value=$oView->getRDFaNormalizedRating()}]
|
||||
<div property="v:count" content="[{$aRDFaRating.count}]" datatype="xsd:float"></div>
|
||||
<div property="v:rating" content="[{$aRDFaRating.value}]" datatype="xsd:float"></div>
|
||||
</div>
|
||||
</div>
|
||||
[{/if}]
|
||||
[{if $oView->showRDFaProductStock()}]
|
||||
<div rel="gr:hasInventoryLevel">
|
||||
<div typeof="gr:QuantitativeValue">
|
||||
<div property="gr:hasMinValue" content="[{if $oProduct->getStockStatus() == -1}]0[{else}][{$oProduct->oxarticles__oxstock->value}][{/if}]" datatype="xsd:float"></div>
|
||||
<div property="gr:hasUnitOfMeasurement" content="C62" datatype="xsd:string"></div>
|
||||
</div>
|
||||
</div>
|
||||
[{/if}]
|
||||
[{oxhasrights ident="SHOWARTICLEPRICE"}]
|
||||
[{include file="rdfa/details/inc/price.tpl" oDetailsProduct=$oProduct}]
|
||||
[{/oxhasrights}]
|
||||
[{if $oProduct->getDeliveryDate()}]
|
||||
<div property="gr:validFrom" content="[{$oProduct->getDeliveryDate()}]T00:00:00" datatype="xsd:dateTime"></div>
|
||||
[{elseif $oView->getRDFaValidityPeriod('iRDFaOfferingValidity')}]
|
||||
[{assign var="aRDFaValidity" value=$oView->getRDFaValidityPeriod('iRDFaOfferingValidity')}]
|
||||
<div property="gr:validFrom" content="[{$aRDFaValidity.from}]" datatype="xsd:dateTime"></div>
|
||||
<div property="gr:validThrough" content="[{$aRDFaValidity.through}]" datatype="xsd:dateTime"></div>
|
||||
[{/if}]
|
||||
[{if $oView->getRDFaBusinessFnc()}]
|
||||
<div rel="gr:hasBusinessFunction" resource="http://purl.org/goodrelations/v1#[{$oView->getRDFaBusinessFnc()}]"></div>
|
||||
[{/if}]
|
||||
[{if $oView->getRDFaCustomers()}]
|
||||
[{foreach from=$oView->getRDFaCustomers() item=Customer}]
|
||||
<div rel="gr:eligibleCustomerTypes" resource="http://purl.org/goodrelations/v1#[{$Customer}]"></div>
|
||||
[{/foreach}]
|
||||
[{/if}]
|
||||
[{if $oViewConf->getCountryList()}]
|
||||
[{foreach from=$oViewConf->getCountryList() item=oRegion}]
|
||||
<div property="gr:eligibleRegions" content="[{$oRegion->oxcountry__oxisoalpha2->value}]" datatype="xsd:string"></div>
|
||||
[{/foreach}]
|
||||
[{/if}]
|
||||
[{oxhasrights ident="SHOWARTICLEPRICE"}]
|
||||
[{include file="rdfa/details/inc/payment.tpl"}]
|
||||
[{if $oProduct->oxarticles__oxfreeshipping->value}]
|
||||
<div rel="gr:hasPriceSpecification">
|
||||
<div typeof="gr:DeliveryChargeSpecification">
|
||||
[{if $oView->getRDFaValidityPeriod("iRDFaPriceValidity")}]
|
||||
[{assign var="aRDFaPValidity" value=$oView->getRDFaValidityPeriod("iRDFaPriceValidity")}]
|
||||
<div property="gr:validFrom" content="[{$aRDFaPValidity.from}]" datatype="xsd:dateTime"></div>
|
||||
<div property="gr:validThrough" content="[{$aRDFaPValidity.through}]" datatype="xsd:dateTime"></div>
|
||||
[{/if}]
|
||||
[{if $oView->getRDFaVAT() > 0}]
|
||||
<div property="gr:valueAddedTaxIncluded" content="[{if $oView->getRDFaVAT() == 1}]true[{else}]false[{/if}]" datatype="xsd:boolean"></div>
|
||||
[{/if}]
|
||||
<div property="gr:hasCurrency" content="[{$currency->name}]" datatype="xsd:string"></div>
|
||||
<div property="gr:hasCurrencyValue" content="0.00" datatype="xsd:float"></div>
|
||||
</div>
|
||||
</div>
|
||||
[{else}]
|
||||
[{include file="rdfa/details/inc/delivery.tpl"}]
|
||||
[{/if}]
|
||||
[{/oxhasrights}]
|
||||
<div rel="foaf:depiction v:image" resource="[{$oView->getActPicture()}]"></div>
|
||||
</div>
|
||||
@@ -0,0 +1,16 @@
|
||||
[{assign var=sContentName value=$oView->getRDFaDeliveryChargeSpecLoc()}]
|
||||
[{assign var=oDeliveryMethods value=$oView->getRDFaDeliverySetMethods()}]
|
||||
[{foreach from=$oDeliveryMethods item=oDelSetMethod}]
|
||||
[{if $oDelSetMethod->oxdeliveryset__oxobjectid->value}]
|
||||
<div rel="gr:availableDeliveryMethods" resource="http://purl.org/goodrelations/v1#[{$oDelSetMethod->oxdeliveryset__oxobjectid->value}]"></div>
|
||||
[{else}]
|
||||
[{oxifcontent ident=$sContentName object="oCont"}]
|
||||
<div rel="gr:availableDeliveryMethods" resource="[{$oCont->getLink()}]#[{$oDelSetMethod->oxdeliveryset__oxtitle->value|strip:''|cat:'_'|cat:$oDelSetMethod->oxdeliveryset__oxid->value}]"></div>
|
||||
[{/oxifcontent}]
|
||||
[{/if}]
|
||||
[{/foreach}]
|
||||
[{oxifcontent ident=$sContentName object="oCont"}]
|
||||
[{foreach from=$oView->getProductsDeliveryList() item=oDelivery}]
|
||||
<div rel="gr:hasPriceSpecification" resource="[{$oCont->getLink()}]#[{$oDelivery->getId()}]"></div>
|
||||
[{/foreach}]
|
||||
[{/oxifcontent}]
|
||||
@@ -0,0 +1,71 @@
|
||||
<div rel="gr:includes">
|
||||
[{if $oProduct->getVariants() || $oView->drawParentUrl()}]
|
||||
<div typeof="gr:ProductOrServiceModel" about="[{$sRDFaUrl}]#productdata">
|
||||
[{else}]
|
||||
<div typeof="gr:SomeItems" about="[{$sRDFaUrl}]#productdata">
|
||||
[{/if}]
|
||||
[{if $oProduct->oxarticles__oxtitle->value}]
|
||||
<div property="gr:name" content="[{$oProduct->oxarticles__oxtitle->value|strip_tags|strip}]" [{if $oView->getActiveLangAbbr()}] xml:lang="[{$oView->getActiveLangAbbr()}]"[{/if}]></div>
|
||||
[{/if}]
|
||||
[{oxhasrights ident="SHOWLONGDESCRIPTION"}]
|
||||
[{assign var="oLongdesc" value=$oProduct->getLongDescription()}]
|
||||
[{if $oLongdesc->value}]
|
||||
<div property="gr:description" content="[{$oLongdesc->value|strip_tags|strip}]" [{if $oView->getActiveLangAbbr()}] xml:lang="[{$oView->getActiveLangAbbr()}]"[{/if}]></div>
|
||||
[{/if}]
|
||||
[{/oxhasrights}]
|
||||
<div rel="foaf:depiction v:image" resource="[{$oView->getActPicture()}]"></div>
|
||||
<div property="gr:hasStockKeepingUnit" content="[{$oProduct->oxarticles__oxartnum->value}]" datatype="xsd:string"></div>
|
||||
[{if $oProduct->oxarticles__oxmpn->value}]
|
||||
<div property="gr:hasMPN" content="[{$oProduct->oxarticles__oxmpn->value}]" datatype="xsd:string"></div>
|
||||
[{/if}]
|
||||
[{if $oProduct->oxarticles__oxean->value}]
|
||||
<div property="gr:hasEAN_UCC-13" content="[{$oProduct->oxarticles__oxean->value}]" datatype="xsd:string"></div>
|
||||
[{elseif $oProduct->oxarticles__oxdistean->value}]
|
||||
<div property="gr:hasEAN_UCC-13" content="[{$oProduct->oxarticles__oxdistean->value}]" datatype="xsd:string"></div>
|
||||
[{/if}]
|
||||
[{if $oView->getRDFaGenericCondition()}]
|
||||
<div property="gr:condition" content="[{$oView->getRDFaGenericCondition()}]" xml:lang="en"></div>
|
||||
[{/if}]
|
||||
[{foreach from=$oView->getCatTreePath() item=oCatPath name="detailslocation"}]
|
||||
[{if $smarty.foreach.detailslocation.last}]
|
||||
<div property="gr:category" content="[{$oCatPath->oxcategories__oxtitle->value|strip_tags}]" [{if $oView->getActiveLangAbbr()}] xml:lang="[{$oView->getActiveLangAbbr()}]"[{/if}]></div>
|
||||
[{/if}]
|
||||
[{/foreach}]
|
||||
[{if $oProduct->oxarticles__oxlength->value}]
|
||||
<div rel="gr:depth">
|
||||
<div typeof="gr:QuantitativeValue">
|
||||
<div property="gr:hasValue" content="[{$oProduct->oxarticles__oxlength->value}]" datatype="xsd:float"></div>
|
||||
<div property="gr:hasUnitOfMeasurement" content="MTR" datatype="xsd:string"></div>
|
||||
</div>
|
||||
</div>
|
||||
[{/if}]
|
||||
[{if $oProduct->oxarticles__oxwidth->value}]
|
||||
<div rel="gr:width">
|
||||
<div typeof="gr:QuantitativeValue">
|
||||
<div property="gr:hasValue" content="[{$oProduct->oxarticles__oxwidth->value}]" datatype="xsd:float"></div>
|
||||
<div property="gr:hasUnitOfMeasurement" content="MTR" datatype="xsd:string"></div>
|
||||
</div>
|
||||
</div>
|
||||
[{/if}]
|
||||
[{if $oProduct->oxarticles__oxheight->value}]
|
||||
<div rel="gr:height">
|
||||
<div typeof="gr:QuantitativeValue">
|
||||
<div property="gr:hasValue" content="[{$oProduct->oxarticles__oxheight->value}]" datatype="xsd:float"></div>
|
||||
<div property="gr:hasUnitOfMeasurement" content="MTR" datatype="xsd:string"></div>
|
||||
</div>
|
||||
</div>
|
||||
[{/if}]
|
||||
[{if $oProduct->oxarticles__oweight->value}]
|
||||
<div rel="gr:weight">
|
||||
<div typeof="gr:QuantitativeValue">
|
||||
<div property="gr:hasValue" content="[{$oProduct->oxarticles__oweight->value}]" datatype="xsd:float"></div>
|
||||
<div property="gr:hasUnitOfMeasurement" content="KGM" datatype="xsd:string"></div>
|
||||
</div>
|
||||
</div>
|
||||
[{/if}]
|
||||
</div>
|
||||
</div>
|
||||
[{if $oView->getBundleArticle()}]
|
||||
[{assign var="oBundleProduct" value=$oView->getBundleArticle()}]
|
||||
<div rel="gr:includes" resource="[{$oBundleProduct->getLink()}]#productdata"></div>
|
||||
[{/if}]
|
||||
@@ -0,0 +1,12 @@
|
||||
[{assign var=aPaymentMethods value=$oView->getRDFaPaymentMethods()}]
|
||||
[{foreach from=$aPaymentMethods item=oPaymentMethod}]
|
||||
[{if $oPaymentMethod->oxpayments__oxobjectid->value}]
|
||||
<div rel="gr:acceptedPaymentMethods" resource="http://purl.org/goodrelations/v1#[{$oPaymentMethod->oxpayments__oxobjectid->value}]"></div>
|
||||
[{else}]
|
||||
[{assign var=sContentName value=$oView->getRDFaPaymentChargeSpecLoc()}]
|
||||
[{oxifcontent ident=$sContentName object="oCont"}]
|
||||
<div rel="gr:acceptedPaymentMethods" resource="[{$oCont->getLink()}]#[{$oPaymentMethod->oxpayments__oxdesc->value|strip:''|cat:'_'|cat:$oPaymentMethod->oxpayments__oxid->value}]">
|
||||
</div>
|
||||
[{/oxifcontent}]
|
||||
[{/if}]
|
||||
[{/foreach}]
|
||||
@@ -0,0 +1,48 @@
|
||||
[{capture name="sRDFaPriceStart"}]
|
||||
<div rel="gr:hasPriceSpecification">
|
||||
<div typeof="gr:UnitPriceSpecification">
|
||||
[{if $oView->getRDFaValidityPeriod("iRDFaPriceValidity")}]
|
||||
[{assign var="aRDFaPValidity" value=$oView->getRDFaValidityPeriod("iRDFaPriceValidity")}]
|
||||
<div property="gr:validFrom" content="[{$aRDFaPValidity.from}]" datatype="xsd:dateTime"></div>
|
||||
<div property="gr:validThrough" content="[{$aRDFaPValidity.through}]" datatype="xsd:dateTime"></div>
|
||||
[{/if}]
|
||||
[{if $oView->getRDFaVAT() > 0}]
|
||||
<div property="gr:valueAddedTaxIncluded" content="[{if $oView->getRDFaVAT() == 1}]true[{else}]false[{/if}]" datatype="xsd:boolean"></div>
|
||||
[{/if}]
|
||||
<div property="gr:hasUnitOfMeasurement" content="C62" datatype="xsd:string"></div>
|
||||
<div property="gr:hasCurrency" content="[{$currency->name}]" datatype="xsd:string"></div>
|
||||
[{/capture}]
|
||||
[{if $oProduct->loadAmountPriceInfo()}]
|
||||
[{foreach from=$oProduct->loadAmountPriceInfo() item=priceItem name=amountPrice}]
|
||||
[{if $smarty.foreach.amountPrice.first}]
|
||||
[{assign var="iRDFaMinAmount" value=$priceItem->oxprice2article__oxamount->value}]
|
||||
[{/if}]
|
||||
[{$smarty.capture.sRDFaPriceStart}]
|
||||
<div property="gr:hasCurrencyValue" content="[{$priceItem->oxpricealarm__oxprice->value}]" datatype="xsd:float"></div>
|
||||
<div rel="gr:hasEligibleQuantity">
|
||||
<div typeof="gr:QuantitativeValue">
|
||||
<div property="gr:hasMinValue" content="[{$priceItem->oxprice2article__oxamount->value}]" datatype="xsd:float"></div>
|
||||
<div property="gr:hasMaxValue" content="[{$priceItem->oxprice2article__oxamountto->value}]" datatype="xsd:float"></div>
|
||||
<div property="gr:hasUnitOfMeasurement" content="C62" datatype="xsd:string"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
[{/foreach}]
|
||||
[{/if}]
|
||||
[{if $oProduct->getFPrice()}]
|
||||
[{$smarty.capture.sRDFaPriceStart}]
|
||||
[{assign var=price value=$oDetailsProduct->getPrice()}]
|
||||
<div property="gr:hasCurrencyValue" content="[{$price->getBruttoPrice()}]" datatype="xsd:float"></div>
|
||||
[{if isset($iRDFaMinAmount)}]
|
||||
<div rel="gr:hasEligibleQuantity">
|
||||
<div typeof="gr:QuantitativeValue">
|
||||
<div property="gr:hasMinValue" content="1" datatype="xsd:float"></div>
|
||||
<div property="gr:hasMaxValue" content="[{math equation='x-y' x=$iRDFaMinAmount y=1}]" datatype="xsd:float"></div>
|
||||
<div property="gr:hasUnitOfMeasurement" content="C62" datatype="xsd:string"></div>
|
||||
</div>
|
||||
</div>
|
||||
[{/if}]
|
||||
</div>
|
||||
</div>
|
||||
[{/if}]
|
||||
5
shop/source/Application/views/wave/tpl/rdfa/rdfa.tpl
Normal file
5
shop/source/Application/views/wave/tpl/rdfa/rdfa.tpl
Normal file
@@ -0,0 +1,5 @@
|
||||
[{if $oView->getClassName() eq "details"}]
|
||||
[{include file="rdfa/details/details.tpl"}]
|
||||
[{elseif $oView->getClassName() eq "content"}]
|
||||
[{include file="rdfa/content/content.tpl"}]
|
||||
[{/if}]
|
||||
Reference in New Issue
Block a user