{"id":26791,"date":"2024-07-11T17:14:48","date_gmt":"2024-07-11T11:14:48","guid":{"rendered":"https:\/\/codexpert.io\/?p=26791"},"modified":"2026-05-14T15:31:49","modified_gmt":"2026-05-14T09:31:49","slug":"edit-woocommerce-cart-shortcode","status":"publish","type":"post","link":"https:\/\/codexpert.io\/blog\/edit-woocommerce-cart-shortcode\/","title":{"rendered":"How to Edit WooCommerce Cart Shortcode: From Basic to Advance"},"content":{"rendered":"<div class='cx-content-before'><\/div>\n<p class=\"wp-block-paragraph\">When it comes to creating a standard eCommerce site, there are several alternatives available. However, WooCommerce stands out as an all-in-one solution in building a complete online store. One of its standout features is the ability to add shortcodes, which lets you to develop entire pages dedicated to your WooCommerce store effortlessly.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In this blog, we will cover everything you need to know about the WooCommerce cart shortcode. By the end, you&#8217;ll be equipped to create a fully-functional online store tailored to your vision.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Ready to dive in? Let&#8217;s get started!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" style=\"font-size:28px\" id=\"cx-heading-1\">Understanding the Basics of WooCommerce Shortcodes<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/woocommerce.com\/document\/woocommerce-shortcodes\/\" target=\"_blank\" rel=\"noreferrer noopener\">WooCommerce shortcodes<\/a> are small snippets of code that perform specific functions. In short, they provide an easy way to add features without needing to touch any PHP code. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Using these shortcodes, you can easily create customized pages for your online store. The cart shortcode can display the shopping cart contents and interface, while the checkout shortcode can create a smooth checkout process.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Also, these shortcodes are highly flexible and can be customized to fit your specific needs. You can place them anywhere on your site and it allows you to design your store layout exactly as you envision it. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">These shortcodes are ready to use as soon as you install the plugin and they work seamlessly in both the Gutenberg and Classic Editor. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" style=\"font-size:28px\" id=\"cx-heading-2\">How to Manually Edit WooCommerce Cart Shortcode <\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Mastering the WooCommerce cart shortcode can give you greater control over your online store&#8217;s cart functionality. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here&#8217;s how you can manually edit your WooCommerce cart shortcode &#8211; <\/p>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"font-size:24px\" id=\"cx-heading-3\">Step 1: Add a New Page<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Start by logging in to your WooCommerce site dashboard, then go to <strong>Pages &gt; Add New<\/strong>. <\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"174\" height=\"246\" src=\"https:\/\/codexpert.io\/wp-content\/uploads\/2024\/07\/Add-new-page.webp\" alt=\"\" class=\"wp-image-26828\" \/><figcaption class=\"wp-element-caption\">Create a new page<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"font-size:24px\" id=\"cx-heading-4\">Step 2: Add Shortcode Block to Your WooCommerce Cart<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">On the WordPress editor page, click on the <strong>(+) <\/strong>sign. Search for <strong>Shortcode<\/strong> and click on it to add the block.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1132\" height=\"566\" src=\"https:\/\/codexpert.io\/wp-content\/uploads\/2024\/07\/clcik-on-plus-sign.webp\" alt=\"\" class=\"wp-image-26829\" srcset=\"https:\/\/codexpert.io\/blog\/wp-content\/uploads\/2024\/07\/clcik-on-plus-sign.webp 1132w, https:\/\/codexpert.io\/blog\/wp-content\/uploads\/2024\/07\/clcik-on-plus-sign-768x384.webp 768w\" sizes=\"auto, (max-width: 1132px) 100vw, 1132px\" \/><figcaption class=\"wp-element-caption\">Click on the Plus Button to Add Shortcode<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"padding-top:0;padding-bottom:0;font-size:24px\" id=\"cx-heading-5\">Step 3: Place Shortcode in the Block<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Enter the preferred Shortcode to add it to the Shortcode block you added.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"872\" height=\"288\" src=\"https:\/\/codexpert.io\/wp-content\/uploads\/2024\/07\/Add-shortcode.webp\" alt=\"\" class=\"wp-image-26830\" srcset=\"https:\/\/codexpert.io\/blog\/wp-content\/uploads\/2024\/07\/Add-shortcode.webp 872w, https:\/\/codexpert.io\/blog\/wp-content\/uploads\/2024\/07\/Add-shortcode-768x254.webp 768w\" sizes=\"auto, (max-width: 872px) 100vw, 872px\" \/><figcaption class=\"wp-element-caption\">Add WooCommerce Shortcode<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"font-size:24px\" id=\"cx-heading-6\">Step 4: Customize New WooCommerce Cart Page<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">To do this, open the new page with the Gutenberg Editor. Click on the <strong>(x)<\/strong> sign on the left of the page. You\u2019ll find necessary <strong>blocks, widgets, design elements<\/strong>, and more from here. Then, choose your desired blocks to customize.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1105\" height=\"798\" src=\"https:\/\/codexpert.io\/wp-content\/uploads\/2024\/07\/Gutenberg-customization.webp\" alt=\"edit-woocommerce-cart-shortcode\" class=\"wp-image-26831\" srcset=\"https:\/\/codexpert.io\/blog\/wp-content\/uploads\/2024\/07\/Gutenberg-customization.webp 1105w, https:\/\/codexpert.io\/blog\/wp-content\/uploads\/2024\/07\/Gutenberg-customization-768x555.webp 768w\" sizes=\"auto, (max-width: 1105px) 100vw, 1105px\" \/><figcaption class=\"wp-element-caption\">Customize the WooCommerce Cart Shortcode<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Finally, click <strong>Publish<\/strong> to save your changes.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"font-size:24px\" id=\"cx-heading-7\">Step 5: Add Custom CSS for Shortcodes<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Implement responsive CSS to improve the appearance of your Custom Shortcode on any device. You can ensure this by using media queries to specify different styles for different-sized screens.<\/p>\n\n\n\n<div class=\"wp-block-group alignfull is-content-justification-center is-layout-constrained wp-container-core-group-is-layout-a8936095 wp-block-group-is-layout-constrained\" style=\"margin-top:var(--wp--preset--spacing--50);margin-bottom:var(--wp--preset--spacing--50);padding-top:var(--wp--preset--spacing--50);padding-right:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50);padding-left:var(--wp--preset--spacing--50)\">\n<div class=\"wp-block-group has-ast-global-color-8-background-color has-background is-layout-constrained wp-container-core-group-is-layout-49d67c89 wp-block-group-is-layout-constrained\" style=\"margin-top:var(--wp--preset--spacing--50);margin-bottom:var(--wp--preset--spacing--50);padding-top:var(--wp--preset--spacing--50);padding-right:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50);padding-left:var(--wp--preset--spacing--50)\">\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"has-ast-global-color-5-color has-text-color has-link-color wp-elements-1 wp-block-paragraph\">@media (max-width: 768px) {<\/p>\n\n\n\n<p class=\"has-ast-global-color-5-color has-text-color has-link-color wp-elements-2 wp-block-paragraph\">.woocommerce-products {<\/p>\n\n\n\n<p class=\"has-ast-global-color-5-color has-text-color has-link-color wp-elements-3 wp-block-paragraph\">font-size: smaller; \/* Decreases font size on smaller devices *\/<\/p>\n\n\n\n<p class=\"has-ast-global-color-5-color has-text-color has-link-color wp-elements-4 wp-block-paragraph\">}<\/p>\n\n\n\n<p class=\"has-ast-global-color-5-color has-text-color has-link-color wp-elements-5 wp-block-paragraph\">}<\/p>\n<\/div>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"font-size:24px\" id=\"cx-heading-8\">Step 6: Create Custom Shortcodes<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">To create a custom shortcode, add a new PHP function with your theme\u2019s function.php file. Don\u2019t forget to give a unique name that resonates with your shortcode purpose.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here is a simple structure you can follow &#8211; <\/p>\n\n\n\n<div class=\"wp-block-group is-content-justification-center is-layout-constrained wp-container-core-group-is-layout-9197820c wp-block-group-is-layout-constrained\" style=\"margin-top:var(--wp--preset--spacing--50);margin-bottom:var(--wp--preset--spacing--50);padding-top:var(--wp--preset--spacing--50);padding-right:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50);padding-left:var(--wp--preset--spacing--50)\">\n<div class=\"wp-block-group has-ast-global-color-8-background-color has-background is-layout-constrained wp-container-core-group-is-layout-f0623e59 wp-block-group-is-layout-constrained\">\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\">\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<div class=\"wp-block-group is-layout-constrained wp-container-core-group-is-layout-49d67c89 wp-block-group-is-layout-constrained\" style=\"margin-top:var(--wp--preset--spacing--50);margin-bottom:var(--wp--preset--spacing--50);padding-top:var(--wp--preset--spacing--50);padding-right:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50);padding-left:var(--wp--preset--spacing--50)\">\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\">\n<p class=\"has-ast-global-color-5-color has-text-color has-link-color wp-elements-6 wp-block-paragraph\">function display_custom_content() {<\/p>\n<\/div>\n\n\n\n<p class=\"has-ast-global-color-5-color has-text-color has-link-color wp-elements-7 wp-block-paragraph\">\/\/ Insert your custom code here<\/p>\n\n\n\n<p class=\"has-ast-global-color-5-color has-text-color has-link-color wp-elements-8 wp-block-paragraph\">return &#8216;Content that will be displayed by the shortcode.&#8217;;<\/p>\n\n\n\n<p class=\"has-ast-global-color-5-color has-text-color has-link-color wp-elements-9 wp-block-paragraph\">}<\/p>\n\n\n\n<p class=\"has-ast-global-color-5-color has-text-color has-link-color wp-elements-10 wp-block-paragraph\">add_shortcode(&#8216;custom_shortcode&#8217;, &#8216;display_custom_content&#8217;);<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"font-size:24px\" id=\"cx-heading-9\">Step 7: Publish and Preview the New Cart Page<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Preview it on a new tab and publish it. You can also use the <strong>Customize<\/strong> button from the top of that page to make any final adjustments.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" style=\"font-size:28px\" id=\"cx-heading-10\">Edit WooCommerce Cart Shortcode Using Theme Editor<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Now that you know how to edit WooCommerce shortcode manually. Here&#8217;s an easier method you can use to edit WooCommerce cart shortcode &#8211;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"font-size:24px\" id=\"cx-heading-11\">Step 1: Create a Child Theme<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Create a child theme to ensure the changes you made are saved when you update your WooCommerce or theme. New changes will automatically override any existing settings, so make sure to turn on the child theme before starting.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"font-size:24px\" id=\"cx-heading-12\">Step 2: Copy the Template<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Locate the template for the shortcode you want to customize in the WooCommerce plugin folder. Copy the template file you&#8217;ve created to your theme folder.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"font-size:24px\" id=\"cx-heading-13\">Step 3: Do Necessary Customization<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Open the template file in any editor and make the changes you need based on your user preferences. You can modify the appearance and behavior of the shortcode from here.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"font-size:24px\" id=\"cx-heading-14\">Step 4: Save and Test Your Changes<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Save your customized template file in the child theme folder. After that, make sure everything is working as expected.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"font-size:24px\" id=\"cx-heading-15\">Limitations of WooCommerce ShortCodes<\/h3>\n\n\n\n<ul class=\"wp-block-list\" style=\"font-size:17px\">\n<li><strong>Limited Options for Designs<\/strong>: With WooCommerce shortcodes, customization options for your store are somewhat limited. While they offer basic designs, they don&#8217;t allow for extensive modifications to match your online store\u2019s theme perfectly.<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\" style=\"font-size:17px\">\n<li><strong>Poor User Experience: <\/strong>When you\u2019re using shortcodes in your WoooCommerce site, it can potentially slow down your website.<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\" style=\"font-size:17px\">\n<li><strong>Compatibility: <\/strong>It may not be compatible with all the WordPress themes and plugins. This can lead to broken pages or critical errors on your live page.<\/li>\n<\/ul>\n\n\n\n<div style=\"height:16px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" style=\"font-size:28px\" id=\"cx-heading-16\">Alternatives to WooCommerce Cart Shortcode<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">We have identified some major limitations of WooCommerce shortcodes. To overcome these, we&#8217;ll explore a more effective method using one of the WooCommerce add-ons. Here we will use a free add-on to make the necessary edits &#8211; <\/p>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"font-size:24px\" id=\"cx-heading-17\">Step 1: Install and Activate the Required Plugins<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If you&#8217;re starting without a WooCommerce shortcode, you have to install and activate CoDesigner within your WooCommerce store.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1285\" height=\"704\" src=\"https:\/\/codexpert.io\/wp-content\/uploads\/2024\/06\/Install-CoDesigner.webp\" alt=\"\" class=\"wp-image-26315\" srcset=\"https:\/\/codexpert.io\/blog\/wp-content\/uploads\/2024\/06\/Install-CoDesigner.webp 1285w, https:\/\/codexpert.io\/blog\/wp-content\/uploads\/2024\/06\/Install-CoDesigner-768x421.webp 768w\" sizes=\"auto, (max-width: 1285px) 100vw, 1285px\" \/><\/figure>\n\n\n\n<p class=\"has-text-align-center has-text-color has-link-color wp-elements-11 wp-block-paragraph\" style=\"color:#0d6b46\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"font-size:24px\" id=\"cx-heading-18\">Step 2: Enable Necessary Widgets<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Once you&#8217;ve activated the necessary plugins, you have to enable the cart-related widgets. For this, navigate to the <strong>CoDesigner &gt; Widgets<\/strong> page from your site dashboard.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1156\" height=\"493\" src=\"https:\/\/codexpert.io\/wp-content\/uploads\/2024\/06\/Cart-widgets.png\" alt=\"\" class=\"wp-image-26316\" srcset=\"https:\/\/codexpert.io\/blog\/wp-content\/uploads\/2024\/06\/Cart-widgets.png 1156w, https:\/\/codexpert.io\/blog\/wp-content\/uploads\/2024\/06\/Cart-widgets-768x328.png 768w\" sizes=\"auto, (max-width: 1156px) 100vw, 1156px\" \/><figcaption class=\"wp-element-caption\">Enable the widgets and Save them<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Search for <strong>Cart Items, Cart Items Classic, and Cart Overview<\/strong> from the widgets section. Finally, enable those widgets and click on the <strong>Save Settings<\/strong> button.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"font-size:24px\" id=\"cx-heading-19\">Step 3: Create and Customize WooCommerce Cart Page<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">You can customize the WooCommrece cart page which is already available or create a new one. To do this, go to Pages &gt; Add New Page or you can customize the existing cart page from this section as well. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Hover over the existing cart page, click on <strong>Edit with Elementor<\/strong> to customize it. <\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1267\" height=\"839\" src=\"https:\/\/codexpert.io\/wp-content\/uploads\/2024\/06\/Edit-Cart-Page-with-Elementor.png\" alt=\"\" class=\"wp-image-26317\" srcset=\"https:\/\/codexpert.io\/blog\/wp-content\/uploads\/2024\/06\/Edit-Cart-Page-with-Elementor.png 1267w, https:\/\/codexpert.io\/blog\/wp-content\/uploads\/2024\/06\/Edit-Cart-Page-with-Elementor-768x509.png 768w\" sizes=\"auto, (max-width: 1267px) 100vw, 1267px\" \/><figcaption class=\"wp-element-caption\">Open Cart Page with Elementor<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Drag and drop the desired CoDesigner cart widgets to the empty sections. <\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"402\" height=\"466\" src=\"https:\/\/codexpert.io\/wp-content\/uploads\/2024\/07\/Drag-cart-widgets-in-Elementor.webp\" alt=\"\" class=\"wp-image-26834\" \/><figcaption class=\"wp-element-caption\">Drag widgets to the Elementor Section<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">With CoDesigner, you can have complete freedom of customization. You can edit different parts of any of the widgets including <strong>Text colors, Typography, Background<\/strong>, and more. <\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1842\" height=\"884\" src=\"https:\/\/codexpert.io\/wp-content\/uploads\/2024\/06\/Apply-Style.png\" alt=\"edit-woocommerce-cart-shortcode\" class=\"wp-image-26320\" srcset=\"https:\/\/codexpert.io\/blog\/wp-content\/uploads\/2024\/06\/Apply-Style.png 1842w, https:\/\/codexpert.io\/blog\/wp-content\/uploads\/2024\/06\/Apply-Style-768x369.png 768w, https:\/\/codexpert.io\/blog\/wp-content\/uploads\/2024\/06\/Apply-Style-1536x737.png 1536w\" sizes=\"auto, (max-width: 1842px) 100vw, 1842px\" \/><figcaption class=\"wp-element-caption\">Add Style to the Cart Page<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"font-size:24px\" id=\"cx-heading-20\">Step 4: Set as Default Cart Page<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Once you&#8217;re happy with the changes, click on the <strong>Publish<\/strong> button to save changes and check if any extra customizations need to be made.  And finally, set this cart template as the default WooCommerce cart page from <strong>Settings &gt; Advanced &gt; Cart Page<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1345\" height=\"755\" src=\"https:\/\/codexpert.io\/wp-content\/uploads\/2024\/07\/set-cart-page-as-default.webp\" alt=\"edit-woocommerce-cart-shortcode\" class=\"wp-image-26835\" srcset=\"https:\/\/codexpert.io\/blog\/wp-content\/uploads\/2024\/07\/set-cart-page-as-default.webp 1345w, https:\/\/codexpert.io\/blog\/wp-content\/uploads\/2024\/07\/set-cart-page-as-default-768x431.webp 768w\" sizes=\"auto, (max-width: 1345px) 100vw, 1345px\" \/><figcaption class=\"wp-element-caption\">Set the new Cart Page as Default<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" style=\"font-size:28px\" id=\"cx-heading-21\">Create WooCommerce Cart Page Using Templates<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">We already know how to create a cart page without using WooCommerce shortcodes. In this section, we\u2019ll show you how to create a WooCommerce cart page by using pre-made templates. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"font-size:24px\" id=\"cx-heading-22\">Step 1: Edit Cart Page with Elementor<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Start by creating or opening the cart page in Elementor. Find the CoDesigner icon and click on it. <\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1641\" height=\"394\" src=\"https:\/\/codexpert.io\/wp-content\/uploads\/2024\/06\/CoDesigner-Templates-Elementor.png\" alt=\"\" class=\"wp-image-26322\" srcset=\"https:\/\/codexpert.io\/blog\/wp-content\/uploads\/2024\/06\/CoDesigner-Templates-Elementor.png 1641w, https:\/\/codexpert.io\/blog\/wp-content\/uploads\/2024\/06\/CoDesigner-Templates-Elementor-768x184.png 768w, https:\/\/codexpert.io\/blog\/wp-content\/uploads\/2024\/06\/CoDesigner-Templates-Elementor-1536x369.png 1536w\" sizes=\"auto, (max-width: 1641px) 100vw, 1641px\" \/><figcaption class=\"wp-element-caption\">Click on CoDesigner Icon<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"font-size:24px\" id=\"cx-heading-23\">Step 2: Insert CoDesigner Template<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">After clicking on the icon, a popup will appear. In the popup, select the blocks and choose the <strong>Cart<\/strong> category from the dropdown menu. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Hover over the available templates and click <strong>Insert<\/strong> to add the desired template.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1312\" height=\"618\" src=\"https:\/\/codexpert.io\/wp-content\/uploads\/2024\/06\/Templates-choosing.png\" alt=\"edit-woocommerce-cart-with-template\" class=\"wp-image-26323\" srcset=\"https:\/\/codexpert.io\/blog\/wp-content\/uploads\/2024\/06\/Templates-choosing.png 1312w, https:\/\/codexpert.io\/blog\/wp-content\/uploads\/2024\/06\/Templates-choosing-768x362.png 768w\" sizes=\"auto, (max-width: 1312px) 100vw, 1312px\" \/><figcaption class=\"wp-element-caption\">Choose any template for WooCommerce Cart<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">When the customizations are complete, click on the <strong>Update<\/strong> button from the editor to save changes. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" style=\"font-size:28px\" id=\"cx-heading-24\">Final Words<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Using WooCommerce shortcodes is a great way to customize your pages easily and in a user-friendly manner. However, they do have some limitations when it comes to customization.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For a beautifully customized cart page, consider using CoDesigner and focus on addressing the pain points of your customers and resolve them using advanced methods. This approach will make your customers feel more comfortable and help increase customer retention in no time!<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-text-align-left\" style=\"font-size:28px\" id=\"cx-heading-25\">Frequently Asked Questions (FAQs)<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\" style=\"font-size:22px\"><strong>How do I edit shortcodes in WooCommerce?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li style=\"font-size:17px\">Add a New page.<\/li>\n\n\n\n<li style=\"font-size:17px\">Search Shortcode Block on that page.<\/li>\n\n\n\n<li style=\"font-size:17px\">Place the required Shortcode in that Block.<\/li>\n\n\n\n<li style=\"font-size:17px\">Customize the new WooCommerce Page using block editor and finally publish it.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\" style=\"font-size:22px\"><strong>How do I add WooCommerce cart shortcode?<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To add WooCommerce cart shortcode,<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li style=\"font-size:17px\">Go to site dashboard Pages and click on the Add New Page button<\/li>\n\n\n\n<li style=\"font-size:17px\">From that page, search Shortcode Block in Your WooCommerce Cart<\/li>\n\n\n\n<li style=\"font-size:17px\">Place the required Shortcode in that Block<\/li>\n\n\n\n<li style=\"font-size:17px\">Finally, click on the Publish button<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\" style=\"font-size:22px\"><strong>How do I edit WooCommerce cart shortcode free?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li style=\"font-size:17px\">Install and activate the WooCommerce addon<\/li>\n\n\n\n<li style=\"font-size:17px\">Enable the cart widgets<\/li>\n\n\n\n<li style=\"font-size:17px\">Create a new page and open it with Elementor<\/li>\n\n\n\n<li style=\"font-size:17px\">Drag the cart widgets on Elementor sections<\/li>\n\n\n\n<li style=\"font-size:17px\">Add style to the cart page using Elementor<\/li>\n\n\n\n<li style=\"font-size:17px\">Finally, publish the WooCommerce cart page<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\" style=\"font-size:22px\"><strong>How do I customize the WooCommerce shortcode?<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can customize this WooCommerce part using actions and filter hooks. You need to add your custom functions to your plugins or theme\u2019s function.php file. This allows you to extend the default functionalities without modifying the core files. But, you need to create a child theme so that future updates won\u2019t replace the changes you made.<\/p>\n<div class='cx-content-after'><\/div>","protected":false},"excerpt":{"rendered":"<p>When it comes to creating a standard eCommerce site, there are several alternatives available. However, WooCommerce stands out as an all-in-one solution in building a complete online store. One of its standout features is the ability to add shortcodes, which lets you to develop entire pages dedicated to your WooCommerce store effortlessly. In this blog, [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":27193,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[14],"tags":[26],"class_list":["post-26791","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-woocommerce","tag-woolementor"],"_links":{"self":[{"href":"https:\/\/codexpert.io\/blog\/wp-json\/wp\/v2\/posts\/26791","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codexpert.io\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codexpert.io\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codexpert.io\/blog\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/codexpert.io\/blog\/wp-json\/wp\/v2\/comments?post=26791"}],"version-history":[{"count":1,"href":"https:\/\/codexpert.io\/blog\/wp-json\/wp\/v2\/posts\/26791\/revisions"}],"predecessor-version":[{"id":33230,"href":"https:\/\/codexpert.io\/blog\/wp-json\/wp\/v2\/posts\/26791\/revisions\/33230"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codexpert.io\/blog\/wp-json\/wp\/v2\/media\/27193"}],"wp:attachment":[{"href":"https:\/\/codexpert.io\/blog\/wp-json\/wp\/v2\/media?parent=26791"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codexpert.io\/blog\/wp-json\/wp\/v2\/categories?post=26791"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codexpert.io\/blog\/wp-json\/wp\/v2\/tags?post=26791"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}