开发者 |
defcronyke
girlboybot |
---|---|
更新时间 | 2019年1月2日 10:42 |
捐献地址: | 去捐款 |
PHP版本: | 5.6 及以上 |
WordPress版本: | 5.0 |
版权: | GPLv3 or later License |
版权网址: | 版权信息 |
Make a new shipping class with a slug that starts with "box-" for boxes, or "letter-" for envelopes. Then go to the plugin settings page and there will be a new section to fill in the box or envelope's properties.
Make a new shipping class with a slug that starts with "flat-rate-". Then assign that shipping class to a product. There will now be a new field in the plugin settings page which allows you to set the flat rate for everything with that new shipping class.
Make a new global product attribute with the slug "stackable", and add an item to it for each product that can stack. For example, if you have two different sizes of hats that can each stack with their own size, you would make two items, and maybe call them "small hat 1" and "medium hat 1". Next, edit a product, go to "Product data -> Attributes". You should see the attribute name in bold there of the global attribute you made with the slug "stackable". If not, you can add it from the "Custom product attribute" dropdown menu. Next, expand the attribute by clicking on its name in bold. Now simply add one of the values you made to the Value(s) box, and that item will now stack with any other item that has that value. Note that only one stackable value is currently supported per item.
Make a child theme of Storefront (using instructions from the WordPress Codex, or using some plugin), and make sure you switch your active theme to the new child theme. Then add this to the child theme's style.css file:
/* Fix Storefront checkout table display. It was too narrow. */
table.woocommerce-checkout-review-order-table .product-name {
width: unset;
}