There's a user exit called "exclude_product()" that you can add product ids to.
There's a user exit called "exclude_product()" that you can add product ids to.
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.
can you explain that a little further? Sorry, I'm a Zen Amateur...![]()
I just figured this one out. You can find help here:
http://www.thatsoftwareguy.com/zenca...html#userexits
You need to open the file ot_giftwrap_checkout.php You can find it in the includes/modules/order_total folder.
Look for the following code:
Then change 99998 to the product ID of the product you wish to exlude from gift wrapping. Assuming your product ID is 199 the new code would look like this:Code:// Add products you wish to not offer wrapping for to this list. // Go to Admin->Catalog->Categories/Products->[Your category] // and look at the left hand side of the list to determine // product id. Note that 99999 and 99998 are just given // as examples. By returning true, we exclude these products. function exclude_product($prid) { $id = (int)$prid; switch($id) { case 99998: case 99998: return true; } return false; }
Save the file and upload it back to your server.Code:// Add products you wish to not offer wrapping for to this list. // Go to Admin->Catalog->Categories/Products->[Your category] // and look at the left hand side of the list to determine // product id. Note that 99999 and 99998 are just given // as examples. By returning true, we exclude these products. function exclude_product($prid) { $id = (int)$prid; switch($id) { case 199: case 99998: return true; } return false; }
Thank you for the mod swguy. I had no problems installing it. Quick and easy.
There will be new features for this module in 2009. Stay tuned.![]()
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.
Are the numbers for the product IDs or Cat IDs. I would like to install this and exclude several categories. I'm hoping you are correct as there are several categories that I can't offer this option due to coming direct from the distributor who does not offer gift wrap as an option.
Can anyone verify this for me?
Thanks
I'm working through the files to install this contribution, and as always I first try to read through all the post "before" installing a new contribution to be made aware of issues I might encounter. In doing so I noted the code mention for admin/includes/classes/order.php in post 131
- I have just done a compare on that file due to previous modifications I have made to the file, in order to merge gift wrap changes and realized the file I have in the download for giftwrap is untouched. There is no reference that I can see for the Gift Wrap Table and I don't see anything in the Readme file referencing modifying that file.PHP Code:
select orders_products_id
from " . TABLE_ORDERS_GIFTWRAP . "
where orders_id = '" . zen_db_input($oID) . "' and wrap = 1");
I completed the install using the provided file, and low and behold, no reference in the admin. Can someone provide me with a correct copy of that file, admin/includes/classes/order.php or the complete code that needs to be modified and/or included?
Thanks in advance -
My bad... not admin, but catalog (order.php) - found my error - now to test and see where we are.
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.
Bookmarks