Skip to content
Code-Schnipsel Gruppen Projekte
Commit 49ad7596 erstellt von Michael Danielczok's avatar Michael Danielczok
Dateien durchsuchen

feat: Show regular and retail price in product list.

feat: Show shipping time in product list.
Übergeordneter 904a1885
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
Keine zugehörigen Merge Requests gefunden
...@@ -515,11 +515,19 @@ ...@@ -515,11 +515,19 @@
} }
.cologne-products-productGallery-products-product-price { .cologne-products-productGallery-products-product-price {
font-weight: bold;
margin: auto 0 1em; margin: auto 0 1em;
text-align: center; text-align: center;
} }
.cologne-products-productGallery-products-product-price-old {
font-size: 0.85rem;
text-decoration: line-through;
}
.cologne-products-productGallery-products-product-price-regular {
font-weight: bold;
}
.cologne-products-productGallery-products-product-price .qui-products-price-display { .cologne-products-productGallery-products-product-price .qui-products-price-display {
display: inline; display: inline;
} }
...@@ -528,6 +536,24 @@ ...@@ -528,6 +536,24 @@
display: block; display: block;
} }
.cologne-products-productGallery-products-product-price-shippingTime {
display: flex;
margin: auto 0 1em;
width: 100%;
flex-direction: column;
text-align: center;
}
.cologne-products-productGallery-products-product-price-shippingTime .product-data-fields-title {
width: auto;
margin-right: 10px;
}
.cologne-products-productGallery-products-product-price-shippingTime .product-data-fields-value {
width: 100%;
}
@media screen and (max-width: 767px) { @media screen and (max-width: 767px) {
.quiqqer-products-control-product-childrenslider-entry-productButtons { .quiqqer-products-control-product-childrenslider-entry-productButtons {
width: 100%; width: 100%;
...@@ -601,6 +627,14 @@ ...@@ -601,6 +627,14 @@
} }
.cologne-productList-product-details-content-price { .cologne-productList-product-details-content-price {
margin-top: 1rem;
}
.cologne-productList-product-details-content-old {
text-decoration: line-through;
font-size: 0.9rem;
}
.cologne-productList-product-details-content-regular {
font-size: 1.2em; font-size: 1.2em;
font-weight: 500; font-weight: 500;
} }
...@@ -613,6 +647,21 @@ ...@@ -613,6 +647,21 @@
display: inline; display: inline;
} }
.cologne-productList-product-details-content-shippingTime {
display: flex;
margin-top: 1rem;
width: 100%;
}
.cologne-productList-product-details-content-shippingTime .product-data-fields-title {
width: auto;
margin-right: 10px;
}
.cologne-productList-product-details-content-stock .product-data-fields-value {
width: 100%;
}
.cologne-productList-product-details-content-buttons { .cologne-productList-product-details-content-buttons {
border-top: 1px solid #ddd; border-top: 1px solid #ddd;
margin-top: 1rem; margin-top: 1rem;
...@@ -661,6 +710,12 @@ ...@@ -661,6 +710,12 @@
font-size: 1.2em; font-size: 1.2em;
} }
.quiqqer-productList-product-list-price-old {
font-weight: normal;
font-size: 0.85rem;
text-decoration: line-through;
}
.quiqqer-productList-product-list .quiqqer-productList-product-list-artno, .quiqqer-productList-product-list .quiqqer-productList-product-list-artno,
.quiqqer-productList-product-list .quiqqer-productList-product-list-price { .quiqqer-productList-product-list .quiqqer-productList-product-list-price {
padding: 0 10px; padding: 0 10px;
...@@ -670,6 +725,21 @@ ...@@ -670,6 +725,21 @@
display: inline; display: inline;
} }
.quiqqer-productList-product-list-text-shippingTime {
display: flex;
margin-top: 5px;
width: 100%;
}
.quiqqer-productList-product-list-text-shippingTime .product-data-fields-title {
width: auto;
margin-right: 10px;
}
.quiqqer-productList-product-list-text-shippingTime .product-data-fields-value {
width: 100%;
}
@media screen and (max-width: 767px) { @media screen and (max-width: 767px) {
.quiqqer-productList-product-list { .quiqqer-productList-product-list {
display: grid; display: grid;
......
...@@ -293,6 +293,10 @@ ...@@ -293,6 +293,10 @@
<de><![CDATA[Lagerbestand bei Produkt-Details anzeigen]]></de> <de><![CDATA[Lagerbestand bei Produkt-Details anzeigen]]></de>
<en><![CDATA[Show stock in product details]]></en> <en><![CDATA[Show stock in product details]]></en>
</locale> </locale>
<locale name="settings.shop.categoryShowStock">
<de><![CDATA[Lagerbestand in der Produktliste anzeigen]]></de>
<en><![CDATA[Show stock in product list]]></en>
</locale>
<locale name="settings.shop.showVisitedProducts"> <locale name="settings.shop.showVisitedProducts">
<de><![CDATA[Besuchte Produkte auf Produktseite anzeigen]]></de> <de><![CDATA[Besuchte Produkte auf Produktseite anzeigen]]></de>
<en><![CDATA[Show visited products on product page.]]></en> <en><![CDATA[Show visited products on product page.]]></en>
......
...@@ -19,17 +19,37 @@ ...@@ -19,17 +19,37 @@
{if !$hidePrice} {if !$hidePrice}
<div class="cologne-productList-product-details-content-price"> <div class="cologne-productList-product-details-content-price">
{if $Product->getAttribute('hasVariablePrice')} {if $Product->getAttribute('hasVariablePrice')}
{locale <div class="cologne-productList-product-details-content-regular">
group="quiqqer/erp" {locale
var="price.starting.from" group="quiqqer/erp"
price={control control="QUI\ERP\Products\Controls\Price" Price=$Product->getPrice()} var="price.starting.from"
} price={control control="QUI\ERP\Products\Controls\Price" Price=$Product->getPrice()}
}
</div>
{else} {else}
{$Product->getPriceDisplay()->create()} {assign var=OfferPrice value=$this->getProductOldPriceDisplay($Product)}
{if $OfferPrice}
<div class="cologne-productList-product-details-content-old">
{$OfferPrice->create()}
</div>
{/if}
<div class="cologne-productList-product-details-content-regular">
{$Product->getPriceDisplay()->create()}
</div>
{/if} {/if}
</div> </div>
{/if} {/if}
{if $Project->getConfig('templateCologne.settings.categoryShowStock')}
{assign var=ShippingTimeFrontendView value=\QUI\TemplateCologne\Utils::getShippingTimeFrontendView($Product->getId())}
{if $ShippingTimeFrontendView}
<div class="cologne-productList-product-details-content-shippingTime">
{$ShippingTimeFrontendView->create()}
</div>
{/if}
{/if}
<div class="cologne-productList-product-details-content-buttons"> <div class="cologne-productList-product-details-content-buttons">
<!--<span class="fa fa-envelope button__small quiqqer-products-product-button-purchase"></span>--> <!--<span class="fa fa-envelope button__small quiqqer-products-product-button-purchase"></span>-->
<!--<span class="fa fa-plus button__small quiqqer-products-product-button-add"></span>--> <!--<span class="fa fa-plus button__small quiqqer-products-product-button-add"></span>-->
......
...@@ -12,17 +12,37 @@ ...@@ -12,17 +12,37 @@
{$Product->getTitle()} {$Product->getTitle()}
</header> </header>
<span class="cologne-products-productGallery-products-product-price"> <div class="cologne-products-productGallery-products-product-price">
{if $Product->getAttribute('hasVariablePrice')} {if $Product->getAttribute('hasVariablePrice')}
{locale <div class="cologne-products-productGallery-products-product-price-regular">
group="quiqqer/erp" {locale
var="price.starting.from" group="quiqqer/erp"
price={control control="QUI\ERP\Products\Controls\Price" Price=$Product->getPrice()} var="price.starting.from"
} price={control control="QUI\ERP\Products\Controls\Price" Price=$Product->getPrice()}
}
</div>
{else} {else}
{$Product->getPriceDisplay()->create()} {assign var=OfferPrice value=$this->getProductOldPriceDisplay($Product)}
{if $OfferPrice}
<div class="cologne-products-productGallery-products-product-price-old">
{$OfferPrice->create()}
</div>
{/if}
<div class="cologne-products-productGallery-products-product-price-regular">
{$Product->getPriceDisplay()->create()}
</div>
{/if}
</div>
{if $Project->getConfig('templateCologne.settings.categoryShowStock')}
{assign var=ShippingTimeFrontendView value=\QUI\TemplateCologne\Utils::getShippingTimeFrontendView($Product->getId())}
{if $ShippingTimeFrontendView}
<div class="cologne-products-productGallery-products-product-price-shippingTime">
{$ShippingTimeFrontendView->create()}
</div>
{/if} {/if}
</span> {/if}
<div class="cologne-products-productGallery-products-product-buttons"> <div class="cologne-products-productGallery-products-product-buttons">
{template_event name="quiqqer::product-event::slider::buttonAddToCart" Product=$Product} {template_event name="quiqqer::product-event::slider::buttonAddToCart" Product=$Product}
......
...@@ -14,6 +14,15 @@ ...@@ -14,6 +14,15 @@
<div class="quiqqer-productList-product-list-text-description text-muted"> <div class="quiqqer-productList-product-list-text-description text-muted">
{$Product->getDescription()} {$Product->getDescription()}
</div> </div>
{if $Project->getConfig('templateCologne.settings.categoryShowStock')}
{assign var=ShippingTimeFrontendView value=\QUI\TemplateCologne\Utils::getShippingTimeFrontendView($Product->getId())}
{if $ShippingTimeFrontendView}
<div class="quiqqer-productList-product-list-text-shippingTime">
{$ShippingTimeFrontendView->create()}
</div>
{/if}
{/if}
</div> </div>
<div class="quiqqer-productList-product-list-artno"> <div class="quiqqer-productList-product-list-artno">
...@@ -52,7 +61,17 @@ ...@@ -52,7 +61,17 @@
price={control control="QUI\ERP\Products\Controls\Price" Price=$Product->getPrice()} price={control control="QUI\ERP\Products\Controls\Price" Price=$Product->getPrice()}
} }
{else} {else}
{$Product->getPriceDisplay()->create()}
{assign var=OfferPrice value=$this->getProductOldPriceDisplay($Product)}
{if $OfferPrice}
<div class="quiqqer-productList-product-list-price-old">
{$OfferPrice->create()}
</div>
{/if}
<div class="quiqqer-productList-product-list-price-regular">
{$Product->getPriceDisplay()->create()}
</div>
{/if} {/if}
</div> </div>
{/if} {/if}
......
...@@ -29,6 +29,10 @@ ...@@ -29,6 +29,10 @@
<type><![CDATA[bool]]></type> <type><![CDATA[bool]]></type>
<defaultvalue>1</defaultvalue> <defaultvalue>1</defaultvalue>
</conf> </conf>
<conf name="categoryShowStock">
<type><![CDATA[bool]]></type>
<defaultvalue>0</defaultvalue>
</conf>
<conf name="showVisitedProducts"> <conf name="showVisitedProducts">
<type><![CDATA[bool]]></type> <type><![CDATA[bool]]></type>
<defaultvalue>1</defaultvalue> <defaultvalue>1</defaultvalue>
...@@ -299,6 +303,14 @@ ...@@ -299,6 +303,14 @@
</text> </text>
</input> </input>
<input conf="templateCologne.settings.categoryShowStock" type="checkbox">
<text>
<locale group="quiqqer/template-cologne"
var="settings.shop.categoryShowStock"
/>
</text>
</input>
<input conf="templateCologne.settings.showVisitedProducts" type="checkbox"> <input conf="templateCologne.settings.showVisitedProducts" type="checkbox">
<text> <text>
<locale group="quiqqer/template-cologne" <locale group="quiqqer/template-cologne"
......
0% Lade oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren