This topic is locked

shopping cart

1/19/2009 10:02:28 AM
PHPRunner General questions
I
iripais author

Let me re-phrase this:
I want to add 2 pay types:

  • One is account transfer, witch means that the client pays transferring the Money form he's bank account. After the client choose this pay type option, I only want to show the number of the store account in the section "payment method" on the "sales_order_main_add?adress=1" page.
  • The other one is delivery pay, witch means that the client pays when the product is delivered. And after the client choose this pay type option, I only want to show a message like "your order will be delivered with in x days in the section "payment method" on the "sales_order_main_add?adress=1" page.
    ---------------------------------------------------------------------------------------------------------------------------------------
    I was configuring my shopping cart and I changed the payment method.
    I wanted to enable the option to account transfer (using only this)
    So I just deleted all the gateways and payment types and added (account_transfer).
    Apparently when I choose the payment option on the checkout store and select continue, nothin happens. But, If I don't select it, it goes to the review information page, without the pyment method.
    Do I have to enter the gateway settings? How can I configure that part?
    I only want to show a message with the account number

J
Jane 1/20/2009

Hi,
check selected payment type in the Before record added event for pay_types table and redirect to the correct page if needed.

Use code for Check payment type as a sample:

if ($values["pay_type"]=="CHK")

{

//**send email to customer***

$rs_email = $dal->scemails->Query("email='CHECK'","");

$data_email = db_fetch_array($rs_email);

$email=$_SESSION["UserID"];

$message = $data_email["email_body"];

$subject=$data_email["email_subject"];

mail($email, $subject, $message);

//**

header("Location: scsales_order_main_add.php?address=".rawurlencode($_SESSION["selectedaddress"]));

exit();

}

I
iripais author 1/20/2009

Hi jane,
Thanks, its working <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=36963&image=1&table=forumreplies' class='bbc_emoticon' alt=':rolleyes:' />

Hi,

check selected payment type in the Before record added event for pay_types table and redirect to the correct page if needed.

Use code for Check payment type as a sample:

F
fpilot 1/21/2009

how can I have "add to cart" option instead of buying individual items <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=37025&image=1&table=forumreplies' class='bbc_emoticon' alt=':unsure:' />

J
Jane 1/22/2009

Hi,
I recommend you to have a look at the ShoppingCart template:

http://www.xlinesoft.com/templates/shoppingcart/index.htm