Changeset 588177
- Timestamp:
- 08/21/2012 05:10:48 AM (14 years ago)
- Location:
- artpal/trunk
- Files:
-
- 2 edited
-
artpal-options.php (modified) (2 diffs)
-
artpal.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
artpal/trunk/artpal-options.php
r202503 r588177 14 14 update_option ( 'ds_ap_unsoldcategory', htmlspecialchars ( $_POST [ 'unsold' ], ENT_QUOTES ) ); 15 15 update_option ( 'ds_ap_soldcategory', htmlspecialchars ( $_POST [ 'sold' ], ENT_QUOTES ) ); 16 update_option ( 'ds_ap_taxrate', htmlspecialchars ( $_POST [ 'taxrate' ], ENT_QUOTES ) ); 16 17 update_option ( 'ds_ap_paypalemail', htmlspecialchars ( $_POST [ 'paypalemail' ], ENT_QUOTES ) ); 17 18 update_option ( 'ds_ap_soldcode', htmlspecialchars ( $_POST [ 'soldcode' ], ENT_QUOTES ) ); … … 238 239 239 240 <h3> 241 Sales Tax 242 </h3> 243 <p> 244 Enter the sales tax rate you would like to apply to the products: 245 <input type="text" name="taxrate" maxlength="2" size="2" value="<?php echo stripslashes ( get_option ( 'ds_ap_taxrate' ) ) ?>" /> % 246 </p> 247 248 <h3> 240 249 Store-wide Sale 241 250 </h3> -
artpal/trunk/artpal.php
r202504 r588177 82 82 'ds_ap_unsoldcategory', 83 83 'ds_ap_soldcategory', 84 'ds_ap_taxrate', 84 85 'ds_ap_paypalemail', 85 86 'ds_ap_soldcode', … … 102 103 NULL, 103 104 NULL, 105 '0.00', 104 106 stripslashes('ValidPaypalEmail@Goes.Here'), 105 107 stripslashes('<b>Sold!</b>'), … … 281 283 // paintings to make them available again! 282 284 . '<input type="hidden" name="amount" value="' . $price . '">' // price of item 285 . '<input type="hidden" name="tax" value="' . round(($price * (get_option ( 'ds_ap_taxrate' )/100)),2) . '">' // price of item 283 286 . '<input type="hidden" name="currency_code" value="' . get_option('ds_ap_currencycode4217') . '">' // us dollars only 284 287 . '<input type="hidden" name="quantity" value="1">' // default 1 item
Note: See TracChangeset
for help on using the changeset viewer.