Magento product purchase to separate database table

We need to have Magento output from a product purchased on the front end to write key information to a MySQL table in a database.

The sequences are this :

CASE 1 :

1. User goes to the site, selects the item and goes to check out

2. User enters Coupon code in the Coupon field and pays with credit card

3. When the purchase is completed - Your code creates a row in the MySQL table as instructed bellow.

The Table called “myaccess” can be on the same database as the existing Magento - it needs the following fields and data -

Table Fields :

1. ID (INT auto increment)

2. username : (VarChar 128 - the username of the buyer, this is their email address)

3. password : (HASH the password of the buyer - in Hash 5D, same as their Magento password)*

4. product_SKU : (VarChar 128 - the product SKU that they completed in purchasing - - as specified in Magento Product SKU )**

5. coupon : (VarChar 128 - the product ‘Coupon code’ that was entered by the buyer when purchasing - String - as specified in Magento / Admin / Promotion / Shopping Cart Rules / Add Rule / ‘Coupon code’)

6. access : VarChar 128 - DEFAULT STING VALUE = “temp"(a String value that we can define ourselves, this will always be the same)

* the user needs to always create an account - so you need to provide instructions to remove ‘Checkout as Guest’ from the Checkout method.

** if the user purchases multiple products, then 1 row is created per product SKU purchased.

That’s it.

You’ll need to do this on your sever and show us that its working and then provide us the files that make it happen on our server(we will make the changes to our server, ourselves)


we need this code completed in a simple way to add it to our site - you will need to provide the changes to any files and instructions, if you can wrap it into a component great, if its hacking a few of the Magento files then we are using the Default/default template

Taidot: PHP

Näytä lisää: magento purchase table, free magento template products row, magento purchases table, string hash, shopping cart component, php create table, hash string, create table php, purchase table magento, magento credit card information separate database, database table cart rule magento, mysql separate magento, magento table fields credit card, sku autoincrement magento, magento add fields table, magento list multiple quantities separately, mysql multiple databases magento, database table products, magento check database, credit cards database magento, magento shopping cart myysql table, magento productcreate, add product magento, web databases purchased separately, magento product subscription

Tietoa työnantajasta:
( 32 arvostelua ) London, United Kingdom

Projektin tunnus: #394662