few random questions
Hi. Im just tidying my website. so just a few questions of the top of my head I need help with.
1. im using FLOAT to store numbers (percentages and pricing for my ecommerce site). on the product pages if I have a price of £1.80 stored in the database when displaying it shows as £1.8 so how can I change the code to display that ending zero:
<?php echo WA_eCart_DisplayMoney($DinkyCart, $DinkyCart->DisplayInfo("TotalPrice")); ?>
the same goes for percentages, in order to get the percentages calculation to work I have to store the percentage value as 0.10 but in the admin page it shows as 0.1% is there a quick way to shows this as just 10% (even though its required to be stored in the database as 0.10)?
2. On my checkout page I have a select box for shipping delivery types (standard, recorded, special delivery). The shipping system works fine, but I dont want to display a partcular delivery type in the select box (standard) If there a way of not displaying this option in the select box? its of course still required in the calculations and needs to be stored in the the database the same was as the other delivery types...i just dont want the customer to select it.
3. If I have some content stored in the database (for example lets say 2000 characters) but I only want to display the first 100 characters...how would I go about this?
Chris