Ow, kwam ik niet zo netjes over . Excuus!
Ik heb de code geprobeerd maar denk dat ik toch iets niet goed doe.
Kan je toevallig zien wat ik fout doe?
Zo staat het nu in de beide bestanden:
$data['share'] = $this->url->link('product/product', 'product_id=' . (int)$this->request->get['product_id']);
$data['attribute_groups'] = $this->model_catalog_product->getProductAttributes($this->request->get['product_id']);
$data['dit_formaat'] = $this->length->format($product_info['length'], $product_info['length_class_id'], $this->language->get('decimal_point'), $this->language->get('thousand_point')) . ' x ' . $this->length->format($product_info['width'], $product_info['length_class_id'], $this->language->get('decimal_point'), $this->language->get('thousand_point')) . ' x ' .$this->length->format($product_info['height'], $product_info['length_class_id'], $this->language->get('decimal_point'), $this->language->get('thousand_point'));
$data['products'] = array();
$results = $this->model_catalog_product->getProductRelated($this->request->get['product_id']);
----------------------------------------------------------
<h1>{{ heading_title }}</h1>
<ul class="list-unstyled">
{% if manufacturer %}
<li>{{ text_manufacturer }} <a href="{{ manufacturers }}">{{ manufacturer }}</a></li>
{% endif %}
<li>{{ text_model }} {{ model }}</li>
<li>Formaat: {{ dit_formaat }}</li>
{% if reward %}
<li>{{ text_reward }} {{ reward }}</li>
{% endif %}
<li>{{ text_stock }} {{ stock }}</li>
</ul>
pprmkr wrote: ↑Sun Apr 11, 2021 6:28 pm
Alvast bedankt ? Dus je verwacht de benodigde code ?
Ok, bij deze:
In catalog/controller/product/product.php:
Vóór:
Voeg in:
Code: Select all
$data['dit_formaat'] = $this->length->format($product_info['length'], $product_info['length_class_id'], $this->language->get('decimal_point'), $this->language->get('thousand_point')) . ' x ' . $this->length->format($product_info['width'], $product_info['length_class_id'], $this->language->get('decimal_point'), $this->language->get('thousand_point')) . ' x ' .$this->length->format($product_info['height'], $product_info['length_class_id'], $this->language->get('decimal_point'), $this->language->get('thousand_point'));
In catalog/view/theme/JOUW_THEME/template/product/product.twig
Ná:
Code: Select all
<li>{{ text_model }} {{ model }}</li>
Voeg in:
Code: Select all
<li>Formaat: {{ dit_formaat }}</li>