Latest News:
v1.2.0 Released Tonight!
on June 21, 2008, 05:12:05 PM [
View
]
Welcome,
Guest
. Please
login
or
register
.
July 24, 2008, 03:50:19 AM
Show Unread Posts
|
View Replies to Your Posts
1 Hour
1 Day
1 Week
1 Month
Forever
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
Author
Topic: Changes since v1.1.0 (Read 2865 times)
Jenius
Junior Member
Offline
Posts: 25
Changes since v1.1.0
«
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:
Major security fix for the admin section (to prevent SQL injection)
.
Minor security fix for the admin section and downloadable products
.
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:
Numerous bug fixes and improvements to the Paypal payment method
.
Several improvements to the main display area
.
Error fixed with sub-products
.
Minor installation bug with MySQL 5.0 fixed
.
Bugged update function removed
.
Gender selection when viewing customer details is fixed
.
Minor bug in configuration.php and category.php is fixed
.
«
Last Edit: May 22, 2008, 03:44:52 PM by Jenius
»
Report to moderator
Logged
Tony_1
Intrigued Member
Offline
Posts: 87
Re: Changes since v1.1.0
«
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
Posts: 25
Re: Changes since v1.1.0
«
Reply #2 on:
August 15, 2007, 08:14:42 AM »
Quote from: Tony_1 on August 15, 2007, 04:47:57 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
Posts: 25
Re: Changes since v1.1.0
«
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
Posts: 25
Re: Changes since v1.1.0
«
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
Posts: 87
Re: Changes since v1.1.0
«
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
Posts: 25
Re: Changes since v1.1.0
«
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
Posts: 87
Re: Changes since v1.1.0
«
Reply #7 on:
November 05, 2007, 02:45:15 AM »
hmmmm i'm not finding it.
Quote from: Jenius 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.
Report to moderator
Logged
softnow
cpModerators
Scholarly Member
Offline
Posts: 1812
Re: Changes since v1.1.0
«
Reply #8 on:
November 05, 2007, 04:32:45 AM »
Quote from: Tony_1 on November 05, 2007, 02:45:15 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
Posts: 87
Re: Changes since v1.1.0
«
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
Posts: 25
Re: Changes since v1.1.0
«
Reply #10 on:
February 12, 2008, 09:20:06 PM »
Quote from: Jenius on August 15, 2007, 08:14:42 AM
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
Posts: 25
Re: Changes since v1.1.0
«
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:
Javascript execution security vulnerability
.
PayPal does not respond back to cpCommerce or send email notices of purchases
.
The 'Sort By' function in each category only works for names.
*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
Posts: 0
Re: Changes since v1.1.0
«
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
Posts: 87
Re: Changes since v1.1.0
«
Reply #13 on:
February 29, 2008, 04:32:10 PM »
Quote from: Kingangelo 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?
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
Posts: 4012
cpradio
Re: Changes since v1.1.0
«
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
cpCommerce Support
|
Discussion
|
Announcements
| Topic:
Changes since v1.1.0
Jump to:
Please select a destination:
-----------------------------
Discussion
-----------------------------
=> Announcements
=> Contests
=> General Chat
=> Showcase
-----------------------------
Forum Software
-----------------------------
=> General Comments
=> Forum Bugs
-----------------------------
Version 1.x.x
-----------------------------
=> Questions
===> Installation
===> Editing of Templates and Modules
===> Payment Methods
===> Customizing
===> Odd Warning/Error Messages
=> Bug Reports
===> Unresolved
===> Resolved
===> Resolved In Next Release
=> Suggestions
===> Requests
===> Implemented
===> Not Implemented
=> Contributions
===> Submissions
===> Addons
===> Language Packs
===> Modules
===> Templates
=> Paid Customizations
===> Request a Paid Customization
===> Completed Paid Customizations
-----------------------------
Version 0.07
-----------------------------
=> Questions
===> Installation
===> Editing of Templates and Modules
===> Payment Methods
===> Customizing
===> Odd Warning/Error Messages
=> Bug Reports
===> Unresolved
===> Resolved
=> Suggestions
===> Requests
===> Implemented
===> Not Implemented
=> Contributions
===> Submissions
===> Addons
===> Language Packs
===> Modules
===> Templates
=> Paid Customizations
===> Request a Paid Customization
===> Completed Paid Customizations
-----------------------------
Version 0.06 (Archive Only)
-----------------------------
=> Questions
===> Installation
===> Editing of Templates and Modules
===> Payment Methods
===> Customizing
===> Odd Warning/Error Messages
=> Bug Reports
===> Unresolved
===> Resolved
=> Suggestions
===> Requests
===> Implemented
=> Contributions
===> Submissions
===> Addons
===> Language Packs
===> Modules
===> Templates
cpCommerce Support | Powered by
SMF 1.1
.
© 2004,
Simple Machines LLC
. All Rights Reserved.