FliP1992's Profile
Reputation: 14
Tradesman
- Group:
- Active Members
- Active Posts:
- 197 (0.09 per day)
- Joined:
- 14-June 07
- Profile Views:
- 5,925
- Last Active:
Nov 25 2012 04:19 PM- Currently:
- Offline
Previous Fields
- Country:
- GB
- OS Preference:
- Windows
- Favorite Browser:
- Chrome
- Favorite Processor:
- Intel
- Favorite Gaming Platform:
- XBox
- Your Car:
- Who Cares
- Dream Kudos:
- 0
Posts I've Made
-
In Topic: OpenCart Module Development
Posted 9 Oct 2012
I found the solution to this problem quote easy. You just need to follow the OpenCart MVC pattern. What i was actually looking for was to create a "Order Totals" Module instead of a standard one. These are processed when the cart/checkout total is loaded.
The code below is just the model class for the "Order Totals" processing part. To use it you will need to create a module as usual. If you don't know who to do this there are loads of tutorials you can follow online.
The only problem i faced using it was that the code was being run 4 times. Two of the times it was being passed blank cart data. To get around this problem i just checked how many times the code was being run and returned null if it was more than once.
File: /catalog/model/total/ModuleName.php <?php class ModelTotalModuleName extends Model { public function getTotal(&$total_data, &$total, &$taxes) { $discount_total = 0.00; $discount_title = '20% off'; $status = true; if($status){ $total_data[] = array( 'code' => 'ModuleName', 'title' => $discount_title, 'text' => $this->currency->format($discount_total), 'value' => $discount_total, 'sort_order' => 0 ); } $total += $discount_total; } } ?>
I will write an expanded tutorial if enough people are intrested.
Hope this helps,
Tom
Edit Reason: I accidently deleted the post the first time. -
In Topic: Bored!
Posted 2 Nov 2011
@tlhIn`toq
I presumed you may have been having a bad day. Sorry. -
In Topic: Bored!
Posted 2 Nov 2011
Welcome to UK education, sounds like you did the same sort of course i did. I bet they have a IT business course running along side yours, only difference is that this is one module different from the business version. I didn't learn anything over the 2 years through college, just stuck at it for the paper work at the end. Spend most my time doing my own programming and helping other people in the class.
I suggest sticking at it, having the qualification will be useful if you're thinking about going to university (Which i wouldn't suggest to do, unless you're doing a highly rated course). You should look for places to do work experience around your area. E.g. If you would want to do web development look for a designer who needs sites coding etc. Helps open up new options for you and also get some extra cash on the side.
Thanks,
Tom -
In Topic: Safely Eject Mass Storage Devices by holding Ctrl
Posted 16 Aug 2011
Not that i know of. What operating system where they using?
If by eject you mean remove safely and you are using windows you can click the "safely remove USB mass storage device" icon that will be located in your bottom right tray when you have a device plugged in. Although all this does is check that no programs are using anything on the USB device so there is no chance of corruption or loss data by you yanking it out.
On the other hand, if by eject you mean it springs out of the USB port then, no. No you cannot do this by pressing CTRL.
Thanks,
Tom -
In Topic: HTC Hero touch-screen not responding
Posted 15 Jul 2011
Thanks Milto, contradictory to popular belief i do infact know how to Google things. The main reason i posted on here is to get a opinion of people who have had the same problem and see what they have done rather than jumping straight in to replacing the screen thus by doing that there is a chance of not fixing the problem.
Sorry if this comes across a bit sadistic, i know your trying to help.
My Information
- Member Title:
- D.I.C Head
- Age:
- 21 years old
- Birthday:
- May 18, 1992
- Gender:
-
- Location:
- Preston, UK
- Interests:
- climbing, skateboarding, beer, football, outdoor sports and computers
- Years Programming:
- 5
- Programming Languages:
- (x)html, CSS, C++, VB6, PHP, Javascript, JQuery, ActionScript 3
Contact Information
- E-mail:
- Click here to e-mail me
Friends
FliP1992 hasn't added any friends yet.
|
|


Find Topics
Find Posts
View Reputation Given
|
Comments
pwz2000
26 Mar 2011 - 19:26pwz2000
25 Mar 2011 - 07:14