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:
Submitted by
guvnor on Fri, 01/29/2010 - 13:41
Introduction
Having been looking for a Open Source shopping cart solution I stumbled on prestashop. It is a good solution which seemed to be what I was looking for. Like a lot of modern carts and CMSes it uses system of plug-in modules to add extra functionality that doesn't come as standard. The only slight problem with this module system, is how do you create a plug-in module!? It isn't exactly obvious.