Ich will, dass Numerische Werte die von der Datenbank ausgegeben werden als alphabetisches Wort ausgegeben werden.
D.h. 1 steht für Liter
2 steht für kg
3 für Stück
mit dem Code
PHP-Code:
//Verpackungseinheit Wert
if(!empty($listing['products_vpe_value']))
echo "\t\t<g:unit_pricing_measure>".$listing['products_vpe_value']."</g:unit_pricing_measure>\n";
//Maßeinheit VPE
if(!empty($listing['products_vpe']))
echo "\t\t<g:unit_pricing_measure>".$listing['products_vpe']."</g:unit_pricing_measure>\n";
bekomm ich diese Ausgabe
Code:
<g:unit_pricing_measure>9.0000</g:unit_pricing_measure>
<g:unit_pricing_measure>3</g:unit_pricing_measure>
das steht für 9.0000 Stück
Ich bräuchte aber eine Ausgabe
Code:
<g:unit_pricing_measure>9.0000 Stück</g:unit_pricing_measure>