If this is your first visit, check our documentation. To post, register or login.
Forums / All Other Contributions/Addons / Edit Orders v3.0 for ZC 1.3.9 [Support Thread]

Edit Orders v3.0 for ZC 1.3.9 [Support Thread]

Started by divavocals on 4 Dec 2010, 6:07 PM · Views: 84,220

Results 601 to 620 of 660
9 Sep 2012, 7:03 PM
#601
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,816
Plugin Contributions:
4

Edit Orders v3.0 for ZC 1.3.9 [Support Thread]

lankeeyankee:

OK, I think I have the attributes issue sorted. If someone else would like to test it out in as many scenarios as possible to double check this works 100% correctly please let me know the results. I don't use one time charges, text attributes, price factors, or quantity discounts so I haven't tested for any of these.

Looks like an improvement to me, thank you for submitting. I like the use of one of the built-in Zen Cart pricing functions ;)

I am not going to be able to test, as the attribute / pricing code I'm working with no longer looks vaguely similar (and utilizes more of the built-in pricing functions - and the pricing_prefix).

The glass is not half full. The glass is not half empty. The glass is simply too big!
Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

9 Sep 2012, 9:57 PM
#602
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Edit Orders v3.0 for ZC 1.3.9 [Support Thread]

It sounds like the shortfalls of edit orders that I could never address (don't have the skillset to tackle) with regards to pricing, attributes are FINALLY being properly addressed.:clap: I'm assuming that the long standing issues with taxes will be "fixed" as a by-product of the pricing changes?? That would be awesome if it was..

lhungil:

The code changes I'm working with are not to filter out based upon guesses. I'm using the existing functions (used by zen cart when adding a product to an order) and running the attributes through the same filters (which are based on if the product uses attributes for pricing, if the attribute is read only, settings in the admin configuration, and several other factors).

Pricing is currently handled by Zen Cart based upon the attributes added to an order. You can price products by attributes (no product price) or by a combination of base / special pricing and attribute pricing. To take all of this into consideration and have the pricing stay consistent with how Zen Cart handles pricing, we need to use the Zen Cart functions for pricing and attribute handling.

The current code in Edit Orders uses it's own custom code for pricing and order totals instead of integrating with the functions built into Zen Cart. I have already come to the conclusion I will need to remove all the existing attribute handling code from Edit Order and start over. I also want to remove all the direct MySQL calls, so future porting to MsSQL, PostgreSQL, or even SQlite is more feasible.

Doing a complete rewrite of the attribute and pricing code will also ensure anyone who has made changes (or has add-ons) to the Zen Cart pricing functions will have the correct prices used when adding a product via the administrative interface. This change should also make upgrading in the future far simpler, since the code will be using internal Zen Cart functions as much as possible.
Understood and did not mean to imply that's the direction you were taking at all.. My concern was that filtering needed to not be based on a single setup tis all.:smile: I think what you are doing is WONDERFUL!! There was a volunteer who offered to make these fixes, but they dropped out of the scene leaving me with half working code that I ended up with the unenviable task of having to remove just to get things at least working with the old (albeit flawed) functionality.. So I am happy to see someone taking on these sections of Edit Orders.. It was on my wishlist, but outside of my skillset to complete..

lhungil:

The downside to the changes I am working on... Well a complete rewrite of the sections used to handle attributes is not a small undertaking... It will take some time and testing... I will not be able to release portions of the fixes to someone running on a different code base, since changes impact other areas of the code. What I am doing is pretty much a fork of the existing (and very awesome) Edit Orders 4.x code base.

It may be best (leaving the decision up to DivaVocals of course), to release 4.x before any of my attribute based changes are complete.

The portion of the code I started with (display and selection of attributes when adding a product) are close to complete. I've added integration with existing Zen Cart configuration variables, filtering based upon the same code used by Zen Cart (when adding a product to an order and fields used on the add product page), and handling for attributes of types: checkbox, radio, text / textarea, dropdown, and readonly (user-added are treated as readonly). I've not added support for "file" attribute types at this point.

Once I'm done with the display and selection portion, I will be moving into the "price calculation, product price adjust, and adding the product to an order" section. I plan to utilize existing Zen Cart functions as much as possible in this section, and may be including classes from the non admin site to accomplish the end goal - consistent and accurate pricing of the product including attributes.

Now before anyone starts complaining they need to be able to adjust prices... You still will be able to by directly editing the product price, tax, etc AFTER the product is added to the order. Just the "add products" pricing will be consistent with adding a product to the shopping cart or order.

Another aspect I have been tackling is optimization of SQL calls... The old code used a large number of SQL calls to pull in and change information. The same could be accomplished with far less calls. While minor, some of my clients are on hosting which rate limits SQL calls... so changes to lower the number of SQL calls and utilization of caching where appropriate are changes I will be adding (and yes, caching can be turned off). This code should also integrate well with QueryCache, which all of my clients (but not all my test environments) utilize.
Based on all the changes you've made, I think that the Edit Orders v4.0 release should be YOUR code with all the RIGHT changes for pricing and attributes in place, and consider the Edit Orders on my site a working beta release.. I'll be happy to update the readme file if you like, but your code is JUST what Edit Orders has needed for a while..

lhungil:

Looks like an improvement to me, thank you for submitting. I like the use of one of the built-in Zen Cart pricing functions ;)

I am not going to be able to test, as the attribute / pricing code I'm working with no longer looks vaguely similar (and utilizes more of the built-in pricing functions - and the pricing_prefix).

lankeeyankee:

OK, I think I have the attributes issue sorted. If someone else would like to test it out in as many scenarios as possible to double check this works 100% correctly please let me know the results. I don't use one time charges, text attributes, price factors, or quantity discounts so I haven't tested for any of these.
So far, if something is on special the price is correct with multiple attributes selected. This is with some attributes being discounted when on sale/special and some not, all attributes being discounted, and even if it's on sale/special but you uncheck the "Use Specials/Sales Price" box in step 4 of adding the product then the non-discounted prices are used correctly.

Hopefully this won't need any more changes! But I am not holding my breath!!:laugh:

Very excited to finally see some improvements for the better happening here!! :smile:

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

9 Sep 2012, 11:15 PM
#603
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Edit Orders v3.0 for ZC 1.3.9 [Support Thread]

DivaVocals:

It sounds like the shortfalls of edit orders that I could never address (don't have the skillset to tackle) with regards to pricing, attributes are FINALLY being properly addressed.:clap: I'm assuming that the long standing issues with taxes will be "fixed" as a by-product of the pricing changes?? That would be awesome if it was..

Understood and did not mean to imply that's the direction you were taking at all.. My concern was that filtering needed to not be based on a single setup tis all.:smile: I think what you are doing is WONDERFUL!! There was a volunteer who offered to make these fixes, but they dropped out of the scene leaving me with half working code that I ended up with the unenviable task of having to remove just to get things at least working with the old (albeit flawed) functionality.. So I am happy to see someone taking on these sections of Edit Orders.. It was on my wishlist, but outside of my skillset to complete..

Based on all the changes you've made, I think that the Edit Orders v4.0 release should be YOUR code with all the RIGHT changes for pricing and attributes in place, and consider the Edit Orders on my site a working beta release.. I'll be happy to update the readme file if you like, but your code is JUST what Edit Orders has needed for a while..

Very excited to finally see some improvements for the better happening here!! :smile:

Very excited to finally see some improvements for the better happening here!!:smile:
nods in agreement :yes:

Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation

9 Sep 2012, 11:51 PM
#604
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,816
Plugin Contributions:
4

Re: Edit Orders v3.0 for ZC 1.3.9 [Support Thread]

DivaVocals:

Based on all the changes you've made, I think that the Edit Orders v4.0 release should be YOUR code with all the RIGHT changes for pricing and attributes in place, and consider the Edit Orders on my site a working beta release.. I'll be happy to update the readme file if you like, but your code is JUST what Edit Orders has needed for a while..

I believe the first release of Edit Orders 4.x should be yours to release. The 4.0 version happened because of you (and the community's) hard work. I'm just working on making some additional changes I need (and hopefully others will find useful).

When and If my changes are stable, if you want me to do a 4.1 or 4.2 etc release... I can, but I do not mind you handling the releases. Having another look over my code before a final release of a large module such as Edit Orders is very valuable and I value input from you and the community. I'm not perfect, and thus my code is often not perfect.

DivaVocals:

Understood and did not mean to imply that's the direction you were taking at all.
I'm trusting y'all to catch (or at least point out) where I may have missed something. Just saw a number of questions about how I was planning to handle things; Wanted to shed a little light on the subject (and share my thoughts)... so y'all can tear it apart if I am missing something big :)

The glass is not half full. The glass is not half empty. The glass is simply too big!
Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

10 Sep 2012, 6:02 AM
#605
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Edit Orders v3.0 for ZC 1.3.9 [Support Thread]

lhungil:

I believe the first release of Edit Orders 4.x should be yours to release. The 4.0 version happened because of you (and the community's) hard work. I'm just working on making some additional changes I need (and hopefully others will find useful).

When and If my changes are stable, if you want me to do a 4.1 or 4.2 etc release... I can, but I do not mind you handling the releases. Having another look over my code before a final release of a large module such as Edit Orders is very valuable and I value input from you and the community. I'm not perfect, and thus my code is often not perfect.

I'm trusting y'all to catch (or at least point out) where I may have missed something. Just saw a number of questions about how I was planning to handle things; Wanted to shed a little light on the subject (and share my thoughts)... so y'all can tear it apart if I am missing something big :)Fair enough.. I finally had a few free moments to work towards finalizing the readme docs.. I'll grab the updates that have been posted here by you and lankeeyankee and plan on trying to get this all updated and submitted by the next weekend (the 15th)..

When you version is ready I would LOVE to test it, and I have no particular preference about how your version is released.. I am just happy you are sharing your work with the community and making Edit Order's better..:smile:

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

11 Sep 2012, 3:09 AM
#606
lankeeyankee avatar

lankeeyankee

Totally Zenned

Join Date:
Jan 2007
Posts:
1,514
Plugin Contributions:
1

Re: Edit Orders v3.0 for ZC 1.3.9 [Support Thread]

I can't really help much more than what I have chopped out to make my day easier with the fix to the current code. I work 100+ hours/week with the regular day to day and have extremely limited time for coding much to my chagrin since I enjoy it.

Hopefully, hopefully the devs will decide to incorporate this feature into the core and will fix it properly. This should be part of the core, IMHO. I bet the great majority of store owners need to edit an order one way or another, it makes logical sense to have this ability in the core since it's so useful by the broadest spectrum of users. Hopefully Dr.Byte, Ajeh, Kim or Wilt will look at this and decide that it's a critical feature to add...

I will certainly help debug and check out the code to help with some bug squashing, just let me know when you are ready to alpha test. I just don't have the time to participate in the recoding effort, but thanks for offering to take it on!


Zen Cart and it's community are the best!!

13 Sep 2012, 8:17 PM
#607
vandydavid avatar

vandydavid

New Zenner

Join Date:
May 2007
Posts:
24
Plugin Contributions:
0

Re: Edit Orders v3.0 for ZC 1.3.9 [Support Thread]

I am trying to increase the size of the Input Box on the Admin Side for Edit Orders and can not figure out where to change the size. I need some help fairly quickly.

Attachment 11130

13 Sep 2012, 9:43 PM
#608
vandydavid avatar

vandydavid

New Zenner

Join Date:
May 2007
Posts:
24
Plugin Contributions:
0

Re: Edit Orders v3.0 for ZC 1.3.9 [Support Thread]

Figured it out...Tif Increase Size change the "Edit Orders.php file Directly under the Admin Folder. Change all the Input Box sizes to whatever size you wish...but they all have to be the same size or it will not pull in the data.

19 Sep 2012, 9:10 AM
#609
solo_400 avatar

solo_400

Zen Follower

Join Date:
Aug 2009
Posts:
369
Plugin Contributions:
0

Re: Edit Orders v3.0 for ZC 1.3.9 [Support Thread]

Any idea when 1.50 compatible version of this module will be officially sent to download area ?

thx

19 Sep 2012, 9:20 AM
#610
webmart avatar

webmart

New Zenner

Join Date:
Nov 2011
Posts:
34
Plugin Contributions:
0

Re: Edit Orders v3.0 for ZC 1.3.9 [Support Thread]

solo_400:

Any idea when 1.50 compatible version of this module will be officially sent to download area ?

Current version work perfectly under 1.5 :smile:

19 Sep 2012, 2:44 PM
#611
solo_400 avatar

solo_400

Zen Follower

Join Date:
Aug 2009
Posts:
369
Plugin Contributions:
0

Re: Edit Orders v3.0 for ZC 1.3.9 [Support Thread]

Webmart:

Current version work perfectly under 1.5 :smile:

Thanks , but why isn't specified that is compatible with 1.5.0 version ? -- Zen Cart® Versions v1.3.9

19 Sep 2012, 2:54 PM
#612
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Re: Edit Orders v3.0 for ZC 1.3.9 [Support Thread]

@Solo_400, the feature of the plugins area which shows compatibility is new - it didn't exist in Jan 2011 back when Edit Orders 3 was last updated. So for old mods, this can sometimes be misleading.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

19 Sep 2012, 3:24 PM
#614
solo_400 avatar

solo_400

Zen Follower

Join Date:
Aug 2009
Posts:
369
Plugin Contributions:
0

Re: Edit Orders v3.0 for ZC 1.3.9 [Support Thread]

Super !

19 Sep 2012, 3:25 PM
#615
christymreed avatar

christymreed

Zen Follower

Join Date:
May 2009
Location:
Kelso, WA
Posts:
132
Plugin Contributions:
0

Re: Edit Orders v3.0 for ZC 1.3.9 [Support Thread]

I am still running Zen Cart 1.3.8a. I have not yet figured out how to upgrade to the latest version. I need to be able to edit my orders and Edit Orders looks like a good solution. Will it work with my version or am I asking for trouble?

Thanks,
Christy

19 Sep 2012, 3:31 PM
#616
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Edit Orders v3.0 for ZC 1.3.9 [Support Thread]

christymreed:

I am still running Zen Cart 1.3.8a. I have not yet figured out how to upgrade to the latest version. I need to be able to edit my orders and Edit Orders looks like a good solution. Will it work with my version or am I asking for trouble?

Thanks,
Christy

Neither the 1.3.9 or v1.5 versions were tested with older versions.. So no clue if they would.. Suggest that you think about upgrading Zen Cart 1.3.8 versus worrying about trying to make a version of Edit Orders written for newer versions of Zen Cart work with an outdated and unsafe version of Zen Cart. Zen Cart v1.3.8 is vulnerable to hackers..

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

19 Sep 2012, 4:57 PM
#617
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Edit Orders v3.0 for ZC 1.3.9 [Support Thread]

lhungil:

I believe the first release of Edit Orders 4.x should be yours to release. The 4.0 version happened because of you (and the community's) hard work. I'm just working on making some additional changes I need (and hopefully others will find useful).

When and If my changes are stable, if you want me to do a 4.1 or 4.2 etc release... I can, but I do not mind you handling the releases. Having another look over my code before a final release of a large module such as Edit Orders is very valuable and I value input from you and the community. I'm not perfect, and thus my code is often not perfect.

I'm trusting y'all to catch (or at least point out) where I may have missed something. Just saw a number of questions about how I was planning to handle things; Wanted to shed a little light on the subject (and share my thoughts)... so y'all can tear it apart if I am missing something big :)

So I am trying to incorporate the patches you posted here, and I am not sure HOW to interpret the content of these files..

Index: edit_orders_defines.php
===================================================================
--- edit_orders_defines.php    (revision 376)
+++ edit_orders_defines.php    (working copy)
@@ -1,6 +1,7 @@
 <?php
 // Admin Menu Boxes
-  define('BOX_CONFIGURATION_EDIT_ORDERS', 'Edit Orders'); 
+define('BOX_CONFIGURATION_EDIT_ORDERS', 'Edit Orders');
+define('FILENAME_EDIT_ORDERS', 'edit_orders');
 // DO NOT EDIT!
 define('SUPER_ORDERS_VERSION', '4.0');
 // DO NOT EDIT!

Not sure if the @ symbol stuff is code or something else, and I don't think I fully understand the + and - signs.. Are the pluses things to add, and the minus things to remove?? Could use an interpreter..

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

19 Sep 2012, 5:10 PM
#618
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Edit Orders v3.0 for ZC 1.3.9 [Support Thread]

lhungil:

I believe the first release of Edit Orders 4.x should be yours to release. The 4.0 version happened because of you (and the community's) hard work. I'm just working on making some additional changes I need (and hopefully others will find useful).

When and If my changes are stable, if you want me to do a 4.1 or 4.2 etc release... I can, but I do not mind you handling the releases. Having another look over my code before a final release of a large module such as Edit Orders is very valuable and I value input from you and the community. I'm not perfect, and thus my code is often not perfect.

I'm trusting y'all to catch (or at least point out) where I may have missed something. Just saw a number of questions about how I was planning to handle things; Wanted to shed a little light on the subject (and share my thoughts)... so y'all can tear it apart if I am missing something big :)

DivaVocals:

So I am trying to incorporate the patches you posted here, and I am not sure HOW to interpret the content of these files..

Index: edit_orders_defines.php

--- edit_orders_defines.php (revision 376)
+++ edit_orders_defines.php (working copy)
@@ -1,6 +1,7 @@

<?php // Admin Menu Boxes - define('BOX_CONFIGURATION_EDIT_ORDERS', 'Edit Orders'); +define('BOX_CONFIGURATION_EDIT_ORDERS', 'Edit Orders'); +define('FILENAME_EDIT_ORDERS', 'edit_orders'); // DO NOT EDIT! define('SUPER_ORDERS_VERSION', '4.0'); // DO NOT EDIT! ``` > > Not sure if the @ symbol stuff is code or something else, and I don't think I fully understand the + and - signs.. Are the pluses things to add, and the minus things to remove?? Could use an interpreter.. Just so it's clear the above file is a sample of one of the files you attached here that I am not quite understanding. I have the same issue understanding what to do exactly with all the patches you have submitted.. I was surprised because I was expecting to find revised PHP files so that I could simply use my file comparison program to see the changes you made.. the text files and this format are a bit confusing to me... Hoping you can help me crack the code :smile:

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

19 Sep 2012, 11:45 PM
#619
lankeeyankee avatar

lankeeyankee

Totally Zenned

Join Date:
Jan 2007
Posts:
1,514
Plugin Contributions:
1

Re: Edit Orders v3.0 for ZC 1.3.9 [Support Thread]

DivaVocals:

Just so it's clear the above file is a sample of one of the files you attached here that I am not quite understanding. I have the same issue understanding what to do exactly with all the patches you have submitted.. I was surprised because I was expecting to find revised PHP files so that I could simply use my file comparison program to see the changes you made.. the text files and this format are a bit confusing to me... Hoping you can help me crack the code :smile:

Remove the line with - and add the lines with +. It looks like there were some extra spaces in front of the first define which is why it's repeated without spaces as the new line.

Leave out the rest ( with @@ and the lines above), this is notes about changes and do not need to be included.


Zen Cart and it's community are the best!!

19 Sep 2012, 11:52 PM
#620
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Edit Orders v3.0 for ZC 1.3.9 [Support Thread]

lankeeyankee:

Remove the line with - and add the lines with +. It looks like there were some extra spaces in front of the first define which is why it's repeated without spaces as the new line.

Leave out the rest ( with @@ and the lines above), this is notes about changes and do not need to be included.
Yes that solves this one file.. the other files are not as clear cut as there seem to be pluses where no actual change occurred.. I really dunno what to do here.. In the name of expediency I may have to skip all of these patches and come back at them later.. It's taken me long enough to update the readme, and I simply do not have time to figure out these files to get down to the actual changes..:no:

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.