{"id":376513,"date":"2023-04-14T09:50:04","date_gmt":"2023-04-14T09:50:04","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=376513"},"modified":"2023-04-20T06:57:56","modified_gmt":"2023-04-20T06:57:56","slug":"how-to-create-cs-cart-custom-shipping","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/how-to-create-cs-cart-custom-shipping\/","title":{"rendered":"How to create custom shipping in CS-Cart?"},"content":{"rendered":"\n<p>Shipping is one of the major parts of an e-commerce website. To create a custom shipping method in CS-Cart, you need to write code to create a new shipping method, define its properties, and calculate the shipping rates.<\/p>\n\n\n\n<p><strong>Create a New Shipping Method<\/strong><\/p>\n\n\n\n<p>Folder Structure<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1200\" height=\"319\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/screenshot_1681823366184-1200x319.png\" alt=\"File data\" class=\"wp-image-377390\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/screenshot_1681823366184-1200x319.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/screenshot_1681823366184-300x80.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/screenshot_1681823366184-250x66.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/screenshot_1681823366184-768x204.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/screenshot_1681823366184.png 1325w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u201c<strong>addon.xml<\/strong>\u201c: The addon.xml file plays a crucial role in CS-Cart as it contains vital information about the add-on or modification. It is located in the root directory of the add-on and serves as a configuration file.<\/li>\n\n\n\n<li>\u201c<strong>func.php<\/strong>\u201c: The &#8220;func.php&#8221; file includes helper functions and logic used by the shipping method.<\/li>\n\n\n\n<li>\u201c<strong>init.php<\/strong>\u201c: The purpose of the &#8220;init.php&#8221; file is to register the hook used in the shipping method.<\/li>\n\n\n\n<li>\u201c<strong>lang<\/strong>\u201c: This file contains the language translations for the shipping method. This file serves to provide translations for the shipping method&#8217;s title, description, and other text in different languages, allowing for localization.<\/li>\n\n\n\n<li>\u201c<strong>image<\/strong>\u201c: This folder will contain an image icon for your addon.<\/li>\n\n\n\n<li>\u201c<strong>Tygh<\/strong>\u201c: The <code>Tygh\/Shippings\/Services<\/code> a folder is used in CS-Cart to define shipping services for different shipping methods. This folder contains PHP classes that implement the logic to calculate the shipping cost for each service that we use in the shipping method.<\/li>\n<\/ul>\n\n\n\n<p>After creating the necessary files and folders for your custom shipping method in CS-Cart, Now you are ready for coding:<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Code<\/h2>\n\n\n\n<p>Finally, we have our folder structure in place, let\u2019s start adding some code.<\/p>\n\n\n\n<p>The addon XML code represents the addon.xml a file that is typically used in CS-Cart add-ons, and it contains various metadata about the add-on, such as its name, version, author, and installation\/uninstallation functions.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;?xml version=&quot;1.0&quot;?&gt;\n&lt;addon scheme=&#039;3.0&#039;&gt;\n    &lt;id&gt;custom_shipping_method&lt;\/id&gt;\n    &lt;version&gt;1.0&lt;\/version&gt;\n    &lt;priority&gt;12456&lt;\/priority&gt;\n    &lt;position&gt;45789&lt;\/position&gt;\n    &lt;status&gt;active&lt;\/status&gt;\n    &lt;has_icon&gt;Y&lt;\/has_icon&gt;\n    &lt;supplier&gt;Webkul Software Pvt. Ltd&lt;\/supplier&gt;\n    &lt;supplier_link&gt;https:\/\/store.webkul.com\/CS-Cart.html&lt;\/supplier_link&gt;\n    &lt;default_language&gt;en&lt;\/default_language&gt;\n    &lt;auto_install&gt;MULTIVENDOR,ULTIMATE&lt;\/auto_install&gt;\n    &lt;authors&gt;\n        &lt;author&gt;\n            &lt;name&gt;Webkul&lt;\/name&gt;\n            &lt;email&gt;support@webkul.com&lt;\/email&gt;\n            &lt;url&gt;https:\/\/webkul.com\/&lt;\/url&gt;\n            &lt;phone&gt;India (+91)-9650486699 &lt;\/phone&gt;\n            &lt;phone&gt;USA (+1)-8667772047&lt;\/phone&gt;\n            &lt;phone&gt;UK (+44)-7937415639&lt;\/phone&gt;\n        &lt;\/author&gt;\n    &lt;\/authors&gt;\n    &lt;functions&gt;\n        &lt;item for=&quot;install&quot;&gt;fn_wk_custom_shipping_install&lt;\/item&gt;\n        &lt;item for=&quot;uninstall&quot;&gt;fn_wk_custom_shipping_uninstall&lt;\/item&gt;\n    &lt;\/functions&gt;\n&lt;\/addon&gt;<\/pre>\n\n\n\n<p>This is an XML file that describes an add-on for the CS-Cart e-commerce platform. The XML file outlines several pieces of metadata related to the add-on, including details about its priority and position within the installed add-ons list, along with its current status and default language.<\/p>\n\n\n\n<p><a href=\"https:\/\/docs.cs-cart.com\/latest\/developer_guide\/addons\/scheme\/scheme3.0_structure.html\" target=\"_blank\" rel=\"noreferrer noopener\">Know more&#8230;<\/a><\/p>\n\n\n\n<p>The func.php code shows the implementation of the installation and uninstallation functions for a custom shipping method in CS-Cart.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;?php\n\nif (!defined(&#039;AREA&#039;)) {\n    die(&#039;Access denied&#039;);\n}\nfunction fn_wk_custom_shipping_install()\n{\n    $service_code = array(\n        &#039;CSM&#039; =&gt; &#039;Custom Shipping Method&#039;\n    );\n    foreach ($service_code as $code =&gt; $description) {\n        $data = array(&#039;status&#039; =&gt; &#039;A&#039;, &#039;module&#039; =&gt; &#039;custom&#039;, &#039;code&#039; =&gt; $code, &#039;status&#039; =&gt; &#039;A&#039;);\n        $service_id = db_query(&#039;INSERT INTO ?:shipping_services ?e&#039;, $data);\n\n        $data_desc = array(&#039;service_id&#039; =&gt; $service_id, &#039;description&#039; =&gt; $description, &#039;lang_code&#039; =&gt; &#039;en&#039;);\n        db_query(&#039;INSERT INTO ?:shipping_service_descriptions ?e&#039;, $data_desc);\n    }\n}\n\nfunction fn_wk_custom_shipping_uninstall()\n{\n    $service_ids = db_get_fields(&quot;SELECT service_id FROM ?:shipping_services WHERE module = ?s&quot;, &#039;custom&#039;);\n    foreach ($service_ids as $key =&gt; $service_id) {\n        db_query(&quot;DELETE FROM ?:shipping_services WHERE service_id = ?i&quot;, $service_id);\n        db_query(&quot;DELETE FROM ?:shipping_service_descriptions WHERE service_id = ?i&quot;, $service_id);\n    }\n}<\/pre>\n\n\n\n<p>The init.php code shows the initialization file for a custom shipping method in CS-Cart.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;?php\n\nif (!defined(&#039;BOOTSTRAP&#039;)) { die(&#039;Access denied&#039;); }\n\nfn_register_hooks(\n    &#039;get_shipments&#039;\n);<\/pre>\n\n\n\n<p>CS-Cart uses the .po file as a translation file to present the user interface in various languages. It contains translations for all the strings that appear in the user interface, such as button labels, form fields, and error messages.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">msgid &quot;&quot;\nmsgstr &quot;Project-Id-Version: tygh\\n&quot;\n&quot;Content-Type: text\/plain; charset=UTF-8\\n&quot;\n&quot;Language-Team: English\\n&quot;\n&quot;Language: en_US&quot;\n\nmsgctxt &quot;Addons::name::custom_shipping_method&quot;\nmsgid &quot;Custom Shipping Method&quot;\nmsgstr &quot;Custom Shipping Method&quot;\n\nmsgctxt &quot;Addons::description::custom_shipping_method&quot;\nmsgid &quot;A custom shipping method in CS-Cart is a way to define a unique shipping option for your online store. This shipping method can have its own title, description, and shipping rates, and can be customized to suit your specific needs.&quot;\nmsgstr &quot;A custom shipping method in CS-Cart is a way to define a unique shipping option for your online store. This shipping method can have its own title, description, and shipping rates, and can be customized to suit your specific needs.&quot;\n\nmsgctxt &quot;Languages::carrier_custom&quot;\nmsgid &quot;Custom Carrier&quot;\nmsgstr &quot;Custom Carrier&quot;<\/pre>\n\n\n\n<p>The <code>Tygh\/Shippings\/Services<\/code> the folder is used in CS-Cart to define shipping services for different shipping methods. This folder contains PHP classes that implement the logic to calculate the shipping cost for each service.<\/p>\n\n\n\n<p id=\"block-dbdb968b-3a90-43ee-a950-a7dfeb3c8f02\">You have completed the integration of your Basic Shipping method, making it available for use by your customers. Check now how this looks like on the addon manage page.<\/p>\n\n\n\n<p><strong>Check how to find the addon that you create:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1200\" height=\"453\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/screenshot_1681824270248-1200x453.png\" alt=\"screenshot_1681824270248\" class=\"wp-image-377401\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/screenshot_1681824270248-1200x453.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/screenshot_1681824270248-300x113.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/screenshot_1681824270248-250x94.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/screenshot_1681824270248-768x290.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/screenshot_1681824270248.png 1286w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p><strong>Then find the addon that you created:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1200\" height=\"102\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/screenshot-gaurav.webkul.com-2023.04.14-13_48_22-1200x102.png\" alt=\"screenshot-gaurav.webkul.com-2023.04.14-13_48_22\" class=\"wp-image-376988\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/screenshot-gaurav.webkul.com-2023.04.14-13_48_22-1200x102.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/screenshot-gaurav.webkul.com-2023.04.14-13_48_22-300x26.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/screenshot-gaurav.webkul.com-2023.04.14-13_48_22-250x21.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/screenshot-gaurav.webkul.com-2023.04.14-13_48_22-768x65.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/screenshot-gaurav.webkul.com-2023.04.14-13_48_22.png 1433w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p><strong>And then go to the shipping manage page to create a new shipping method:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1200\" height=\"382\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/screenshot_1681824456167-1200x382.png\" alt=\"screenshot_1681824456167\" class=\"wp-image-377407\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/screenshot_1681824456167-1200x382.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/screenshot_1681824456167-300x96.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/screenshot_1681824456167-250x80.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/screenshot_1681824456167-768x245.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/screenshot_1681824456167.png 1365w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p><strong>And click on the plus button to add a new shipping method:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1200\" height=\"350\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/screenshot_1681824627951-1200x350.png\" alt=\"screenshot_1681824627951\" class=\"wp-image-377412\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/screenshot_1681824627951-1200x350.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/screenshot_1681824627951-300x88.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/screenshot_1681824627951-250x73.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/screenshot_1681824627951-768x224.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/screenshot_1681824627951.png 1356w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p><strong>Check the final shipping method:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1200\" height=\"549\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/screenshot-gaurav.webkul.com-2023.04.14-13_49_31-1200x549.png\" alt=\"screenshot-gaurav.webkul.com-2023.04.14-13_49_31\" class=\"wp-image-376990\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/screenshot-gaurav.webkul.com-2023.04.14-13_49_31-1200x549.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/screenshot-gaurav.webkul.com-2023.04.14-13_49_31-300x137.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/screenshot-gaurav.webkul.com-2023.04.14-13_49_31-250x114.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/screenshot-gaurav.webkul.com-2023.04.14-13_49_31-768x352.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/screenshot-gaurav.webkul.com-2023.04.14-13_49_31.png 1518w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong>CS-Cart JNE Shipping Method :<\/strong>&nbsp;<\/p>\n\n\n\n<p>Integrate JNE shipping with CS-Cart and calculate shipping rates in real time with this magnificent add-on. JNE is a popular shipping service in Indonesia. People trust JNE for their accurate and prompt delivery. The speed and reliability of services consistently make JNE higher credible among customers.<\/p>\n<cite><strong>Check our<\/strong> <a href=\"https:\/\/store.webkul.com\/CS-Cart\/Shipping.html\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Cs-Cart Shipping Methods<\/a> :<\/cite><\/blockquote>\n\n\n\n<p><\/p>\n\n\n\n<p>If you need custom&nbsp;<a href=\"https:\/\/webkul.com\/cs-cart-development\/\" target=\"_blank\" rel=\"noreferrer noopener\">Cs-Cart Development services<\/a>&nbsp;. Then feel free to&nbsp;<a href=\"https:\/\/webkul.com\/contacts\" target=\"_blank\" rel=\"noreferrer noopener\">reach us<\/a>. And also explore our exclusive range of&nbsp;<a href=\"https:\/\/store.webkul.com\/CS-Cart\/Marketplace.html\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Cs-Cart Addons<\/a>.<br>!!Have a Great Day Ahead!!<\/p>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Shipping is one of the major parts of an e-commerce website. To create a custom shipping method in CS-Cart, you need to write code to create a new shipping method, define its properties, and calculate the shipping rates. Create a New Shipping Method Folder Structure After creating the necessary files and folders for your custom <a href=\"https:\/\/webkul.com\/blog\/how-to-create-cs-cart-custom-shipping\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":459,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1496],"tags":[1513,1661,1844],"class_list":["post-376513","post","type-post","status-publish","format-standard","hentry","category-cs-cart","tag-cs-cart-2","tag-cs-cart","tag-cscart-payment-gateway"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Cscart Create Shipping method<\/title>\n<meta name=\"description\" content=\"To create a custom shipping method in CS-Cart, first, you need to define a new shipping method with a unique title, description, and shipping rates. Once you have defined the shipping method, you need to implement the logic to calculate the shippi % ng cost based on the order details.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/how-to-create-cs-cart-custom-shipping\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"%\" \/>\n<meta property=\"og:description\" content=\"To create a custom shipping method in CS-Cart, first, you need to define a new shipping method with a unique title, description, and shipping rates. Once you have defined the shipping method, you need to implement the logic to calculate the shippi % ng cost based on the order details.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/how-to-create-cs-cart-custom-shipping\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-04-14T09:50:04+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-04-20T06:57:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/04\/screenshot_1681823366184-1200x319.png\" \/>\n<meta name=\"author\" content=\"Gaurav Upadhyay\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Gaurav Upadhyay\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":[\"Article\",\"BlogPosting\"],\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-cs-cart-custom-shipping\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-cs-cart-custom-shipping\/\"},\"author\":{\"name\":\"Gaurav Upadhyay\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/c98d05d546603da2fa0090657723f2da\"},\"headline\":\"How to create custom shipping in CS-Cart?\",\"datePublished\":\"2023-04-14T09:50:04+00:00\",\"dateModified\":\"2023-04-20T06:57:56+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-cs-cart-custom-shipping\/\"},\"wordCount\":595,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-cs-cart-custom-shipping\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/04\/screenshot_1681823366184-1200x319.png\",\"keywords\":[\"cs cart\",\"cs-cart\",\"cscart payment gateway\"],\"articleSection\":[\"Cs Cart\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/how-to-create-cs-cart-custom-shipping\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-cs-cart-custom-shipping\/\",\"url\":\"https:\/\/webkul.com\/blog\/how-to-create-cs-cart-custom-shipping\/\",\"name\":\"Cscart Create Shipping method\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-cs-cart-custom-shipping\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-cs-cart-custom-shipping\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/04\/screenshot_1681823366184-1200x319.png\",\"datePublished\":\"2023-04-14T09:50:04+00:00\",\"dateModified\":\"2023-04-20T06:57:56+00:00\",\"description\":\"To create a custom shipping method in CS-Cart, first, you need to define a new shipping method with a unique title, description, and shipping rates. Once you have defined the shipping method, you need to implement the logic to calculate the shippi % ng cost based on the order details.\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-cs-cart-custom-shipping\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/how-to-create-cs-cart-custom-shipping\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-cs-cart-custom-shipping\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/screenshot_1681823366184.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/screenshot_1681823366184.png\",\"width\":1325,\"height\":352,\"caption\":\"screenshot_1681823366184\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-cs-cart-custom-shipping\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to create custom shipping in CS-Cart?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/c98d05d546603da2fa0090657723f2da\",\"name\":\"Gaurav Upadhyay\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/06fd05c84506530bc81d1650ad44d86a575e0b84a22f4cda7ee00281cdb9517c?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/06fd05c84506530bc81d1650ad44d86a575e0b84a22f4cda7ee00281cdb9517c?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Gaurav Upadhyay\"},\"description\":\"Gaurav Upadhyay is an expert in API, TPL, Composer, and GIT, with a strong proficiency in CS-Cart Upgrade &amp; Migrations, 3PL integrations, Payment Integrations, and OMS. He delivers seamless, efficient solutions tailored to elevate business operations and ensure top-tier performance.\",\"url\":\"https:\/\/webkul.com\/blog\/author\/gauravupadhyay-cscart891\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Cscart Create Shipping method","description":"To create a custom shipping method in CS-Cart, first, you need to define a new shipping method with a unique title, description, and shipping rates. Once you have defined the shipping method, you need to implement the logic to calculate the shippi % ng cost based on the order details.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/webkul.com\/blog\/how-to-create-cs-cart-custom-shipping\/","og_locale":"en_US","og_type":"article","og_title":"%","og_description":"To create a custom shipping method in CS-Cart, first, you need to define a new shipping method with a unique title, description, and shipping rates. Once you have defined the shipping method, you need to implement the logic to calculate the shippi % ng cost based on the order details.","og_url":"https:\/\/webkul.com\/blog\/how-to-create-cs-cart-custom-shipping\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2023-04-14T09:50:04+00:00","article_modified_time":"2023-04-20T06:57:56+00:00","og_image":[{"url":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/04\/screenshot_1681823366184-1200x319.png","type":"","width":"","height":""}],"author":"Gaurav Upadhyay","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Gaurav Upadhyay","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":["Article","BlogPosting"],"@id":"https:\/\/webkul.com\/blog\/how-to-create-cs-cart-custom-shipping\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/how-to-create-cs-cart-custom-shipping\/"},"author":{"name":"Gaurav Upadhyay","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/c98d05d546603da2fa0090657723f2da"},"headline":"How to create custom shipping in CS-Cart?","datePublished":"2023-04-14T09:50:04+00:00","dateModified":"2023-04-20T06:57:56+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/how-to-create-cs-cart-custom-shipping\/"},"wordCount":595,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/how-to-create-cs-cart-custom-shipping\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/04\/screenshot_1681823366184-1200x319.png","keywords":["cs cart","cs-cart","cscart payment gateway"],"articleSection":["Cs Cart"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/how-to-create-cs-cart-custom-shipping\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/how-to-create-cs-cart-custom-shipping\/","url":"https:\/\/webkul.com\/blog\/how-to-create-cs-cart-custom-shipping\/","name":"Cscart Create Shipping method","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/how-to-create-cs-cart-custom-shipping\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/how-to-create-cs-cart-custom-shipping\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/04\/screenshot_1681823366184-1200x319.png","datePublished":"2023-04-14T09:50:04+00:00","dateModified":"2023-04-20T06:57:56+00:00","description":"To create a custom shipping method in CS-Cart, first, you need to define a new shipping method with a unique title, description, and shipping rates. Once you have defined the shipping method, you need to implement the logic to calculate the shippi % ng cost based on the order details.","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/how-to-create-cs-cart-custom-shipping\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/how-to-create-cs-cart-custom-shipping\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/how-to-create-cs-cart-custom-shipping\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/screenshot_1681823366184.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/screenshot_1681823366184.png","width":1325,"height":352,"caption":"screenshot_1681823366184"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/how-to-create-cs-cart-custom-shipping\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to create custom shipping in CS-Cart?"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/c98d05d546603da2fa0090657723f2da","name":"Gaurav Upadhyay","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/06fd05c84506530bc81d1650ad44d86a575e0b84a22f4cda7ee00281cdb9517c?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/06fd05c84506530bc81d1650ad44d86a575e0b84a22f4cda7ee00281cdb9517c?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Gaurav Upadhyay"},"description":"Gaurav Upadhyay is an expert in API, TPL, Composer, and GIT, with a strong proficiency in CS-Cart Upgrade &amp; Migrations, 3PL integrations, Payment Integrations, and OMS. He delivers seamless, efficient solutions tailored to elevate business operations and ensure top-tier performance.","url":"https:\/\/webkul.com\/blog\/author\/gauravupadhyay-cscart891\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/376513","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/459"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=376513"}],"version-history":[{"count":34,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/376513\/revisions"}],"predecessor-version":[{"id":377624,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/376513\/revisions\/377624"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=376513"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=376513"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=376513"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}