Integration Guide: Frontend Submissions and Simple Shipping
Easy Digital Downloads and Frontend Submissions are designed to sell digital products. However, there are occasions in which physical goods which are subject to shipping charges need to be sold as well in the same store. For this reason we created our Simple Shipping extension which adds basic features for setting shipping costs on any applicable product.
Adding shipping to the submission form
To allow vendors to set their own shipping rates on their products, edit the submission form and add the Shipping field which can be found under Add Extension Created Fields. When this is in place, vendors editing products will see two fields: Domestic and International shipping rates.
Basing shipping costs on vendor location
Simple Shipping includes a setting for defining the base country of a digital store. This country will be used to determine whether the international or domestic rate will apply when customers enter their shipping address at checkout. When using Simple Shipping with Frontend Submissions though, typically the vendors will be the ones doing the shipping and therefore it is necessary to base the country on the vendor's location rather than the store owner's.
To change the shipping calculation to use the vendor's location instead of the store's, a new Country field must be added to the vendor profile form. This field must also use the Meta Key "vendor_country". Once this field is in place and a vendor has set their country value, customer's purchasing products from the vendor will have shipping costs based upon that vendor's country instead of the main store's.