Er yes I guess so, but how would I write the code to do this? I know the zen code but will be honest and say I'd struggle on this to write from scratch. But could do this as a Mod for other users if I could get it to work with your help?
Er yes I guess so, but how would I write the code to do this? I know the zen code but will be honest and say I'd struggle on this to write from scratch. But could do this as a Mod for other users if I could get it to work with your help?
Nick Smith - Venture Design and Print
https://venturedesignandprint.co.uk
Hi Linda, how would I go about writing the code to connect this up to the admin, what files would I need to edit and do you have any idea of the code I would need to do this?
Thank You
Nick
Nick Smith - Venture Design and Print
https://venturedesignandprint.co.uk
I would have to write the whole set of code to be able to tell you everything from adding the new field to using it in the shipping modules as the test ...
For adding a new field, find one such as the field:
product_is_always_free_shipping
and trace its use in the Admin with the Tools ... Developers Tool Kit ... to see how it is used for all of the modules on a Product for adding/editing ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
ok, not sure I have time to develop something like that at the moment. But been having a think about a way to do this quick and easy.
If I had a category with two sub categories like this
Chemicals > Flammable
Chemicals > Non Flammable
Could I use the code you gave me earlier in this thread to assign the correct postage to the correct category > sub category?
Nick
Nick Smith - Venture Design and Print
https://venturedesignandprint.co.uk
You can test the cart based on either products_id or based on master_categories_id in an easy manner ...
Do the Products in the Flammable Category all use that categories_id as their master_categories_id value?
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
That would be correct, the categories would be broken down like this:
Chemicals (master category) > Flammable (sub category)
Chemicals > Non Flammable
Controllers (master category) > Flammable (sub category)
Controllers > Non Flammable
Dosing Systems (master category) > Flammable (sub category)
Dosing Systems > Non Flammable
Pumps (master category) > Flammable (sub category)
Pumps > Non Flammable
Tanks, Bunds and Accessories (master category) > Flammable (sub category)
Tanks, Bunds and Accessories > Flammable
Water Testing (master category) > Flammable (sub category)
Water Testing > Non Flammable
General Spares (master category) > Flammable (sub category)
General Spares > Non Flammable
Safety Equipment (master category) > Flammable (sub category)
Safety Equipment > Non Flammable
So in effect the sub category would be the master category for those products beneath the top level master category if that makes sense.
Non-Flammable would be first class post
Flammable would be Royal Mail Track and Trace
This is the website http://www.jakwater.co.uk for reference bearing in mind I haven't made up the above sub categories yet.
Something else, if a customer comes along and purchases a product that is Non flammable and then another item that is flammable then the cart would need to be intelligent enough to realise that the non flammable product would go at the flammable postage rate which would be royal mail track and trace.
Last edited by Nick1973; 15 Dec 2011 at 06:20 PM. Reason: Spelling Errors
Nick Smith - Venture Design and Print
https://venturedesignandprint.co.uk
Then you could use the code:
Code:// bof: skip certain categories and disable they are in the cart for master_categories_id 7, 10 and 14 if (IS_ADMIN_FLAG == false) { global $cart; $chk_skip_categories = 0; $chk_skip_categories += $_SESSION['cart']->in_cart_check('master_categories_id','7'); $chk_skip_categories += $_SESSION['cart']->in_cart_check('master_categories_id','10'); $chk_skip_categories += $_SESSION['cart']->in_cart_check('master_categories_id','14'); if ($chk_skip_categories > 0) { $this->enabled = false; } } // eof: skip certain categories and disable they are in the cart for master_categories_id 7, 10 and 14
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!