Submitted by
guvnor on Tue, 12/13/2011 - 09:54
Submitted by
guvnor on Sat, 11/26/2011 - 23:39
Upload a file using to an FTPES using CURL
Every now and again you need to upload to a file to an Explicit FTP over TLS server. This is FTP over a TLS which is normally over port 21 - just like the old school simple FTP protocol.
Submitted by
guvnor on Sat, 11/26/2011 - 16:40
When attaching your HTC desire to your Windows PC, the device isn't found
My better hald had this problem once when she need to sync her contacts with her PC. After several hours of hair pulling with various driver installs etc she asked her in-house tech guy i.e me to take a look.
A thought occured, why was she trying to sync her phone in the first place? Thats right she wanted to backup her phone as it was playing up.
Submitted by
guvnor on Wed, 11/02/2011 - 06:19
Introduction
Recently I had to create a complex form which needed lots of input validation. The usual kind of validation that you would expect on a form such as ensuring an e-mail input contains a properly formatted email or any inputs that expect numeric data get numeric data. I wanted to use a plugin that has does all of the hard work for me. This way I didn't have to write lots of javascript validation routines and make sure they work across all the browsers that my form was to be viewed in.
Submitted by
guvnor on Wed, 10/19/2011 - 13:03
Need to use the SCP command on a Centos or other RHEL based distro?
Sometimes when you attempt to run the scp command you recieve telling you that command as unknown. There is a good chance that the the SCP client isn't installed. Well that's not too difficult to remedy. A quick yum will do the trick.
yum install openssh-clients
Now try running the scp command and you will find a more favourable response!
Submitted by
guvnor on Tue, 10/11/2011 - 20:06
That's all Folks
Well that's almost done, there is just a bit more work though - now that our users can enter their payment details we need to be able to retrieve them in our administration panel.
Displaying the order info in the admin panel
We need to hook into the invoice part of the administration panel.
Submitted by
guvnor on Tue, 10/11/2011 - 19:50
ow our payment option is available to our user's we need to create the actual page that is displayed when the payment option is clicked on.
Submitted by
guvnor on Tue, 10/11/2011 - 19:48
Displaying our module as a payment option in the checkout
Since we have a registered our module with the payment hook a function which tells the payment hook to do something. The hook payment expects a function called hookPayment by default so thats what we need to create. This is where the hook payment allows us to have our module appear (image below)
Submitted by
guvnor on Tue, 10/11/2011 - 19:44
Testing the Install
Click the "install" button next to the Offline Payments.
If successful you should see a message displayed that says "Module installed successfully"
We can also see within our prestastore database that the payment module is now listed as a module. Below is an example (using phpmyadmin) which shows that our module has been added to the list of prestashop modules - we can verify that by the fact it has been added to the prestashop modules table.
Submitted by
guvnor on Tue, 10/11/2011 - 19:39
Making the module's install routine
Building the standard install() function
Prestashop modules have an install link. This link needs to be clicked to install the module to make it actually function within the store.
NOTE! Basically, what although the module is listed in your store as an available module, you need to to click install to actually activate the module for it to be active in your store.
See below: