Closed

Joomla Modify Form - AUSSIE APPLICANTS PLEASE!

This project received 10 bids from talented freelancers with an average bid price of $148 AUD.

Get free quotes for a project like this
Employer working
Skills Required
Project Budget
$30 - $250 AUD
Total Bids
10
Project Description

I need someone to write up this pseudocode in php and to implement all its functionality.
Cheers

/**************************************************************************/
// this is the new script that needs to be written.
/**************************************************************************/

if button == pressed {
if payment or credit already subtracted received previously {
call standard form submit function
exit
}
if (paid_listing) == 1 {
if (credit == 0) {
$category_type = [url removed, login to view] //example includes house,unit,commercial,etc
$listing_type =[url removed, login to view] //exmaple includes for sale, for lease, etc
if (category_type == X1 && listing_type ==y1) { //value Z,Y,X1,Y1,etc are hard coded, and not variables
$price = Z
$credit = Y
}
if (category_type == X2 && listing_type ==y2) {
$price = Z
$credit = Y
}
if (price == 0) {
echo ("Error, please contact the system administrator with the listing type and category type selected") //situation where price has not been [url removed, login to view] echo should be shown in a modal window.
exit function //do not save, return to original page
}
call paypal function (price, full address, item number, date) //call paypal function with price passed to function somehow, already available in ezportal.
if (paypal_payment == success) {
call the standard form submit function

}
if (paypal_payment == fail) {
echo("Error, payment could not be processed") //(to be shown in a modal window)
}
}
call subtract credit function (not sure which function this is) //case where credit exists, code will need to be modified.
if (credit subtract == success) {
call the standard form submit function
}
}
call standard form submit function //case where paid_listing = 0
}

/**************************************************************************/
//Modify the credit subtract function to have the functionality below
/**************************************************************************/


subtract credit function { //this will need to be integrated into the current function as it updates the tables for record keeping.
$category_type = [url removed, login to view] //example includes house,unit,commercial,etc
$listing_type =[url removed, login to view] //exmaple includes for sale, for lease, etc
if (category_type == X1 && listing_type ==y1) {
$credit = Y
}
if (category_type == X2 && listing_type ==y2) {
$credit = (old_credit * 2) //option where credit will equal old credit multiplied by 2
//this code will use $credit to override the credit subtraction amount from the original credit
}
}

/**************************************************************************/
Modify the front end property page for adding property
/**************************************************************************/
there should be a function somewhere which prevents you from adding properties if you have no credit and if paid listing is on. change this to allow property listing irregardless of credit or paid listing selection.

i assume something if

if (paid_listing == 0 && credit == 0) {
make look like (credit > 0)
}

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online