User Tools

Site Tools


merkalt:show_discount

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
merkalt:show_discount [2009/03/13 11:03] darumamerkalt: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/index2.php. NB! These pages are not the same. I also need the discount in the webmaster and customer e-mail for merkalt.no and merkalt.no/bedrift. 
- 
-The discount should be showed on page as written in following screen shot. 
- 
-{{:merkalt:discount.jpg|}} 
- 
-In mail it should be stated on a line just before "Totalt å betale". 
- 
-**There are two files was changed for merkalt.no: js\render.js and index.php.  
-And two files for merkalt.no\bedrift: js\render.js and index2.php. 
-** 
-\\ All code, used for displaying of discounts surrounded with comments: begins with a string "DISCOUNT BLOCK BEGIN" and ends with "DISCOUNT BLOCK END". 
-\\ 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 "DISCOUNT BLOCK BEGIN" and "DISCOUNT BLOCK END" the same way like this rows commented. For example: 
- 
-//PHP code:// 
- 
-If you find  
- 
-%%// DISCOUNT BLOCK BEGIN%% 
-\\ %%$whole_total += (int)$_POST['price_whole'.$section];%% 
-\\ %%// DISCOUNT BLOCK END%% 
- 
-comment it such way 
- 
-%%//DISCOUNT BLOCK BEGIN%% 
-\\ %%//$whole_total += (int)$_POST['price_whole'.$section];%% 
-\\ %%//DISCOUNT BLOCK END%% 
- 
-//HTML code:// 
- 
-If you find  
- 
-%%<!-- DISCOUNT BLOCK BEGIN -->%% 
-\\ %%<input type="hidden" id="price_whole1" name="price_whole1" value="10" />%% 
-\\ %%<!-- DISCOUNT BLOCK END -->%% 
- 
-comment it such way 
- 
-%%<!-- DISCOUNT BLOCK BEGIN -->%% 
-\\ %%<!-- input type="hidden" id="price_whole1" name="price_whole1" value="10" / -->%% 
-\\ %%<!-- DISCOUNT BLOCK END -->%% 
- 
-//JavaScript code:// 
- 
-If you find 
- 
-%%// DISCOUNT BLOCK BEGIN%% 
-\\ %%$('disc_amt').innerHTML = totalfullinnerHTML-totalinnerHTML;%% 
-\\ %%// DISCOUNT BLOCK END%% 
- 
-comment it such way 
- 
-%%// DISCOUNT BLOCK BEGIN%% 
-\\ %%// $('disc_amt').innerHTML = totalfullinnerHTML-totalinnerHTML;%% 
-\\ %%// 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('Fraktkostnad', '', 'GRATIS', ''), array('Discount amount', '', 'Kr. '.$disc_amt, ''), array('Totalt е betale (ink. mva)', '', 'Kr. '.$total, ''));%% 
-\\ %%array_push($table_customer, array('Fraktkostnad', '', 'GRATIS'), array('Discount amount', '', 'Kr. '.$disc_amt), array('Totalt е betale (ink. mva)', '', 'Kr. '.$total));%% 
-\\ %%//  DISCOUNT BLOCK END%% 
- 
-please uncomment (delete double "/" characters from the beginning of row) the following rows above it: 
- 
-%%//array_push($table, array('Fraktkostnad', '', 'GRATIS', ''), array('Totalt е betale (ink. mva)', '', 'Kr. '.$total, ''));%% 
-\\ %%//array_push($table_customer, array('Fraktkostnad', '', 'GRATIS'), array('Totalt е betale (ink. mva)', '', 'Kr. '.$total));%% 
- 
  
merkalt/show_discount.1236942228.txt.gz · Last modified: (external edit)