Do you have an example of an URL to the Product and which Attribute you want checked that if in the shopping cart you want to give Free Shipping?
Do you have an example of an URL to the Product and which Attribute you want checked that if in the shopping cart you want to give Free Shipping?
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!
Yes, sure.
http://asiabookzone.com/index.php?ma...oducts_id=6423
I want that if the customer buys Notebooks and Registers (2nd attribute), he should be entitled to free shipping on the entire order.
Thanks for your prompt response.
http://www.raunharman.com
http://www.raunharman.net
Website Development, E-Book Solutions & Handicraft Exports
Install the shipping module for Free Shipping Options freeoptions ...
Add the code from post #9 for the file:
/includes/classes/shopping_cart.php
then on the Flat Rate flat shipping file, add the code in RED:
/includes/modules/shipping/flat.php
and in the file for Free Shipping Options freeoptions add the code in RED:Code:// disable only when entire cart is free shipping if (zen_get_shipping_enabled($this->code)) { $this->enabled = ((MODULE_SHIPPING_FLAT_STATUS == 'True') ? true : false); } // bof: Free Shipping Test - do not show Flat if Product with Attribute is in cart if (!IS_ADMIN_FLAG) { $chk_cart = $_SESSION['cart']->in_cart_check_attrib_quantity(20, 70); echo 'flat: ' . $chk_cart . '<br>'; if ($chk_cart > 0) { $this->enabled = false; } } // eof: Free Shipping Test if ( ($this->enabled == true) && ((int)MODULE_SHIPPING_FLAT_ZONE > 0) ) {
/includes/modules/shipping/freeoptions.php
Change the values of 20, 70 to match your option name id and option value id, I believe those will be 3,5 to match As prescribed by School ( +Rs.650.00 ) ...Code:// disable only when entire cart is free shipping if (zen_get_shipping_enabled($this->code)) { $this->enabled = ((MODULE_SHIPPING_FREEOPTIONS_STATUS == 'True') ? true : false); } // bof: Free Shipping Test - do not show FREEOPTIONS unless Product with Attribute is in cart if (!IS_ADMIN_FLAG) { $chk_cart = $_SESSION['cart']->in_cart_check_attrib_quantity(20, 70); echo 'freeoptions: ' . $chk_cart . '<br>'; if ($chk_cart < 1) { $this->enabled = false; } } // eof: Free Shipping Test if ( ($this->enabled == true) && ((int)MODULE_SHIPPING_FREEOPTIONS_ZONE > 0) ) {
This should now turn on/off Flat Rate flat and on/off Free Shipping Options based on if the Attribute is in the cart ...
NOTE: comment out the two echos, once you have this working right ...
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!
Thanks for your prompt reply.
However, when I am ordering without the attribute (notebooks and registers --not required), the order is processing fine.
But when I select the attribute (Notebooks and Registers - As prescribed by School), it shows the following message:
Not Available At This Time
Sorry, we are not shipping to your region at this time.
Please contact us for alternate arrangements.
Further, in the top left hand corner of the page, the following text appears: flat: 1
freeoptions: 1
Have I done something wrong?
http://www.raunharman.com
http://www.raunharman.net
Website Development, E-Book Solutions & Handicraft Exports
Do you have the freeoptions shipping module enabled? If not, that's your issue.
First, make sure Free Shipping Options is installed as lat9 pointed out ...
Next, when done testing, you need to comment out the two echo lines to not see that:
Code://echo 'flat: ' . $chk_cart . '<br>';Those echos are there for testing to ensure the new function is working in both shipping modules ...Code://echo 'freeoptions: ' . $chk_cart . '<br>';
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!
Thanks a lot.
It worked well.
I had installed the Free Shipping Options module, but had removed the Total>=0.
Thanks again for your help.
http://www.raunharman.com
http://www.raunharman.net
Website Development, E-Book Solutions & Handicraft Exports
Thanks for the update that this was able to work for you ...![]()
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!