{"id":7340,"date":"2017-06-26T08:46:27","date_gmt":"2017-06-26T08:46:27","guid":{"rendered":"https:\/\/blog.mageworx.com\/?p=7340"},"modified":"2023-03-17T13:48:41","modified_gmt":"2023-03-17T13:48:41","slug":"shipping-suite-for-magento-2-use-cases-part-2","status":"publish","type":"post","link":"https:\/\/www.mageworx.com\/blog\/shipping-suite-for-magento-2-use-cases-part-2","title":{"rendered":"Shipping Suite for Magento 2 &#8211; Use Cases (Part 2)"},"content":{"rendered":"\n<!-- SEO Ultimate (http:\/\/www.seodesignsolutions.com\/wordpress-seo\/) - Code Inserter module -->\n<!-- Google Tag Manager (noscript) -->\r\n<noscript><iframe src=\"https:\/\/www.googletagmanager.com\/ns.html?id=GTM-5DTCW7B8\"\r\nheight=\"0\" width=\"0\" style=\"display:none;visibility:hidden\"><\/iframe><\/noscript>\r\n<!-- End Google Tag Manager (noscript) -->\n<!-- \/SEO Ultimate -->\n\n<span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">Reading Time: <\/span> <span class=\"rt-time\"> 4<\/span> <span class=\"rt-label rt-postfix\">minutes<\/span><\/span><p>This is a 2d part of the article about <strong><a href=\"https:\/\/www.mageworx.com\/magento-2-shipping-suite.html\">Shipping Suite extension for Magento 2<\/a><\/strong> (<strong><a href=\"https:\/\/www.mageworx.com\/blog\/shipping-suite-for-magento-2-use-cases-part-1\">click here<\/a><\/strong> to read part 1). \u2028 The article answers some frequently asked users\u2019 questions about the extension and describes interesting cases of its usage.<\/p>\n<p>Let\u2019s get the ball rolling!<\/p>\n<p><strong>Question <\/strong><\/p>\n<p><em>I am trying to understand the workings of the Shipping Suite fully, but having read the manual, and checked through the demo store, and read the blog article, I still can&#8217;t find an explanation of how the whole thing hangs together? So there are Carriers, Methods, and Zones &#8211; what do each of those things do, and are they necessary outside of the shipping Rules and restrictions? How do they relate to each other?<\/em><!--more--><\/p>\n<p><strong>Answer<\/strong><\/p>\n<ul>\n<li>Carriers<\/li>\n<\/ul>\n<p>Generally, a shipping carrier is a company that delivers customers\u2019 orders by air, land, sea, etc. For example, popular shipping carriers are <em>DHL, UPS, FedEx<\/em> and others.<\/p>\n<p>In the extension, the \u2018<em>Carrier<\/em>\u2019 option represents a certain shipping carrier, just like in real world. Magento 2 conveniently displays all available carriers on the checkout page.<\/p>\n<p>Note that all carriers are connected with shipping methods. Also, in order to create a new method, one has to specify a carrier that will be associated with it.<\/p>\n<ul>\n<li>Methods<\/li>\n<\/ul>\n<p>Basically, a shipping method is a way to fulfill <a href=\"https:\/\/www.mageworx.com\/delivery-date-magento-2.html\">delivery to customers<\/a>.<\/p>\n<p>Shipping methods can vary according to different criteria, such as a warehouse location, country, shipment sizes or weights.<\/p>\n<p>For example, <em>USPS Express Mail, DHL Flat Rate Box Shipping, UPS two-day, UPS ground<\/em>, etc.<\/p>\n<ul>\n<li>Shipping Rates<\/li>\n<\/ul>\n<p>Shipping rate is a price at which a certain order is delivered from a merchant\u2019s warehouse\/ brick-and-mortar store to a customer.<\/p>\n<p>With the extension, shipping rates can be defined for each new\/existing shipping method.<\/p>\n<p>As a rule, rates are set by the shipping carrier. Their amount depends on various factors, such as the mode of transport (<em>truck, train, ship, aircraft<\/em>), the weight of the ordered goods, their dimension and the distance to the delivery destination.<\/p>\n<p>In the extension you can customize the default shipping costs. The extension enables you to <em>overwrite\/surcharge\/discount<\/em> a shipping cost, configure fixed or percentage surcharges\/discounts, set shipping rates both for individual and group products and more.<\/p>\n<ul>\n<li>Shipping Zones<\/li>\n<\/ul>\n<p>This notion refers to the geographical area that you want to ship to.<\/p>\n<p>With Shipping Suite, when configuring a new shipping method, you can apply it to any targeted location: e.g. region, group of regions, country and even groups of counties.<\/p>\n<p>Say, if you\u2019d like to differentiate between the continental and non-continental part of the country, you can create a shipping method and in there mark the continental part of the <em>USA <\/em>as<em> Zone 1<\/em>, while <em>Alaska<\/em> and <em>Hawaii<\/em> as <em>Zone 2<\/em>.<\/p>\n<p>Or, in case you need to provide free shipping <em>within the EU<\/em>, you can create a custom shipping zone for that.<\/p>\n<p>Generally, you need to follow this algorithm:<\/p>\n<ul>\n<li>decide on a Shipping Carrier,<\/li>\n<li>create a new Shipping Method for this carrier\/ add the chosen carrier to the existing shipping method,<\/li>\n<li>create\/adjust the method\u2019s Shipping Rates (optional).<\/li>\n<\/ul>\n<p>The created carriers and methods can be used in <em>Shipping Rules and Conditions<\/em>,\u00a0 as well as when defining Shipping Zones (if necessary).<\/p>\n<p>So, with this extension, you can create a new method, specify shipping rules, conditions, rates and zones. This way, you can, make different shipping costs for those who live in Alaska and NY, offer free shipping on all orders over $1000, charge extra for the number of products to ship, and so on.<\/p>\n<p><strong>Question<\/strong><\/p>\n<p><em>Do I need to specify stuff in each of these areas (Carriers, Methods, etc.) before I can setup rules and restrictions?<\/em><\/p>\n<p><strong>Answer<\/strong><\/p>\n<p>It depends.<\/p>\n<p>In case you\u2019re fine with the methods you\u2019re currently using, you don\u2019t need to create new ones. Just set the required shipping rules for each existing method.<\/p>\n<p>But if the method you\u2019d like to use is not on the list (e.g. shipping by the eco-friendly transport), you can always add it in there and define its rates.<\/p>\n<p><strong>Question<\/strong><\/p>\n<p><em>We separate some shipping methods by a range of postcodes, some sequential and some not. Can you tell me if it is possible to enter comma separated lists of postcodes for Shipping Rules?<\/em><\/p>\n<p><strong>Answer<\/strong><\/p>\n<p>Yes, it is possible.<\/p>\n<p>You can add comma separated zip codes using &#8220;is one of&#8221; check type. Here\u2019s an example:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7333\" src=\"https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2017\/06\/1-1.png\" alt=\"1\" width=\"1444\" height=\"636\" srcset=\"https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2017\/06\/1-1.png 1444w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2017\/06\/1-1-600x264.png 600w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2017\/06\/1-1-1200x529.png 1200w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2017\/06\/1-1-768x338.png 768w\" sizes=\"auto, (max-width: 1444px) 100vw, 1444px\" \/><\/p>\n<p>This is what you\u2019ll get as a results:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7335\" src=\"https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2017\/06\/2-2.png\" alt=\"2\" width=\"1311\" height=\"839\" srcset=\"https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2017\/06\/2-2.png 1311w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2017\/06\/2-2-600x384.png 600w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2017\/06\/2-2-1200x768.png 1200w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2017\/06\/2-2-768x491.png 768w\" sizes=\"auto, (max-width: 1311px) 100vw, 1311px\" \/><\/p>\n<p>As you can see, all the methods (with an exception of the 1st one) have changed the price to 903 as indicated in our rule. Please note that the rule works only when the zip code is valid.<\/p>\n<p>In the example below, with the invalid zip code, all the methods have the unchanged, original price.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7336\" src=\"https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2017\/06\/3-1.png\" alt=\"3\" width=\"1285\" height=\"829\" srcset=\"https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2017\/06\/3-1.png 1285w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2017\/06\/3-1-600x387.png 600w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2017\/06\/3-1-1200x774.png 1200w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2017\/06\/3-1-768x495.png 768w\" sizes=\"auto, (max-width: 1285px) 100vw, 1285px\" \/><\/p>\n<p><strong>Question<\/strong><\/p>\n<p><em>Is it possible to create a document or sheet of shipping rules, based on countries and postcodes and enter them in a pre-determined format and upload it?<\/em><\/p>\n<p><strong>Answer<\/strong><\/p>\n<p>Unfortunately, it\u2019s not possible at the moment.<\/p>\n<p>But we\u2019ve filed this feature request and will consider adding such an option in one of the future updated of our extension.<\/p>\n<p><strong>Question<\/strong><\/p>\n<p><em>We have created rules for 24 and 48 hour base shipping costs for single item sales and then a higher rate 24 hr and 48 hr multiple item rework for customers purchasing multiple items or a mix of products across the site . These work OK.<\/em><\/p>\n<p><em>However there is one product category (B) that needs to have a different base shipping cost for a single unit purchase. If this single unit from category (B) is purchased with any other item across the site then we want this to revert to the multiple purchase 24hr and 48hr shipping cost band. <\/em><\/p>\n<p><em>We built a rule that would hide the 24 hr and 48 hr shipping rates if a single unit from Category B was chosen and offer the customer a different shipping rate for this item, however when another item from another category was then included in the shopping cart with the single item from category (B) we get the &#8220;No Shipping Available&#8221; notice. \u2028The rule that hides the shipping rates if 1 unit from Category B is chosen must be involved here, but I am not sure now how to fix this if another item is added to the cart.<\/em><\/p>\n<p><strong>Answer<\/strong><\/p>\n<p>The best workaround solution would be to slightly modify verification of the rule that deals with hiding shipping methods.<br \/>\nHere is how to:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7337\" src=\"https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2017\/06\/4-1.png\" alt=\"4\" width=\"908\" height=\"422\" srcset=\"https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2017\/06\/4-1.png 908w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2017\/06\/4-1-600x279.png 600w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2017\/06\/4-1-768x357.png 768w\" sizes=\"auto, (max-width: 908px) 100vw, 908px\" \/>This way, you not only check whether a product from category \u2018B\u2019 is found in the shopping cart, but also make sure that any product which doesn\u2019t belong to this category is NOT there.<\/p>\n<p>Hence, if you add products that belong to different categories, the rule won\u2019t apply, and the shipping methods will be hidden.<\/p>\n<p>Also, as for this particular case, the rule check will work in the rule for the rate 24 hr and 48 hr multiple item. And you\u2019ll get the desired result.<\/p>\n<p><strong>P.S. <\/strong>You may take a look at our <a href=\"https:\/\/marketplace.magento.com\/mageworx-module-shippingrulesmeta.html\">Magento 2 Shiping extension<\/a> on Magento Marketplace.\u00a0If you\u2019d like to share your experience of using the extension and describe how it helps you with your specific business needs, <a href=\"https:\/\/www.mageworx.com\/support\"><strong>please drop us a line<\/strong><\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p><span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">Reading Time: <\/span> <span class=\"rt-time\"> 4<\/span> <span class=\"rt-label rt-postfix\">minutes<\/span><\/span>This is a 2d part of the article about Shipping Suite extension for Magento 2 (click here to read part 1). \u2028 The article answers some frequently asked users\u2019 questions about the extension and describes interesting cases of its usage. Let\u2019s get the ball rolling! Question I am trying to understand the workings of the [&hellip;]<\/p>\n","protected":false},"author":15,"featured_media":14722,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[255,426],"tags":[397],"class_list":{"0":"post-7340","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-magento-2","8":"category-extensions-tips-and-tricks","9":"tag-shipping-suite-ultimate"},"_links":{"self":[{"href":"https:\/\/www.mageworx.com\/blog\/wp-json\/wp\/v2\/posts\/7340","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mageworx.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mageworx.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mageworx.com\/blog\/wp-json\/wp\/v2\/users\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mageworx.com\/blog\/wp-json\/wp\/v2\/comments?post=7340"}],"version-history":[{"count":11,"href":"https:\/\/www.mageworx.com\/blog\/wp-json\/wp\/v2\/posts\/7340\/revisions"}],"predecessor-version":[{"id":16634,"href":"https:\/\/www.mageworx.com\/blog\/wp-json\/wp\/v2\/posts\/7340\/revisions\/16634"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.mageworx.com\/blog\/wp-json\/wp\/v2\/media\/14722"}],"wp:attachment":[{"href":"https:\/\/www.mageworx.com\/blog\/wp-json\/wp\/v2\/media?parent=7340"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mageworx.com\/blog\/wp-json\/wp\/v2\/categories?post=7340"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mageworx.com\/blog\/wp-json\/wp\/v2\/tags?post=7340"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}