Author Topic: How can i setup orders cash or credit  (Read 3197 times)

Offline Julian Marcelo

  • Newbie
  • *
  • Posts: 10
  • Karma: +2/-0
    • View Profile
How can i setup orders cash or credit
« 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.



« Last Edit: October 19, 2019, 01:34:24 AM by Julian Marcelo »

Offline Claudio Garcia

  • Newbie
  • *
  • Posts: 35
  • Karma: +7/-0
    • View Profile
Re: How can i setup orders cash or credit
« Reply #1 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.

Offline Julian Marcelo

  • Newbie
  • *
  • Posts: 10
  • Karma: +2/-0
    • View Profile
Re: How can i setup orders cash or credit
« Reply #2 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());


Offline Sam_78

  • Sr. Member
  • ****
  • Posts: 270
  • Karma: +42/-1
    • View Profile
Re: How can i setup orders cash or credit
« Reply #3 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.


Offline Julian Marcelo

  • Newbie
  • *
  • Posts: 10
  • Karma: +2/-0
    • View Profile
Re: How can i setup orders cash or credit
« Reply #4 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.

Offline Sam_78

  • Sr. Member
  • ****
  • Posts: 270
  • Karma: +42/-1
    • View Profile
Re: How can i setup orders cash or credit
« Reply #5 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

Offline Claudio Garcia

  • Newbie
  • *
  • Posts: 35
  • Karma: +7/-0
    • View Profile
Re: How can i setup orders cash or credit
« Reply #6 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.

Offline llegrand

  • Hero Member
  • *****
  • Posts: 1798
  • Karma: +520/-7
    • View Profile
Re: How can i setup orders cash or credit
« Reply #7 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.

Offline Claudio Garcia

  • Newbie
  • *
  • Posts: 35
  • Karma: +7/-0
    • View Profile
Re: How can i setup orders cash or credit
« Reply #8 on: October 24, 2019, 06:22:34 PM »
Thank you llegrand

I checked coupon and its good to use coupon credit.

thank you.


 

Powered by SMFPacks Social Login Mod