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 581 to 600 of 660
30 Aug 2012, 12:47 AM
#581
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]

DivaVocals:

Your patch would be even more helpful if you could explain the issues you found and at a high level at least walk through how you resolved them.. This way I can do my own testing to see if I too can replicate the problem before applying any fixes to my package..

Very basic, thus the patch file. Two lines were changed.
a) Fixed the name of a variable to be compatible with *nix hosts. Basically a case-sensitivity change. Fixes a error with a SQL check prior to updating order totals (tax or no tax).
b) Added a check to make sure the selected category (when selecting a product to add) has products. If it does not, the page stays at step 1 of adding a product. Removes extraneous warning and errors in log files. Can probably be improved upon by using the message stack or some such to provide active feedback.

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

30 Aug 2012, 3:56 AM
#582
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:

Very basic, thus the patch file. Two lines were changed.
a) Fixed the name of a variable to be compatible with *nix hosts. Basically a case-sensitivity change. Fixes a error with a SQL check prior to updating order totals (tax or no tax).
b) Added a check to make sure the selected category (when selecting a product to add) has products. If it does not, the page stays at step 1 of adding a product. Removes extraneous warning and errors in log files. Can probably be improved upon by using the message stack or some such to provide active feedback.Good stuff!!! Thanks for the patch.. I'll have a looksee this weekend if I can squeeze a little time out and update the files on my site..

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.

30 Aug 2012, 2:28 PM
#583
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]

I've taken a look at this issue and believe I have a fix. The configuration page was registered as an admin page, but the actual edit_orders page was not. On the profile permissions page it will add a new admin page under "modules" to control access to the file "edit_orders".

Patch Details:
a) Added a new definition. Required to support an additional "admin page".

b) I've added a snippet to the init file. First it checks for the presence of a specific function added in Zen Cart 1.5. If present, it checks to see if the admin page has already been registered. If not already registered, it finds an appropriate page sort order and registers the new "admin page".

I've taken the liberty of moving the edit orders configuration admin page code into the block created in b). More of a personal preference, I prefer doing a check to undoing the registration. Feel free to move the code back outside if desired.

[Attachment no longer available]

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

30 Aug 2012, 3:06 PM
#584
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]

Address Editing
This works really well from what I have observed. During integration I have noticed Edit Orders directly modifies the addresses in the order table. This makes complete sense as changes a customer may make to their address book will not affect the address information supplied for the order (also supports better order address history).

Request
However it would be "nice" to have the option of selecting an address from the customer's address book to overwrite these fields. This would save some administrative time if the customer contacts the store to change the shipping address of the order (prior to the order shipping). I'm sure there are a few other cases where this could be useful.

Scenario

  1. Customer (or admin) places an order.
  2. Customer receives confirmation email and notices they have the wrong address.
  3. Customer updates address in their address book.
  4. Customer contacts store and requests the order be sent to the updated address.
  5. Order Manager updates shipping address on the order (if not already shipped).
    Notes
    This is just a feature request, not a bug / issue. The current Edit Order module already supports changing the addresses for the order by manually typing in the new address information. It would just be nice in some cases to also be able to select the new address from the customer's address book.

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

30 Aug 2012, 4:48 PM
#585
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]

After taking a little longer look, the patch "a (edit_orders_defines)" is not needed and is already included correctly in this module. Only patch "b (init_eo_config)" is needed to correct the admin profile issue.

I will be adding a new patch shortly with corrections. Please disregard Edit-Orders-4.02-patch2.zip

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

30 Aug 2012, 5:18 PM
#586
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]

Alright, here is the admin profiles patches with corrections. Two files were modified in this patch. I've included both the patches and copies of the files I used when testing the changes.

Enjoy!

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

30 Aug 2012, 8:05 PM
#587
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]

So I have searched several ways in the thread and haven't found if the attributes bug from the older version was ever fixed. This is the bug where if you are adding a new product and it has attributes and the "use specials/sale price" box is checked it will add the original price plus the sale price to give the wrong price.


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

30 Aug 2012, 9:32 PM
#588
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:

So I have searched several ways in the thread and haven't found if the attributes bug from the older version was ever fixed. This is the bug where if you are adding a new product and it has attributes and the "use specials/sale price" box is checked it will add the original price plus the sale price to give the wrong price.
None of the tax or attribute bugs were addressed at all.. In my announcement post I list out the fixes/changes made..

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.

31 Aug 2012, 3:49 AM
#589
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 saw that but also noticed other folks chipping in bits here and there so thought I'd search first and ask after. Thanks, guess I will have to finally have a crack at it, I'm training new people on certain functions, editing orders being one, and it's a pain to have to teach them about this bug and workaround and that bug and workaround....:blink::shocking::laugh:


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

31 Aug 2012, 4:53 AM
#590
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:

I saw that but also noticed other folks chipping in bits here and there so thought I'd search first and ask after. Thanks, guess I will have to finally have a crack at it, I'm training new people on certain functions, editing orders being one, and it's a pain to have to teach them about this bug and workaround and that bug and workaround....:blink::shocking::laugh:
Nope.. I had someone who volunteered to work on the attributes bugs for this release.. He started like gangbusters, then sadly his work got sloppy and he clearly wasn't testing the code he was writing nor did he seem to have a grasp on the attribute issues with this add-on (despite my providing LOTS of documentation and mockups). He eventually bailed out of helping with this update and left me with the MESS of having to excise all his half working code out.. sigh It is WAY over my head to fix the attributes and tax bugs with Edit Orders.. So I targeted the low hanging fruit of making sure this add-on was v1.5 ready and a few minor changes that I could easily make..

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.

31 Aug 2012, 5:32 AM
#591
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]

OK, I think I have the attributes bug fixed when adding new products with attributes. At least it's working for me with a variety of scenarios, but there could be problems from the way other users have their attributes set up. Mine are all priced by attributes, this may or may not affect this functionality. So, hopefully some folks will try this out and report back their results.

To reiterate, the problem I was having was when adding products with attributes and the products are using the sale/special price and that checkbox is selected on the finial step when entering quantity. It was adding up prices incorrectly, really large prices as if combining the sale price with the regular price.

Here's what I did:

in admin/edit_orders.php on line 1294 of an unaltered file find:

or die("Failed to connect database: ");
                while($row10a=mysql_fetch_array($result10a, MYSQL_NUM)) { 
                                        if ($row10a[2] == 1 && $_POST[applyspecialstoprice])
                                            $newpricechange = zen_get_discount_calc($add_product_products_id, $row10a[3], $row10a[0], $add_product_quantity);

and change it to this:

or die("Failed to connect database: ");
                
    $new_attributes_price= '';
    $attributes_values = $result10a;
    $attributes_price_final = zen_get_attributes_price_final($attributes_values->fields["products_attributes_id"], 1, $attributes_values, 'false');
    $attributes_price_final_value = $attributes_price_final;
    $attributes_price_final = $currencies->display_price($attributes_price_final, zen_get_tax_rate(1), 1);
  if ($attributes_values->fields["attributes_discounted"]) {
    $new_attributes_price = zen_get_attributes_price_final($attributes_values->fields["products_attributes_id"], 1, '', 'false');
    $new_attributes_price = zen_get_discount_calc($add_product_products_id, true, $new_attributes_price);
    if ($new_attributes_price != $attributes_price_final_value) {
      $new_attributes_price = $currencies->display_price($new_attributes_price, zen_get_tax_rate(1), 1);
    } else {
      $new_attributes_price = '';
    }
  }
                while($row10a=mysql_fetch_array($result10a, MYSQL_NUM)) { 
                                        if ($row10a[2] == 1 && $_POST[applyspecialstoprice])
                                            $newpricechange = $new_attributes_price;

If anyone else wants to try it out and let me know what you experience I will try to fix any problems that arise. Hopefully it won't cause any problems and it will all work the way it should in every scenario.:smile:


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

31 Aug 2012, 6:20 AM
#592
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]

scratch that, it only works if there is one attribute with a price, if you have more than one attribute that adds to the price this won't work. This is what happens when you have been working on the computer all day and you start digging into code after 1am and forget the basic principals of testing thoroughly before opening your big mouth.:blush::laugh:

I will give it another whirl tomorrow when I am fresher and more on the ball.:smile:


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

31 Aug 2012, 6:26 AM
#593
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:

scratch that, it only works if there is one attribute with a price, if you have more than one attribute that adds to the price this won't work. This is what happens when you have been working on the computer all day and you start digging into code after 1am and forget the basic principals of testing thoroughly before opening your big mouth.:blush::laugh:

I will give it another whirl tomorrow when I am fresher and more on the ball.:smile:
:laugh: I get it.. go to bed.. I have a software demo to conduct tomorrow morning and I need to hit the rack myself..

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.

4 Sep 2012, 5:31 PM
#594
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]

I'm currently working on the handling of attributes, not sure how far I will get in the process, but just wanted to let anyone else who may be working on these know. Maybe we can pool our efforts?

The first part of attribute handling I am tackling are improvements to filter out attributes not used for pricing. My current changes appear to be correctly filtering out read only attributes not used for pricing during "add products (step 3)". Still testing the changes and verifying it does not break anything in my test environments.

Next I will attempt to modify the pricing code to parse the submitted information, convert it to the format expected by Zen Cart 1.5 functions, and then use the pricing functions for products. This should hopefully provide a good starting point for further fixes and enhancements to the handling of product attributes.

As always, once I start posting more of my patches, I will welcome others to test the changes and provide constructive feedback.

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

4 Sep 2012, 7:14 PM
#595
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'm currently working on the handling of attributes, not sure how far I will get in the process, but just wanted to let anyone else who may be working on these know. Maybe we can pool our efforts?

The first part of attribute handling I am tackling are improvements to filter out attributes not used for pricing. My current changes appear to be correctly filtering out read only attributes not used for pricing during "add products (step 3)". Still testing the changes and verifying it does not break anything in my test environments.

Next I will attempt to modify the pricing code to parse the submitted information, convert it to the format expected by Zen Cart 1.5 functions, and then use the pricing functions for products. This should hopefully provide a good starting point for further fixes and enhancements to the handling of product attributes.

As always, once I start posting more of my patches, I will welcome others to test the changes and provide constructive feedback.

You are my hero!!!:clap: Sounds like you are tackling some of the old attribute issues that have PLAGUED this add-on forever.. AWESOME... Gotta take a look at the changes you posted already and bundle them into the version available on my site.. I am hoping to kick loose some of the conversion work that has kept me tied up and finally get the readme updated and this version SUBMITTED officially..

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.

6 Sep 2012, 11:46 PM
#596
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]

lhungil:

I'm currently working on the handling of attributes, not sure how far I will get in the process, but just wanted to let anyone else who may be working on these know. Maybe we can pool our efforts?

The first part of attribute handling I am tackling are improvements to filter out attributes not used for pricing. My current changes appear to be correctly filtering out read only attributes not used for pricing during "add products (step 3)". Still testing the changes and verifying it does not break anything in my test environments.

Next I will attempt to modify the pricing code to parse the submitted information, convert it to the format expected by Zen Cart 1.5 functions, and then use the pricing functions for products. This should hopefully provide a good starting point for further fixes and enhancements to the handling of product attributes.

As always, once I start posting more of my patches, I will welcome others to test the changes and provide constructive feedback.

If you are going to filter out attributes not directly related to pricing you are still going to include them in the product addition? I am not sure that this is really necessary to get this working correctly and you want to include all attributes when adding a product. The sticking point here is in admin/edit_orders.php on line 1296:

if ($row10a[2] == 1 && $_POST[applyspecialstoprice])
                                            $newpricechange = zen_get_discount_calc($add_product_products_id, $row10a[3], $row10a[0], $add_product_quantity);

Start making changes here and you change the pricing results for sales and specials prices. In looking at the rest of the code that includes this variable I haven't cracked the change to make it work right. What is happening is if you have a product priced by attributes and there are two or more attributes with contributing prices it will add the 1st attribute price, the 1st attribute price again with the 2nd and 3rd, 4th etc. If there are more than 1 attribute but the 2nd and on do not add to the price then my initial change works correctly and the sale price is displayed. So we need to just figure out why it's adding the 1st price twice when the 2nd and beyond contribute to the price and then we're sorted and everything is working fine.

I haven't had any free time lately to go back and look at this again since my last, fruitless stab. There is somewhere that is either adding $row10a[0] - which is the attribute price returned from the db array - as well as $newpricechange, or is calling $newpricechange twice and adding them together. I will have free time this weekend since my family will be out of town and I can work without distractions and I am determined to get this sorted since it's an enormous time waster the way it is and we use it daily.


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

7 Sep 2012, 2:37 AM
#597
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]

If I may interject here.. Given my skillset, I certainly can't contribute any code to this effort.. :smile: However, I do have some usability observations to make.. I think any code which affects attributes needs to be planned out so that one change doesn't have an inadvertent side effect for shop owners.

IMHO using blanket methods to exclude attributes will lead to an undesired effect. To exclude attributes that are truly "optional" product attributes, I think there needs to be a means for a shopowner to explicitly flag/mark which attributes they want excluded from the add/edit products function.

One of my client's paid to have a v1.5 ready version of Stock by Attributes which includes a similar feature. This allows him to specify which attributes will be excluded from stock variants.

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.

8 Sep 2012, 9:07 PM
#598
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]

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.

In admin/edit_orders.php on line 1364 change:

$Query = "insert into " . TABLE_ORDERS_PRODUCTS . " set
                orders_id = $oID,
                products_id = $add_product_products_id,
                products_model = '$p_products_model',
                products_name = '" . str_replace("'", "'", $p_products_name) . "',
                products_price = '$product_price_woa',
                final_price = '" . ($product_price_woa + $AddedOptionsPrice) . "',
                products_tax = '$ProductsTax',
                products_quantity = $add_product_quantity,
                                onetime_charges = $AddedOptionsPrice_OneTime;";

to this:

if ($_POST[applyspecialstoprice] && zen_get_products_special_price((int)$add_product_products_id) && $AddedOptionsPrice != 0) {
            $Query = "insert into " . TABLE_ORDERS_PRODUCTS . " set
                orders_id = $oID,
                products_id = $add_product_products_id,
                products_model = '$p_products_model',
                products_name = '" . str_replace("'", "'", $p_products_name) . "',
                products_price = '$product_price_woa',
                final_price = '" . ($products_details["final_price"] + $AddedOptionsPrice) . "',
                products_tax = '$ProductsTax',
                products_quantity = $add_product_quantity,
                                onetime_charges = $AddedOptionsPrice_OneTime;";
                                } else {
            $Query = "insert into " . TABLE_ORDERS_PRODUCTS . " set
                orders_id = $oID,
                products_id = $add_product_products_id,
                products_model = '$p_products_model',
                products_name = '" . str_replace("'", "'", $p_products_name) . "',
                products_price = '$product_price_woa',
                final_price = '" . ($product_price_woa + $AddedOptionsPrice) . "',
                products_tax = '$ProductsTax',
                products_quantity = $add_product_quantity,
                                onetime_charges = $AddedOptionsPrice_OneTime;";
                                }

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:


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

9 Sep 2012, 6:07 PM
#599
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]

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.

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, 6:32 PM
#600
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]

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.

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