This topic is locked

Change payment(remove paypal)

12/29/2008 3:34:10 AM
PHPRunner General questions
N
n0rmaaln3 author

Hi,
How can i change payment type, i want remove "paypal" and place there just "Buy" link instead? So "Buy" link will send email to seller with all info etc.
Thanks!

J
Jane 12/29/2008

Hi,
check and edit custom code for but field on the "View as" settings dialog on the Visual Editor tab.

N
n0rmaaln3 author 12/30/2008

Hi,

[codebox] {

global $data;

$value = "<INPUT type=image alt=\"Make payments with PayPal - it's fast, free and secure!\"

src=\"https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=36341&image=1&table=forumreplies\";

align=right border=0 name=xclick

onclick=\"java script: document.forms.xclick.item_name.value='".$data["Title"]."';

document.forms.xclick.amount.value=".$data["Price"].";

document.forms.xclick.item_number.value=".$data["ID"]."; document.forms.xclick.submit();\">";

}[/codebox]

eeem <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=36341&image=2&table=forumreplies' class='bbc_emoticon' alt=':(' />

Any hint?

Thanks!

---------------------------EDIT

Oki, is this right? But how i can do that, if i click and then i go to there order.php page, then there will come that title, price and data also in form? <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=36341&image=3&table=forumreplies' class='bbc_emoticon' alt=':huh:' />

[codebox] {

global $data;

$value = "<a href=\"http://www.webpage.com/order.php\">;

<img src=\"https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=36341&image=4&table=forumreplies\"; alt=\"Osta!\"

align=right border=0 name=xclick></a>";

}[/codebox]

J
Jane 12/30/2008

Hi,
here is a sample:

global $data;

$value = "<a href=\"http://www.webpage.com/order.php?Title=".$data["Title"]."&Price=".$data["Price"]."&ID=".$data["ID"]."\"><img src=\"https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=36344&image=1&table=forumreplies\"; alt=\"Osta!\" align=right border=0 name=xclick></a>";


Then check passed parameters in the order.php file:

if (@$_REQUEST["Title"] && @$_REQUEST["Price"] && @$_REQUEST["ID"])

{

...

}

N
n0rmaaln3 author 12/30/2008

There order.php file

<textarea rows=10 cols=30 name="orderbox">Want order: <?php echo $order; ?></textarea>



I need to put this there where is the "$order;" or there, where file begins? > <?php

$order=' ';

if($checkme)

J
Jane 12/30/2008

Hi,
here is a sample:

if (@$_REQUEST["Title"] && @$_REQUEST["Price"] && @$_REQUEST["ID"])

{

$order=$_REQUEST["Title"]." ".$_REQUEST["Price"]." ".$_REQUEST["ID"];

}

N
n0rmaaln3 author 12/30/2008

Yea, thanks its working, but if i click order, then he dont put correct price there, he dont calculate that.

Price code is here, what he should do> $value = round($value1.11.18,0);

$value = $value.".- XXX";



Original price is "Price=155.70" but it should be "202.- XXX" what will be added to there order.php file where is price.

eem, how i can do this?

Is this right?

global $data;

$value = "<a href=\"http://www.webpage.com/order.php?Title="round(.$data1.11.18,0)["Title"]".- XXX"."&Price=".$data["Price"]."&ID=".$data["ID"]."\"><img src=\"https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=36354&image=1&table=forumreplies\"; alt=\"Osta!\" align=right border=0 name=xclick></a>";

J
Jane 1/5/2009

Hi,
here is the correct code:

global $data;

$value = "<a href=\"http://www.webpage.com/order.php?Title=";.round($data["Title"]1.11.18,0).".- XXX"."&Price=".$data["Price"]."&ID=".$data["ID"]."\"><img src=\"https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=36458&image=1&table=forumreplies\"; alt=\"Osta!\" align=right border=0 name=xclick></a>";