feat: Add GPSR safety info translation and remove pre-order cutting button functionality.
This commit is contained in:
@@ -190,8 +190,8 @@ class AddToCartButton extends Component {
|
||||
},
|
||||
}}
|
||||
>
|
||||
{this.props.steckling ?
|
||||
(this.props.t ? this.props.t('cart.preorderCutting') : "Als Steckling vorbestellen") :
|
||||
{/*this.props.steckling ?
|
||||
(this.props.t ? this.props.t('cart.preorderCutting') : "Als Steckling vorbestellen") : */
|
||||
(this.props.t ? this.props.t('cart.addToCart') : "In den Korb")}
|
||||
</Button>
|
||||
);
|
||||
@@ -342,8 +342,8 @@ class AddToCartButton extends Component {
|
||||
},
|
||||
}}
|
||||
>
|
||||
{this.props.steckling ?
|
||||
(this.props.t ? this.props.t('cart.preorderCutting') : "Als Steckling vorbestellen") :
|
||||
{/*this.props.steckling ?
|
||||
(this.props.t ? this.props.t('cart.preorderCutting') : "Als Steckling vorbestellen") :*/
|
||||
(this.props.t ? this.props.t('cart.addToCart') : "In den Korb")}
|
||||
</Button>
|
||||
);
|
||||
|
||||
@@ -1087,7 +1087,7 @@ class ProductDetailPage extends Component {
|
||||
}
|
||||
|
||||
render() {
|
||||
const { product, loading, upgrading, error, attributeImages, isSteckling, attributes, komponentenLoaded, komponentenData, komponentenImages, totalKomponentenPrice, totalSavings, shareAnchorEl, sharePopperOpen, snackbarOpen, snackbarMessage, snackbarSeverity } =
|
||||
const { product, loading, upgrading, error, attributeImages, /*isSteckling,*/ attributes, komponentenLoaded, komponentenData, komponentenImages, totalKomponentenPrice, totalSavings, shareAnchorEl, sharePopperOpen, snackbarOpen, snackbarMessage, snackbarSeverity } =
|
||||
this.state;
|
||||
|
||||
// Debug alerts removed
|
||||
@@ -1500,7 +1500,7 @@ class ProductDetailPage extends Component {
|
||||
alignItems: "flex-start",
|
||||
}}
|
||||
>
|
||||
{isSteckling && product.available == 1 && (
|
||||
{/*isSteckling && product.available == 1 && (
|
||||
<Box
|
||||
sx={{
|
||||
display: "flex",
|
||||
@@ -1534,7 +1534,7 @@ class ProductDetailPage extends Component {
|
||||
{this.props.t ? this.props.t('product.pickupPrice') : 'Abholpreis: 19,90 € pro Steckling.'}
|
||||
</Typography>
|
||||
</Box>
|
||||
)}
|
||||
)*/}
|
||||
<Box
|
||||
sx={{
|
||||
display: "flex",
|
||||
@@ -1663,6 +1663,18 @@ class ProductDetailPage extends Component {
|
||||
</Box>
|
||||
) : null}
|
||||
</Box>
|
||||
|
||||
{/* GPSR Information */}
|
||||
{product.gpsr && (
|
||||
<Box sx={{ mt: 3, pt: 2, borderTop: "1px solid #eee" }}>
|
||||
<Typography variant="subtitle2" sx={{ fontSize: "0.75rem", fontWeight: "bold", mb: 0.5 }}>
|
||||
{this.props.t ? this.props.t("product.gpsrSafetyInfo") : "GPSR Informationen zur Produktsicherheit:"}
|
||||
</Typography>
|
||||
<Typography variant="caption" component="div" sx={{ whiteSpace: "pre-wrap", color: "text.secondary" }}>
|
||||
{product.gpsr}
|
||||
</Typography>
|
||||
</Box>
|
||||
)}
|
||||
</Box>
|
||||
)}
|
||||
|
||||
|
||||
@@ -24,6 +24,7 @@ export default {
|
||||
"youSave": "Sie sparen: {{amount}}",
|
||||
"cheaperThanIndividual": "Günstiger als Einzelkauf",
|
||||
"pickupPrice": "Abholpreis: 19,90 € pro Steckling.",
|
||||
"gpsrSafetyInfo": "GPSR Informationen zur Produktsicherheit:",
|
||||
"consistsOf": "Bestehend aus:",
|
||||
"loadingComponentDetails": "{{index}}. Lädt Komponent-Details...",
|
||||
"loadingProduct": "Produkt wird geladen...",
|
||||
|
||||
Reference in New Issue
Block a user