Jump to content

Archived

This topic is now archived and is closed to further replies.

coco0910

AutoMall Script - Changing payment gateway - help??

Recommended Posts

I have created a site and used AutoMall php script for the classifieds aspect. I have created the pricing and packages no problem - but its set up to only give credits based on payment package purchased. I have an option for free listings and need to program that but have NO CLUE how. Can anyone help me??

This is what I have so far - my private listors, need to post for free and not be prompted to purchase a package. I hope someone can help me change this.


<?
require_once("conn.php");
require_once("includes.php");

if ($_SESSION['AccountType']=="2"){ $qwhere=" and re2_prices.PriceType='Private'"; }
elseif ($_SESSION['AccountType']=="1") { $qwhere=" and re2_prices.PriceType='Realtor'"; }
else { $qwhere=""; }

//get the prices
$q1 = "select * from re2_prices, re2_priority where re2_prices.PriorityLevel = re2_priority.PriorityLevel$qwhere order by PriceValue";
$r1 = mysql_query($q1) or die(mysql_error());

$col = "white";

while($a1 = mysql_fetch_array($r1))
{
if($col == "white")
{
$col = "dddddd";
}
else
{
$col = "white";
}

$Prices .= "<tr bgcolor=$col>\n\t<td align=center>";

if($_GET[SelectedPackage] == $a1[PriceID])
{
$Prices .= "<input type=radio name=\"SelectedPackage\" value=\"$a1[PriceID]\" checked>";
}
else
{
$Prices .= "<input type=radio name=\"SelectedPackage\" value=\"$a1[PriceID]\">";
}


$Prices .= "</td>\n\t<td>$a1[PackageName] ";

$Prices .= "<sup><font color=#990000>$a1[PriorityName]</font></sup>";

if($a1[Duration] == '1')
{
$Prices .= ", $a1[Duration] month,";
}
else
{
$Prices .= ", $a1[Duration] months,";
}

if($a1[offers] == '1')
{
$Prices .= " $a1[offers] offer</td>\n\t";
}
else
{
$Prices .= " $a1[offers] offers</td>\n\t";
}

if($a1[PriceValue] > '0')
{
$Prices .= "<td align=right>$$a1[PriceValue]</td>\n</tr>\n";
}
else
{
$Prices .= "<td align=right>Free!</td>\n</tr>\n";
}
}

if($_GET[e] == '1')
{
$error = "Select a package, please!";
}
elseif($_GET[e] == '2')
{
$error = "Select a payment method, please!";
}

if($_GET[PaymentGateway] == "paypal")
{
$selected1 = "selected";
}
elseif($_GET[PaymentGateway] == "2checkout")
{
$selected2 = "selected";
}
elseif($_GET[PaymentGateway] == "check")
{
$selected3 = "selected";
}
elseif($_GET[PaymentGateway] == "stormpay")
{
$selected4 = "selected";
}

if(ereg("register.php", $_SERVER[HTTP_POST]))
{
$NewAgentMessage = "<font face=verdana color=black size=2><b>Thank you for your registration!</b><br><font size=1> <br><br>";
}

//get the templates
require_once("templates/HeaderTemplate.php");
require_once("templates/PricesTemplate.php");
require_once("templates/FooterTemplate.php");

?>

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.