Re: Rush/Priority Handling Charge
Quote:
Originally Posted by
mlankeit
First, some clarification... The Priority Handling module works by adding a new class to Zen Cart, called "ot_priority_handling", which encapsulates the processing or code portion that makes the module work. But the class itself does not store anything. The handling the handling charge itself and any preferences are stored in the ZenCart configuration table in MySQL. During a live cart session, whether the user selects this option or not is stored in the $_SESSION variable. Outside of this, the class then uses $_SESSION to see whether to do any processing; if so, then it uses the stored preferences to come up with a value to charge, does the tax calculation appropriately, and finally whatever else so everything shows up correctly in the final order total.
I supposed you could modify the built-in shipping module to accomplish something similar. I'm not sure why this would be preferable. If you want to add a flat-rate shipping charge base, just define your shipping preferences this way. The additional charge would be there, but it would be hidden. If you want to call out the charge specifically and give the user the option to add it or not, then you can use something like Priority Handling, and maybe just modify the language file so the text description is what you want. Therefore, I do not see any semantic reason for modifying the built-in shipping module code, but maybe I don't understand your specific application.
Another thing to consider is that modifying the built-in shipping module changes a component of the base distribution. The main idea with the Priority Handling module is to make the functionality an add-on that does not alter the distribution code base. Therefore, any Zen Cart update would be much easier for you using this module versus you trying to re-apply whatever code changes you did before on the base distribution.
Hope this helps. Good Luck!
-ml
Thanks!
Re: Rush/Priority Handling Charge
As identified by this post in the One-Page Checkout's support thread, there's an interoperability issue between the Priority Handling total and OPC. I've created a GitHub repository for the order-total and have provided (so far) this beta version: https://github.com/lat9/priority_han...g/v1.3.0-beta2
Once validated, I'll be submitting v1.3.0 of Priority Handling to the Zen Cart plugins for review.
Re: Rush/Priority Handling Charge
Quote:
Originally Posted by
lat9
As identified by
this post in the
One-Page Checkout's support thread, there's an interoperability issue between the
Priority Handling total and OPC. I've created a GitHub repository for the order-total and have provided (so far) this beta version:
https://github.com/lat9/priority_han...g/v1.3.0-beta2
Once validated, I'll be submitting v1.3.0 of
Priority Handling to the Zen Cart plugins for review.
I've just submitted to the plugins for review. For those wanting a preview, you can download from the plugin's GitHub repository: https://github.com/lat9/priority_han...ses/tag/v1.3.0
Re: Rush/Priority Handling Charge
Quote:
Originally Posted by
lat9
It's now available for download from the Zen Cart plugins: https://www.zen-cart.com/downloads.php?do=file&id=236
Re: Rush/Priority Handling Charge
v2.0.0 of Priority Order Handling is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=236
This release updates the order-total for continued operation under Zen Cart v2.1.0+, Edit Orders 5.0.0+ and PHP 8.0+.