newcommer Posted June 26, 2013 Share Posted June 26, 2013 (edited) Ich lasse mir das Gewicht so wie Ean anzeigen aber beim gewicht legt presta immer 0.004 g drauf warum?? Diesen code nutze ich <p id="product_reference" {if isset($groups) OR !$product->weight}style="display: block;"{/if}> <label for="product_reference">{l s='Product weight: ' js=1}</label> <span itemprop="sku" class="editable" itemprop="sku">{printf("%.2f",$product->weight)} {Configuration::get('PS_WEIGHT_UNIT')} Edited July 2, 2013 by newcommer (see edit history) Link to comment Share on other sites More sharing options...
guest* Posted June 26, 2013 Share Posted June 26, 2013 Guckst du bitte hier: http://www.prestasho...ps-14x-und-15x/ EAN pflege als Artikle-Nr. ein und sie wird dir automatisch, ohne Anpassung, ausgeworfen. Link to comment Share on other sites More sharing options...
newcommer Posted June 26, 2013 Author Share Posted June 26, 2013 sehr gut danke danke Link to comment Share on other sites More sharing options...
newcommer Posted June 26, 2013 Author Share Posted June 26, 2013 hiermal mein gesamter kode die variable ist mit drin <p id="product_reference" {if isset($groups) OR !$product->reference}style="display: none;"{/if}> <label for="product_reference">{l s='Reference:'} </label> <span class="editable" itemprop="sku">{$product->reference|escape:'htmlall':'UTF-8'}</span> <p id="product_reference" {if isset($groups) OR !$product->weight}style="display: block;"{/if}> <label for="product_reference">{l s='Product weight: ' js=1}</label> <span itemprop="sku" class="editable" itemprop="sku">{$product->weight|floatval} kg <p id="product_reference" {if isset($groups) OR !$product->ean13}style="display: block;"{/if}> <label for="product_reference">{l s='EAN:'} </label> <span itemprop="sku" class="editable" itemprop="sku">{$product->ean13|escape:'htmlall':'UTF-8'} Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now