Forums / General Questions / Can Anyone Help Me Make a Simple "Credit Account" Mod?

Can Anyone Help Me Make a Simple "Credit Account" Mod?

Views: 1,455

Results 21 to 26 of 26
22 Feb 2013, 7:28 PM
#21
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Can Anyone Help Me Make a Simple "Credit Account" Mod?

philip937:

Donation sent :-)Thanks!
philip937:

I shall dabble a bit more with it to get it finished off :)Wishing you well.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

3 Mar 2013, 8:04 PM
#22
philip937 avatar

philip937

Totally Zenned

Join Date:
Aug 2009
Location:
Bedford, England
Posts:
968
Plugin Contributions:
0

Re: Can Anyone Help Me Make a Simple "Credit Account" Mod?

Hi DrByte, any reason this code wouldnt work on older versions of zen cart? just tried it on 1.3.9h on an old site and get an error when it tried to send email, says its trying to send an email to what essentially looks like nothing i.e a blank space? also isnt adding the gv credit either. very odd indeed?

Phil Rogers
A problem shared is a problem solved.

5 Mar 2013, 3:47 AM
#23
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Can Anyone Help Me Make a Simple "Credit Account" Mod?

Probably because v1.5.1 automatically includes the security token in the zen_draw_form() output, but v1.3.9 didn't. You could try adding that into your older admin html_output.php ... off the top of my head I don't recall whether there were any additional related dependencies to that.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

5 Mar 2013, 4:38 PM
#24
philip937 avatar

philip937

Totally Zenned

Join Date:
Aug 2009
Location:
Bedford, England
Posts:
968
Plugin Contributions:
0

Re: Can Anyone Help Me Make a Simple "Credit Account" Mod?

As It didn't pull the email I am wondering if perhaps $customer_id is defined? Could that be it? Not a biggy was just going to add the code to the live site until my new site goes live.

Phil Rogers
A problem shared is a problem solved.

5 Mar 2013, 10:33 PM
#25
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Can Anyone Help Me Make a Simple "Credit Account" Mod?

Another difference between 1.3.9 and 1.5.x is in the top of /admin/customers.php:```
$customers_id = zen_db_prepare_input($_GET['cID']);
[B] if (isset($_POST['cID'])) $customers_id = zen_db_prepare_input($_POST['cID']);[/B]

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

5 Mar 2013, 11:04 PM
#26
philip937 avatar

philip937

Totally Zenned

Join Date:
Aug 2009
Location:
Bedford, England
Posts:
968
Plugin Contributions:
0

Re: Can Anyone Help Me Make a Simple "Credit Account" Mod?

Ah ha! That makes sense then I guess :)

Phil Rogers
A problem shared is a problem solved.