Latest News:
v1.2.1 Release Date is Sunday August 31st
on August 27, 2008, 08:52:45 PM [View]
Welcome, Guest. Please login or register.
August 28, 2008, 08:55:00 AM
Show Unread Posts | View Replies to Your Posts


Login with username, password and session length
cpCommerce Support  |  Discussion  |  Announcements  |  Topic: Changes since v1.1.0 0 Members and 1 Guest are viewing this topic.
Pages: [1] 2 Send this topic Print
Author Topic: Changes since v1.1.0  (Read 2971 times)
Jenius
Junior Member
*
Offline Offline

Posts: 29


View Profile WWW
« on: July 23, 2007, 06:25:05 PM »

A number of major changes/improvements/security and bug fixes have been made on this forum since the last official release of cpCommerce which was v1.1.0 (and most of these changes were made by myself). Simply replace or add to the php files that are currently in v1.1.0 with the files from this zip here.

CHANGE LOG-

Security Fixes:

NEW Feature:
  • Demographic Statistics: Under the reports section of the admin panel; you can now see the age, gender and more of the average account holder.

Functionality improvements and other bug fixes:
« Last Edit: May 22, 2008, 03:44:52 PM by Jenius » Report to moderator   Logged
Tony_1
Intrigued Member
**
Offline Offline

Posts: 87


View Profile
« Reply #1 on: August 15, 2007, 04:47:57 AM »

hold on.  there are index files in directories that don't have them.  kinda of confusing
Report to moderator   Logged
Jenius
Junior Member
*
Offline Offline

Posts: 29


View Profile WWW
« Reply #2 on: August 15, 2007, 08:14:42 AM »

there are index files in directories that don't have them.

That's actually the point, those folders should have index files in them but don't (this is a minor security fix). Just put the files in those folders.



PS- Here's a quick note on product names/IDs in paypal with this code:

Product Name-


If someone purchases more than 1 product, only the name of the last product (in alphabetical order) will show up.
Example- Someone buys products named "AAA" and "ZZZ"; only "ZZZ" will show as the name.


Product IDs-

For product IDs it's a bit more complicated (which is why I'm explaining this in the first place).

All products have there own URL.
Example- http://www.example.com/cpcommerce/product.php?id_product=9

The "9" at the end of the above example is an example of the product ID that I used in this code.

This code, as posted, can handle 5 different products and up to 3 of each of those 5 (but can easily be expanded if you know what you're doing) and each product is seperated by a period.
Example- Someone purchases 2 of product ID# 5 and 1 ID# 10. The output in paypal would look like "Product ID: 5.5.10.0.0.0" .

The zeros at the end are place holders if less than 5 different products are purchased; cpcommerce does not ever actually have a product ID# 0.
« Last Edit: August 15, 2007, 04:41:37 PM by Jenius » Report to moderator   Logged
Jenius
Junior Member
*
Offline Offline

Posts: 29


View Profile WWW
« Reply #3 on: August 19, 2007, 12:33:41 AM »

Added the following fix to the .zip file:

Fix for purchase recording in mysql database when using Paypal.

Note: at this point in time I haven't tested this fix; but based on the code it looks like it should work.
« Last Edit: August 19, 2007, 12:35:28 AM by Jenius » Report to moderator   Logged
Jenius
Junior Member
*
Offline Offline

Posts: 29


View Profile WWW
« Reply #4 on: October 27, 2007, 09:30:02 AM »

I’ve made a few changes to the zip file in the first post:


NEW Feature:
*Demographic Statistics: Under the reports section of the admin panel; you can now see age, gender and more of the average account holder.

Functionality improvements and other bug fixes:
*Error fixed with sub-products.
*Minor installation bug with MySQL 5.0 fixed.
*Bugged update function removed.



There are 3 reasons why I commented out the update function:
1- Since cpradio has been inactive on this project for over 5 months, I don't believe it's likely it will ever be updated.
2- The update function never worked properly in the first place.
3- Most importantly; if this website (cpradio.org) is down or not working for some reason, the admin section of cpCommerce on your own site cannot be opened. It will endlessly try to connect to this site to update but never actually finish loading; so you won't be able to use your own admin section until this site is back up or the update function is disabled.

In the last few weeks there have been a number of times when this site has been down for a few hours and I tried to use the admin section during one of these times. This is what alerted me to this bug in the first place and prompted me to do this.



Edit: I think this file now includes every fix that's been posted on the forum that wasn't already in v1.1.0; if anyone sees something I missed, post a link to it.
« Last Edit: October 31, 2007, 01:09:19 PM by Jenius » Report to moderator   Logged
Tony_1
Intrigued Member
**
Offline Offline

Posts: 87


View Profile
« Reply #5 on: November 04, 2007, 05:29:22 PM »

i'm getting this from your changes with the new demographics........

Demographic: Total Number: Percentage:
Total Number of all Customers: 4 100%
Females (defuault): 3 75%
Males: 1 25%
Do not receive Newletters (defuault): 0
Warning: Division by zero in C:\apache\users\etc\htdocs\abovethefirehouse\store\admin\reports\Demos\variables.php on line 118

Warning: Division by zero in C:\apache\users\etc\htdocs\abovethefirehouse\store\admin\reports\Demos\variables.php on line 119
0%
Receive Newletters: 4 100%
Don't have Hidden Information (defuault): 0
Warning: Division by zero in C:\apache\users\etc\htdocs\abovethefirehouse\store\admin\reports\Demos\variables.php on line 142

Warning: Division by zero in C:\apache\users\etc\htdocs\abovethefirehouse\store\admin\reports\Demos\variables.php on line 143
0%
Have Hidden Information: 4 100%
Do not receive Updates (defuault): 0
Warning: Division by zero in C:\apache\users\etc\htdocs\abovethefirehouse\store\admin\reports\Demos\variables.php on line 166

Warning: Division by zero in C:\apache\users\etc\htdocs\abovethefirehouse\store\admin\reports\Demos\variables.php on line 167
0%
Receive Updates: 4 100%
Do not wish to be Contacted (defuault): 0
Warning: Division by zero in C:\apache\users\etc\htdocs\abovethefirehouse\store\admin\reports\Demos\variables.php on line 190

Warning: Division by zero in C:\apache\users\etc\htdocs\abovethefirehouse\store\admin\reports\Demos\variables.php on line 191
0%
Can be Contacted: 4 100%
 
Age Group: Total Number: Percentage:
1 - 17 2 50%
18 - 25 -2 -50%
26 - 35 1 25%
36 - 45 1 25%
46+ 0
Warning: Division by zero in C:\apache\users\etc\htdocs\abovethefirehouse\store\admin\reports\Demos\variables.php on line 272

Warning: Division by zero in C:\apache\users\etc\htdocs\abovethefirehouse\store\admin\reports\Demos\variables.php on line 273
0%
Unknown 0
Warning: Division by zero in C:\apache\users\etc\htdocs\abovethefirehouse\store\admin\reports\Demos\variables.php on line 284

Warning: Division by zero in C:\apache\users\etc\htdocs\abovethefirehouse\store\admin\reports\Demos\variables.php on line 285
0%
 
Average Customer Age: 17.5

Report to moderator   Logged
Jenius
Junior Member
*
Offline Offline

Posts: 29


View Profile WWW
« Reply #6 on: November 04, 2007, 06:22:15 PM »

Thanks for reporting those errors. I've now corrected the file. Re-download it and replace your current   cpcommerce\admin\reports\Demos\variables.php   file with the new one. If you find any other errors with these files, please feel free to report them here and I'll atempt to correct them as best as I can.

PS- Please be sure to use the link marked "this zip here" in the top post. Do not use the zip attached to the bottom of that post because it is out of date, but I can't update it now that this post is in the announcements section and I'm not a moderator.
« Last Edit: November 04, 2007, 06:26:51 PM by Jenius » Report to moderator   Logged
Tony_1
Intrigued Member
**
Offline Offline

Posts: 87


View Profile
« Reply #7 on: November 05, 2007, 02:45:15 AM »

hmmmm i'm not finding it.


Thanks for reporting those errors. I've now corrected the file. Re-download it and replace your current   cpcommerce\admin\reports\Demos\variables.php   file with the new one. If you find any other errors with these files, please feel free to report them here and I'll atempt to correct them as best as I can.

PS- Please be sure to use the link marked "this zip here" in the top post. Do not use the zip attached to the bottom of that post because it is out of date, but I can't update it now that this post is in the announcements section and I'm not a moderator.
Report to moderator   Logged
softnow
cpModerators
Scholarly Member
*****
Offline Offline

Posts: 1812


View Profile
« Reply #8 on: November 05, 2007, 04:32:45 AM »

hmmmm i'm not finding it.



It is the blue writing on the third line. Click on it as it is the link

By the way I have replaced the old cpcchanges.zip file on the top post with the new file
« Last Edit: November 05, 2007, 04:35:45 AM by softnow » Report to moderator   Logged
Tony_1
Intrigued Member
**
Offline Offline

Posts: 87


View Profile
« Reply #9 on: November 05, 2007, 05:43:10 AM »

boy i'm glad i updated my glasses. heheh got the file and will try the new one...
Report to moderator   Logged
Jenius
Junior Member
*
Offline Offline

Posts: 29


View Profile WWW
« Reply #10 on: February 12, 2008, 09:20:06 PM »

Product IDs-

For product IDs it's a bit more complicated (which is why I'm explaining this in the first place).

All products have there own URL.
Example- http://www.example.com/cpcommerce/product.php?id_product=9

The "9" at the end of the above example is an example of the product ID that I used in this code.

This code, as posted, can handle 5 different products and up to 3 of each of those 5 (but can easily be expanded if you know what you're doing) and each product is seperated by a period.
Example- Someone purchases 2 of product ID# 5 and 1 ID# 10. The output in paypal would look like "Product ID: 5.5.10.0.0.0" .

The zeros at the end are place holders if less than 5 different products are purchased; cpcommerce does not ever actually have a product ID# 0.

I've modified the code so that it no longer has the trailing 0s and it can handle as many IDs as PayPal allows (which should be up to 255 characters worth).

Simply replace your old cpcommerce/payment/paypal/ files with the new ones from the zip. Please be sure to use the link marked "this zip here" in the top post as the download link at the bottom of that post is out of date again.

Also make sure you don't use any punctuation in any of your product names or you may get an error in PayPal.


On a completely different subject:
If you are not currently already using cpCommerce, I would highly recommend that you don’t. Seeing as cpradio has discontinued active work on this project and no one (including myself) is taking up his role; it is only a matter of time before the codebase becomes obsolete through security issues, lack of features and/or incompatibility. Anyone who doesn’t already have a lot invested in cpCommerce would most likely be better off using another solution. But, of course, if you are invested in it or don’t have another option for various reasons; make sure to use this update.
« Last Edit: February 19, 2008, 06:30:08 AM by Jenius » Report to moderator   Logged
Jenius
Junior Member
*
Offline Offline

Posts: 29


View Profile WWW
« Reply #11 on: February 22, 2008, 05:06:26 AM »

A new version is up. This version fixed a minor bug in configuration.php and category.php.



Known unresolved issues:

*All other issues are resolved, unknown to this forum at this time, or a problem that only exists with someone's own personal copy.


Please be sure to use the link marked "this zip here" in the top post as the download link at the bottom of that post is out of date.


This is mostly likely the last version I will be putting out.
« Last Edit: February 24, 2008, 07:49:06 PM by Jenius » Report to moderator   Logged
Kingangelo
Junior Member
*
Offline Offline

Posts: 0


View Profile
« Reply #12 on: February 27, 2008, 12:32:16 PM »

The zip file link at the top only leads me to a login screen, can anyone host this file up or post a new link?
Report to moderator   Logged
Tony_1
Intrigued Member
**
Offline Offline

Posts: 87


View Profile
« Reply #13 on: February 29, 2008, 04:32:10 PM »

The zip file link at the top only leads me to a login screen, can anyone host this file up or post a new link?

you click the zip from the first message in this thread?  i did and it works.
Report to moderator   Logged
cpradio
Administrator
Scholarly Member
*****
Offline Offline

Posts: 4021


cpradio


View Profile
« Reply #14 on: May 22, 2008, 04:42:21 AM »

Jenius, I removed the attachment to help avoid confusion.  I hope you don't mind.  Contact me if you want to be able to merge your changes into the SVN repository.

Thanks,
Matt
Report to moderator   Logged
Pages: [1] 2 Send this topic Print 
cpCommerce Support  |  Discussion  |  Announcements  |  Topic: Changes since v1.1.0
Jump to:  

Powered by MySQL Powered by PHP cpCommerce Support | Powered by SMF 1.1.
© 2004, Simple Machines LLC. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!