Page 1 of 1

My first Phoenix Addon - Please cast a critical eye

Posted: Tue Sep 03, 2024 8:00 am
by frankl
I wanted to share my first complete Phoenix Addon - Payment On Account - to make sure it is kosher before releasing it into the wild.

One issue I have is the Customer Data Modules - there are 5. I'm wondering if they can be condensed into 1, or alternatively installed all at once, or even all automatically installed when payment module is installed? Not familiar enough with Phoenix to judge.

Please note, only tested with 1.0.9.5 and 1.0.9.6

Anyway have a try. I'll be releasing it as a free addon.

Payment On Account for Phoenix Cart
____________________________________

Payment method of 'Payment On Account' for customers who are approved credit customers of your store.

You need to edit a customer and activate them as a Payment On Account customer before they can checkout using this method.

When customers checkout they can ad their own purchase order number. This will be displayed on the order in admin, and for customers on their account history info.

You can also set terms and a credit limit. Terms are for internal use.

Once a customer's credit limit has been reached they can no longer checkout with this method.

You can add customer payments to bring up a customer's credit limit.

Installation

Upload the files, nothing will be overwritten.

Backup your database.

Install modules in this order:

1. Modules > Payment > Payment On Account

The following modules should only be admin facing (i.e. only show on admin customer edit page - this is set by default)

2. Modules > Customer Data > Payment On Account Status

3. Modules > Customer Data > Payment On Account Terms

4. Modules > Customer Data > Payment On Account Limit

5. Modules > Customer Data > Payment On Account Credit Used

6. Modules > Customer Data > Payment On Account Payment

Image
Image
Image
Image
Image

Re: My first Phoenix Addon - Please cast a critical eye

Posted: Tue Sep 03, 2024 10:35 am
by heatherbell
First, thank you for the contribution!
Just testing for UX.
Performed several test orders.
Admin>Customers, all works/displays as expected.
Store-side, all works/displays as expected.
As an Account Customer, maybe I would like to see my 'Account' details accessible in my Profile (account.php)?
Maybe a store-side 'Credit Account' page for new customers to apply?

Re: My first Phoenix Addon - Please cast a critical eye

Posted: Wed Sep 04, 2024 2:03 am
by frankl
heatherbell wrote: Tue Sep 03, 2024 10:35 am First, thank you for the contribution!
Just testing for UX.
Performed several test orders.
Admin>Customers, all works/displays as expected.
Store-side, all works/displays as expected.
As an Account Customer, maybe I would like to see my 'Account' details accessible in my Profile (account.php)?
Maybe a store-side 'Credit Account' page for new customers to apply?
Great suggestions Heather

Re: My first Phoenix Addon - Please cast a critical eye

Posted: Wed Sep 04, 2024 4:38 am
by heatherbell
frankl wrote: Wed Sep 04, 2024 2:03 am suggestions
Re a store-side 'Credit Account' page for new customer applications.
Maybe this should only be viewable to 'signed in' customers so some elements can be pre-filled.
Screenshot only as an example if it is of help to you:
credit-account-application.jpg

Re: My first Phoenix Addon - Please cast a critical eye

Posted: Sat Sep 07, 2024 3:37 pm
by burt
Good addon, well thought out. You asked for a critical eye;

1. There appears to be a language file in /includes/hooks/shop/account_history_info.php
2. and the actual hook file is in the language structure
3. Loading Language, eg;

Code: Select all

private function load_translations() {
  require_once language::map_to_translation('hooks/shop/account_history_info/po_number.php');
}
I haven't been able to actually install and test it as I've been away so unable until next week.

Re: My first Phoenix Addon - Please cast a critical eye

Posted: Mon Sep 09, 2024 1:39 am
by frankl
Thanks Burt!