Maq Posted September 23, 2008 Share Posted September 23, 2008 I'm trying to add a product to osCommerce but with $0.00 shipping costs. Has anyone done this before? I posted on the osCommerce forums but no one seems to be able to help so far... Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/125481-000-shipping-cost/ Share on other sites More sharing options...
JonnoTheDev Posted September 23, 2008 Share Posted September 23, 2008 Yes. Add another field in your products table for a shipping flag. You can then use the flag in the shipping files to exclude or return as 0 if the product is flagged as no shipping. Quote Link to comment https://forums.phpfreaks.com/topic/125481-000-shipping-cost/#findComment-648721 Share on other sites More sharing options...
Maq Posted September 24, 2008 Author Share Posted September 24, 2008 Thanks for the reply, but altering the database and changing scripts is my last resort because I know there is a way that osCommerce handles this for you. This would be much safer, faster, and easier. A reply from the osCommerce forums: you dont need to write any php, and its not a mod at all.. you just need to learn how to use teh Tables rates.. you do something in the shipping table that looks like this: 0 I looked in the shipping module in the osCommerce back-end and the only shipping table I saw is for "International Rate". I'm creating a product that's actually a donation. There may be a better solution for this, thanks. Quote Link to comment https://forums.phpfreaks.com/topic/125481-000-shipping-cost/#findComment-649454 Share on other sites More sharing options...
JonnoTheDev Posted September 24, 2008 Share Posted September 24, 2008 Use one of the matrix shipping tables then like table rate Quote Link to comment https://forums.phpfreaks.com/topic/125481-000-shipping-cost/#findComment-649485 Share on other sites More sharing options...
Maq Posted September 24, 2008 Author Share Posted September 24, 2008 Use one of the matrix shipping tables then like table rate Sorry, I don't see any matrix shipping tables. Could you please explain? Quote Link to comment https://forums.phpfreaks.com/topic/125481-000-shipping-cost/#findComment-649488 Share on other sites More sharing options...
JonnoTheDev Posted September 24, 2008 Share Posted September 24, 2008 Matrix meaning a data array of two or more dimensions. For example the table rates are based on weight or price. If you were to use the price for shipping calculations you could add: 0:0.00,10:5.00 So anything with a price of $0 will be charged at $0.00, anything upto $10 will be charged at $5.00 Or if the product has a price use weight as the quantifier and set the product weight to 0. If you require anything more complex then you will need to write your own module. Its not that hard. Use the flat rate class file as a template. Quote Link to comment https://forums.phpfreaks.com/topic/125481-000-shipping-cost/#findComment-649524 Share on other sites More sharing options...
Maq Posted September 24, 2008 Author Share Posted September 24, 2008 The only matrix shipping table I see is in the "International Rate" section. I want to change this shipping cost for anyone anywhere, not just international... Quote Link to comment https://forums.phpfreaks.com/topic/125481-000-shipping-cost/#findComment-649539 Share on other sites More sharing options...
JonnoTheDev Posted September 24, 2008 Share Posted September 24, 2008 I dont know why you dont have it unless you have deleted the table.php file within /includes/modules/shipping/ Just downloaded the osCommerce files and it is included. You should be able to install it from the shipping link within http://www.yoursite.com/admin Are you using version 2.2 or one of the beta new releases 3/4 Quote Link to comment https://forums.phpfreaks.com/topic/125481-000-shipping-cost/#findComment-649578 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.