merkalt:show_discount
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| merkalt:show_discount [2009/03/13 11:03] – daruma | merkalt:show_discount [2011/11/11 10:51] (current) – removed dmitriy | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | I need to have the total discount amount integrated visially on the index.php and bedrift/ | ||
| - | |||
| - | The discount should be showed on page as written in following screen shot. | ||
| - | |||
| - | {{: | ||
| - | |||
| - | In mail it should be stated on a line just before " | ||
| - | |||
| - | **There are two files was changed for merkalt.no: js\render.js and index.php. | ||
| - | And two files for merkalt.no\bedrift: | ||
| - | ** | ||
| - | \\ All code, used for displaying of discounts surrounded with comments: begins with a string " | ||
| - | \\ So, if you need to remove displaying of discount, you need to find such comments in files mentioned above and to comment out all strings between " | ||
| - | |||
| - | //PHP code:// | ||
| - | |||
| - | If you find | ||
| - | |||
| - | %%// DISCOUNT BLOCK BEGIN%% | ||
| - | \\ %%$whole_total += (int)$_POST[' | ||
| - | \\ %%// DISCOUNT BLOCK END%% | ||
| - | |||
| - | comment it such way | ||
| - | |||
| - | %%// | ||
| - | \\ %%// | ||
| - | \\ %%// | ||
| - | |||
| - | //HTML code:// | ||
| - | |||
| - | If you find | ||
| - | |||
| - | %%<!-- DISCOUNT BLOCK BEGIN -->%% | ||
| - | \\ %%<input type=" | ||
| - | \\ %%<!-- DISCOUNT BLOCK END -->%% | ||
| - | |||
| - | comment it such way | ||
| - | |||
| - | %%<!-- DISCOUNT BLOCK BEGIN -->%% | ||
| - | \\ %%<!-- input type=" | ||
| - | \\ %%<!-- DISCOUNT BLOCK END -->%% | ||
| - | |||
| - | // | ||
| - | |||
| - | If you find | ||
| - | |||
| - | %%// DISCOUNT BLOCK BEGIN%% | ||
| - | \\ %%$(' | ||
| - | \\ %%// DISCOUNT BLOCK END%% | ||
| - | |||
| - | comment it such way | ||
| - | |||
| - | %%// DISCOUNT BLOCK BEGIN%% | ||
| - | \\ %%// $(' | ||
| - | \\ %%// DISCOUNT BLOCK END%% | ||
| - | |||
| - | ATTENTION: | ||
| - | \\ In index.php for merkalt.no and index2.php in bedrift subdirectory when you find and comment code: | ||
| - | |||
| - | %%// DISCOUNT BLOCK BEGIN%% | ||
| - | \\ %%$disc_amt = $whole_total - $total;%% | ||
| - | |||
| - | \\ %%array_push($table, | ||
| - | \\ %%array_push($table_customer, | ||
| - | \\ %%// DISCOUNT BLOCK END%% | ||
| - | |||
| - | please uncomment (delete double "/" | ||
| - | |||
| - | %%// | ||
| - | \\ %%// | ||
| - | |||
merkalt/show_discount.1236942228.txt.gz · Last modified: (external edit)
