News:

AbanteCart v1.4.2 is released.

Main Menu
support

How can i setup orders cash or credit

Started by Julian Marcelo, October 19, 2019, 01:26:57 AM

Previous topic - Next topic

Julian Marcelo

I want customer specify order is credit or cash.
In case of credit i need to define a max amount of 100 US$

I want to give credit by myself, so its not credit card or another form of known credit.

I thank you so much your helps. This aplication is so complete but there are somethings i need to learn because i am new. Maybe you help me to find some help.




Claudio Garcia

Hi.

AbanteCart has a built in account balance (store credit) functionality. By default AbanteCart only allows you to manually add credit from the admin.

Julian Marcelo

Yeah thank you. i investigate the balance and its a credit-store solution. But i need to begin the store giving credit for 100 to every new customer.

I found a way and its execute an script insert to database to all customer. But i have to see every time a customer is aprobe to execute this script. PLease tell if its another way:

INSERT INTO `bitnami_abantecart`.`ac_customer_transactions`
(`customer_transaction_id`,
`customer_id`,
`order_id`,
`created_by`,
`section`,
`credit`,
`debit`,
`transaction_type`,
`comment`,
`description`,
`date_added`,
`date_modified`)
VALUES
(4,
18,
0,
1,
1,
100.0000,
0.0000,
"Credit-Store",
"CREDIT-FROM-STORE",
"CREDIT-FROM-STORE",
current_timestamp(),
current_timestamp());


Sam_78

Create a php script and make an ajax call to it whenever new customer is created so that query will be executed.


Julian Marcelo

Hi Sam_78, please share with a model or an example.  I have no idea how to? but i learn fast. So give me a sample and i will do.

Sam_78

Can you tell me exactly what you are trying to do??

When do you want to add these credits? on cart page, confirm page, payment confirmed (success) page etc.

you can add an ajax call or normal url (www.your-website.com/addCredit.php?customer_id=123&otherParameters=123) to a php script which will run your query

Claudio Garcia

If you register as costumer, will  give a "100 córdobas" wellcome credits to buy its almost 5 dóllars.
Its credit you can apply in your cart.

Abantecart has credit registration as transaction, but i want to appy to every new customer this credit.

llegrand

Have you considered using a coupon?  Set your cart to approve new accounts.  then send them email with the approval and the coupon.
Set your coupon to a one per customer usage so they can't reuse it.

Claudio Garcia

Thank you llegrand

I checked coupon and its good to use coupon credit.

thank you.


Forum Rules Code of conduct
AbanteCart.com 2010 -