From 94a0fd4c22f274e71d245761b6129002f3a5f31a Mon Sep 17 00:00:00 2001 From: Ivo Bathke Date: Thu, 29 Jul 2021 11:00:33 +0200 Subject: [PATCH] imporved tabs --- .../details/inc/related_products_tabs.tpl | 39 +++++++------------ tpl/page/details/inc/tabs.tpl | 37 +++++++++++++----- 2 files changed, 42 insertions(+), 34 deletions(-) diff --git a/tpl/page/details/inc/related_products_tabs.tpl b/tpl/page/details/inc/related_products_tabs.tpl index 30c040b..7753180 100644 --- a/tpl/page/details/inc/related_products_tabs.tpl +++ b/tpl/page/details/inc/related_products_tabs.tpl @@ -1,16 +1,13 @@ [{assign var="blFirstTab" value=true}] - [{block name="details_relatedproducts_accessoires"}] [{if $oView->getAccessoires()}] [{capture append="reltabs"}] - [{oxmultilang ident="ACCESSORIES"}] + [{oxmultilang ident="ACCESSORIES"}] [{/capture}] [{capture append="reltabsContent"}] -
-
- [{include file="widget/product/list.tpl" type="grid" listId="accessories" products=$oView->getAccessoires() subhead="WIDGET_PRODUCT_RELATED_PRODUCTS_ACCESSORIES_SUBHEADER"|oxmultilangassign}] -
+
+ [{include file="widget/product/list.tpl" type="grid" listId="accessories" products=$oView->getAccessoires() subhead="WIDGET_PRODUCT_RELATED_PRODUCTS_ACCESSORIES_SUBHEADER"|oxmultilangassign}]
[{/capture}] [{assign var="blFirstTab" value=false}] @@ -20,13 +17,11 @@ [{block name="details_relatedproducts_also_bought"}] [{if $oView->getAlsoBoughtTheseProducts()}] [{capture append="reltabs"}] - [{oxmultilang ident="CUSTOMERS_ALSO_BOUGHT"}] + [{oxmultilang ident="CUSTOMERS_ALSO_BOUGHT"}] [{/capture}] [{capture append="reltabsContent"}] -
-
- [{include file="widget/product/list.tpl" type="grid" listId="alsoBought" subhead="PAGE_DETAILS_CUSTOMERS_ALSO_BOUGHT_SUBHEADER"|oxmultilangassign products=$oView->getAlsoBoughtTheseProducts()}] -
+
+ [{include file="widget/product/list.tpl" type="grid" listId="also" subhead="PAGE_DETAILS_CUSTOMERS_ALSO_BOUGHT_SUBHEADER"|oxmultilangassign products=$oView->getAlsoBoughtTheseProducts()}]
[{/capture}] [{assign var="blFirstTab" value=false}] @@ -36,13 +31,11 @@ [{block name="details_relatedproducts_similarproducts"}] [{if $oView->getSimilarProducts()}] [{capture append="reltabs"}] - [{oxmultilang ident="SIMILAR_PRODUCTS"}] + [{oxmultilang ident="SIMILAR_PRODUCTS"}] [{/capture}] [{capture append="reltabsContent"}] -
-
- [{include file="widget/product/list.tpl" type="grid" listId="similar" products=$oView->getSimilarProducts() subhead="WIDGET_PRODUCT_RELATED_PRODUCTS_SIMILAR_SUBHEADER"|oxmultilangassign}] -
+
+ [{include file="widget/product/list.tpl" type="grid" listId="similars" products=$oView->getSimilarProducts() subhead="WIDGET_PRODUCT_RELATED_PRODUCTS_SIMILAR_SUBHEADER"|oxmultilangassign}]
[{/capture}] [{assign var="blFirstTab" value=false}] @@ -52,13 +45,11 @@ [{block name="details_relatedproducts_crossselling"}] [{if $oView->getCrossSelling()}] [{capture append="reltabs"}] - [{oxmultilang ident="HAVE_YOU_SEEN"}] + [{oxmultilang ident="HAVE_YOU_SEEN"}] [{/capture}] [{capture append="reltabsContent"}] -
-
- [{include file="widget/product/list.tpl" type="grid" listId="crossproducts" products=$oView->getCrossSelling() subhead="WIDGET_PRODUCT_RELATED_PRODUCTS_CROSSSELING_SUBHEADER"|oxmultilangassign}] -
+
+ [{include file="widget/product/list.tpl" type="grid" listId="cross" products=$oView->getCrossSelling() subhead="WIDGET_PRODUCT_RELATED_PRODUCTS_CROSSSELING_SUBHEADER"|oxmultilangassign}]
[{/capture}] [{assign var="blFirstTab" value=false}] @@ -67,9 +58,9 @@ [{if $reltabs}] -[{/if}] \ No newline at end of file +[{/if}] diff --git a/tpl/page/details/inc/tabs.tpl b/tpl/page/details/inc/tabs.tpl index c8b6bf2..c02b5c1 100644 --- a/tpl/page/details/inc/tabs.tpl +++ b/tpl/page/details/inc/tabs.tpl @@ -4,9 +4,13 @@ [{oxhasrights ident="SHOWLONGDESCRIPTION"}] [{assign var="oLongdesc" value=$oDetailsProduct->getLongDescription()}] [{if $oLongdesc->value}] - [{capture append="tabs"}][{oxmultilang ident="DESCRIPTION"}][{/capture}] + [{capture append="tabs"}] + + [{oxmultilang ident="DESCRIPTION"}] + + [{/capture}] [{capture append="tabsContent"}] -
+
[{oxeval var=$oLongdesc}] [{if $oDetailsProduct->oxarticles__oxexturl->value}] @@ -28,9 +32,13 @@ [{block name="details_tabs_attributes"}] [{if $oView->getAttributes()}] - [{capture append="tabs"}][{oxmultilang ident="SPECIFICATION"}][{/capture}] + [{capture append="tabs"}] + + [{oxmultilang ident="SPECIFICATION"}] + + [{/capture}] [{capture append="tabsContent"}] -
+
[{include file="page/details/inc/attributes.tpl"}]
@@ -42,9 +50,13 @@ [{*block name="details_tabs_pricealarm"}] [{if $oView->isPriceAlarm() && !$oDetailsProduct->isParentNotBuyable()}] - [{capture append="tabs"}][{oxmultilang ident="PRICE_ALERT"}][{/capture}] + [{capture append="tabs"}] + + [{oxmultilang ident="PRICE_ALERT"}] + + [{/capture}] [{capture append="tabsContent"}] -
+
[{include file="form/pricealarm.tpl"}]
@@ -53,6 +65,7 @@ [{/capture}] [{/if}] [{/block*}] + [{assign var="oManufacturer" value=$oView->getManufacturer()}] [{if $oManufacturer && $oManufacturer->oxmanufacturers__oxshortdesc->value}] [{capture append="tabs"}][{oxmultilang ident="MORE_ABOUT"}] [{$oManufacturer->oxmanufacturers__oxtitle->value}][{/capture}] @@ -76,9 +89,13 @@ [{block name="details_tabs_media"}] [{if $oView->getMediaFiles() || $oDetailsProduct->oxarticles__oxfile->value}] - [{capture append="tabs"}][{oxmultilang ident="MEDIA"}][{/capture}] + [{capture append="tabs"}] + + [{oxmultilang ident="MEDIA"}] + + [{/capture}] [{capture append="tabsContent"}] -
+
[{include file="page/details/inc/media.tpl"}]
@@ -97,9 +114,9 @@ [{block name="details_tabs_main"}] [{if $tabs}]
-