kaihying Posted August 12, 2010 Share Posted August 12, 2010 請問有沒有方法可以對單一產品設置免運費?例如: 產品A, B, D, E是要計算運費的, 而產品C, F是免運費的....TQ!! Link to comment Share on other sites More sharing options...
21846657 Posted August 12, 2010 Share Posted August 12, 2010 有四種方式可以嘗試:1. 對於免運費的產品,在其3. Combination頁面設置一個attribute(需要先設置attribute group),在Impact on price選擇reduction為其運費,即為產品添加一個有free shipping屬性的產品組合。當free shipping屬性的產品加入購物車時,運費會自動扣減。In you case,需要manually為C, F設置free shipping產品組合;但不需要修改代碼。2. 修改database的產品表格和主程序文件,對產品是否為freeshipping進行0和1的控制和判斷。3. 添加一個free shipping的discount coupon并僅應用到某個如Free Shippng Items的目錄。新增或編輯產品時,除勾選default category以外,再勾選這一目錄即可。4. 新增或編輯產品時,設置free shipping產品的重量為1,其餘產品的重量均設置為0;在BO >> Shipping設置Free shipping starts at 1kg。其中,1、3、4都不需要修改主程序,各有利弊。或者有更好的idea? Link to comment Share on other sites More sharing options...
princeme Posted August 15, 2010 Share Posted August 15, 2010 第一个方法好像不行呢设置了之后,add to cart 就消失了 Link to comment Share on other sites More sharing options...
21846657 Posted August 15, 2010 Share Posted August 15, 2010 请问你的PrestaShop是哪个版本?add to cart消失是因为产品无库存,而“Allow ordering out-of-stock product(Back Office >> Preferences >> Products)”又没有设置为Yes所致。你是否设置free shipping产品组合的quantity为n(n >0)以override原产品数量? Link to comment Share on other sites More sharing options...
kaihying Posted August 15, 2010 Author Share Posted August 15, 2010 其實最好的方法是可以像Zencart那樣, 在後台產品頁有一個"是否為Free shipping"的選項, 但這好像要改很多東西似的!所以我就用了最笨的方式, 就是shipping那加多一個Free Shipping的運送選項, 重量設置為0kg - 0.1kg, 價格為0.00, 那如果A產品是free shipping的, 那我就將其重量設為0, 結賬時的選項就會出現Free Shipping了......有沒有人有更好的方案?? Link to comment Share on other sites More sharing options...
21846657 Posted August 16, 2010 Share Posted August 16, 2010 其實最好的方法是可以像Zencart那樣, 在後台產品頁有一個"是否為Free shipping"的選項, 但這好像要改很多東西似的! 提交一个feature request给官方吧。Good luck ;-) Link to comment Share on other sites More sharing options...
princeme Posted August 18, 2010 Share Posted August 18, 2010 我是用的4楼方法 设置重量为0.001 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now