AbanteCart Community

Shopping Cart Operations => Support => Topic started by: Julian Marcelo on October 19, 2019, 01:26:57 AM

Title: How can i setup orders cash or credit
Post by: Julian Marcelo on October 19, 2019, 01:26:57 AM
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.



Title: Re: How can i setup orders cash or credit
Post by: Claudio Garcia on October 20, 2019, 09:38:37 PM
Hi.

AbanteCart has a built in account balance (store credit) functionality. By default AbanteCart only allows you to manually add credit from the admin.
Title: Re: How can i setup orders cash or credit
Post by: Julian Marcelo on October 21, 2019, 03:34:43 AM
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());

Title: Re: How can i setup orders cash or credit
Post by: Sam_78 on October 21, 2019, 04:29:34 PM
Create a php script and make an ajax call to it whenever new customer is created so that query will be executed.

Title: Re: How can i setup orders cash or credit
Post by: Julian Marcelo on October 22, 2019, 04:29:39 AM
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.
Title: Re: How can i setup orders cash or credit
Post by: Sam_78 on October 23, 2019, 09:22:33 AM
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
Title: Re: How can i setup orders cash or credit
Post by: Claudio Garcia on October 23, 2019, 11:53:10 AM
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.
Title: Re: How can i setup orders cash or credit
Post by: llegrand on October 23, 2019, 01:29:24 PM
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.
Title: Re: How can i setup orders cash or credit
Post by: Claudio Garcia on October 24, 2019, 06:22:34 PM
Thank you llegrand

I checked coupon and its good to use coupon credit.

thank you.