{"id":3848,"date":"2020-03-17T11:52:19","date_gmt":"2020-03-17T10:52:19","guid":{"rendered":"https:\/\/disespubli.com\/?post_type=docs&#038;p=3848"},"modified":"2021-11-04T09:33:59","modified_gmt":"2021-11-04T08:33:59","password":"","slug":"payment-methods-shortcode","status":"publish","type":"docs","link":"https:\/\/disespubli.com\/docs\/payment-methods-shortcode\/","title":{"rendered":"Payment methods shortcode"},"content":{"rendered":"<h2>How work this function?<\/h2>\n<hr \/>\n<p>This function allows you to display the payment methods on the my account page with a shortcode. In other words, you can add the client&#8217;s payment methods anywhere on the My Account page, without the need to use the shortcode WooCommerce has by default.<\/p>\n<p>&nbsp;<\/p>\n<h2>How to configure?<\/h2>\n<hr \/>\n<p><a href=\"https:\/\/disespubli.com\/wp-content\/uploads\/2020\/03\/payment-methods-shortcode-docs.jpg\"><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter wp-image-5580\" src=\"https:\/\/disespubli.com\/wp-content\/uploads\/2020\/03\/payment-methods-shortcode-docs.jpg\" alt=\"\" width=\"750\" height=\"440\" srcset=\"https:\/\/disespubli.com\/wp-content\/uploads\/2020\/03\/payment-methods-shortcode-docs.jpg 1000w, https:\/\/disespubli.com\/wp-content\/uploads\/2020\/03\/payment-methods-shortcode-docs-300x176.jpg 300w, https:\/\/disespubli.com\/wp-content\/uploads\/2020\/03\/payment-methods-shortcode-docs-768x451.jpg 768w, https:\/\/disespubli.com\/wp-content\/uploads\/2020\/03\/payment-methods-shortcode-docs-600x352.jpg 600w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/a><\/p>\n<p>Once you have created the custom account page, just follow these steps:<\/p>\n<p>1\u00ba Activate the function making the slider show in green<br \/>\n2\u00ba It displays the advanced options of the function<br \/>\n3\u00ba Copy the shortcode by clicking on the button<br \/>\n4\u00ba Scroll to the end, where you will find the button to save the settings<\/p>\n<p>&nbsp;<\/p>\n<p>For a correct use of the function, 2 important factors must be taken into account:<\/p>\n<p>1\u00ba This shortcode will only work if you are on an account page, so your new account page must be assigned as the WooCommerce account page. To assign it, you just have to go to the WooCommerce settings, access the Advanced tab and select the new page as my account page. Remember to save the changes.<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/disespubli.com\/wp-content\/uploads\/2020\/03\/account-settings-docs.jpg\"><img decoding=\"async\" class=\"aligncenter wp-image-5572 size-full\" src=\"https:\/\/disespubli.com\/wp-content\/uploads\/2020\/03\/account-settings-docs.jpg\" alt=\"\" width=\"736\" height=\"417\" srcset=\"https:\/\/disespubli.com\/wp-content\/uploads\/2020\/03\/account-settings-docs.jpg 736w, https:\/\/disespubli.com\/wp-content\/uploads\/2020\/03\/account-settings-docs-300x170.jpg 300w, https:\/\/disespubli.com\/wp-content\/uploads\/2020\/03\/account-settings-docs-600x340.jpg 600w\" sizes=\"(max-width: 736px) 100vw, 736px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>2\u00ba Payment methods have various advanced actions (Add new payment method, set by default and Delete) which for example are accessed by clicking on the &#8220;ADD PAYMENT METHOD&#8221; button that appears in the list of payment methods . When you click on the &#8220;ADD PAYMENT METHOD&#8221; button using this shortcode, a page refresh occurs and after the new load the payment methods form will appear just below the list of customer payment methods. So that after clicking on the &#8220;ADD PAYMENT METHOD&#8221; button and reloading the page, the user will keep viewing the list and payment methods form, you will need the addon <strong><a href=\"https:\/\/disespubli.com\/producto\/custom-blocks-and-redirections-addon-for-wshk\/\" target=\"_blank\" rel=\"noopener noreferrer\">Woo Shortcodes Kit PRO<\/a><\/strong>, which offers a function to manage redirects to the advanced actions of the WooCommerce account.<\/p>\n<p>You can <a href=\"https:\/\/disespubli.com\/docs\/custom-redirections\/\" target=\"_blank\" rel=\"noopener noreferrer\">see how this PRO function works from here<\/a>.<\/p>\n<p>&nbsp;<\/p>\n<h2>Video<\/h2>\n<hr \/>\n<div style=\"position: relative; padding-bottom: 56.25%; height: 0;\"><iframe style=\"position: absolute; top: 0; left: 0; width: 100%; height: 100%;\" src=\"https:\/\/www.loom.com\/embed\/09ee87f60b744babbac044b419580454\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/div>\n<p>&nbsp;<\/p>\n<p>If you want to expand the possibilities of your account page, you can do it with the following functions included in this section.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How work this function? This function allows you to display the payment methods on the my account page with a shortcode. In other words, you can add the client&#8217;s payment methods anywhere on the My Account page, without the need to use the shortcode WooCommerce has by default. &nbsp; How to configure? Once you have &#8230; <a title=\"Payment methods shortcode\" class=\"read-more\" href=\"https:\/\/disespubli.com\/docs\/payment-methods-shortcode\/\" aria-label=\"Read more about Payment methods shortcode\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[130],"doc_tag":[],"class_list":["post-3848","docs","type-docs","status-publish","hentry","doc_category-account-page"],"year_month":"2026-04","word_count":332,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"Alberto G.","author_nicename":"admin","author_url":"https:\/\/disespubli.com\/author\/admin\/"},"doc_category_info":[{"term_name":"Account page","term_url":"https:\/\/disespubli.com\/docs-category\/account-page\/"}],"doc_tag_info":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Payment methods shortcode - Disespubli<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/disespubli.com\/docs\/payment-methods-shortcode\/\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/disespubli.com\/docs\/payment-methods-shortcode\/\",\"url\":\"https:\/\/disespubli.com\/docs\/payment-methods-shortcode\/\",\"name\":\"Payment methods shortcode - Disespubli\",\"isPartOf\":{\"@id\":\"https:\/\/disespubli.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/disespubli.com\/docs\/payment-methods-shortcode\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/disespubli.com\/docs\/payment-methods-shortcode\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/disespubli.com\/wp-content\/uploads\/2020\/03\/payment-methods-shortcode-docs.jpg\",\"datePublished\":\"2020-03-17T10:52:19+00:00\",\"dateModified\":\"2021-11-04T08:33:59+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/disespubli.com\/docs\/payment-methods-shortcode\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/disespubli.com\/docs\/payment-methods-shortcode\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/disespubli.com\/docs\/payment-methods-shortcode\/#primaryimage\",\"url\":\"https:\/\/disespubli.com\/wp-content\/uploads\/2020\/03\/payment-methods-shortcode-docs.jpg\",\"contentUrl\":\"https:\/\/disespubli.com\/wp-content\/uploads\/2020\/03\/payment-methods-shortcode-docs.jpg\",\"width\":1000,\"height\":587},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/disespubli.com\/docs\/payment-methods-shortcode\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Portada\",\"item\":\"https:\/\/disespubli.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Payment methods shortcode\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/disespubli.com\/#website\",\"url\":\"https:\/\/disespubli.com\/\",\"name\":\"Disespubli\",\"description\":\"Woo Shortcodes Kit plugins development\",\"publisher\":{\"@id\":\"https:\/\/disespubli.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/disespubli.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/disespubli.com\/#organization\",\"name\":\"Disespubli\",\"url\":\"https:\/\/disespubli.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/disespubli.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/disespubli.com\/wp-content\/uploads\/revslider\/thedises1\/logomorado2.png\",\"contentUrl\":\"https:\/\/disespubli.com\/wp-content\/uploads\/revslider\/thedises1\/logomorado2.png\",\"width\":1000,\"height\":1000,\"caption\":\"Disespubli\"},\"image\":{\"@id\":\"https:\/\/disespubli.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/disespubli\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Payment methods shortcode - Disespubli","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:\/\/disespubli.com\/docs\/payment-methods-shortcode\/","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/disespubli.com\/docs\/payment-methods-shortcode\/","url":"https:\/\/disespubli.com\/docs\/payment-methods-shortcode\/","name":"Payment methods shortcode - Disespubli","isPartOf":{"@id":"https:\/\/disespubli.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/disespubli.com\/docs\/payment-methods-shortcode\/#primaryimage"},"image":{"@id":"https:\/\/disespubli.com\/docs\/payment-methods-shortcode\/#primaryimage"},"thumbnailUrl":"https:\/\/disespubli.com\/wp-content\/uploads\/2020\/03\/payment-methods-shortcode-docs.jpg","datePublished":"2020-03-17T10:52:19+00:00","dateModified":"2021-11-04T08:33:59+00:00","breadcrumb":{"@id":"https:\/\/disespubli.com\/docs\/payment-methods-shortcode\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/disespubli.com\/docs\/payment-methods-shortcode\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/disespubli.com\/docs\/payment-methods-shortcode\/#primaryimage","url":"https:\/\/disespubli.com\/wp-content\/uploads\/2020\/03\/payment-methods-shortcode-docs.jpg","contentUrl":"https:\/\/disespubli.com\/wp-content\/uploads\/2020\/03\/payment-methods-shortcode-docs.jpg","width":1000,"height":587},{"@type":"BreadcrumbList","@id":"https:\/\/disespubli.com\/docs\/payment-methods-shortcode\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Portada","item":"https:\/\/disespubli.com\/"},{"@type":"ListItem","position":2,"name":"Payment methods shortcode"}]},{"@type":"WebSite","@id":"https:\/\/disespubli.com\/#website","url":"https:\/\/disespubli.com\/","name":"Disespubli","description":"Woo Shortcodes Kit plugins development","publisher":{"@id":"https:\/\/disespubli.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/disespubli.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/disespubli.com\/#organization","name":"Disespubli","url":"https:\/\/disespubli.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/disespubli.com\/#\/schema\/logo\/image\/","url":"https:\/\/disespubli.com\/wp-content\/uploads\/revslider\/thedises1\/logomorado2.png","contentUrl":"https:\/\/disespubli.com\/wp-content\/uploads\/revslider\/thedises1\/logomorado2.png","width":1000,"height":1000,"caption":"Disespubli"},"image":{"@id":"https:\/\/disespubli.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/disespubli\/"]}]}},"_links":{"self":[{"href":"https:\/\/disespubli.com\/wp-json\/wp\/v2\/docs\/3848","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/disespubli.com\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/disespubli.com\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/disespubli.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/disespubli.com\/wp-json\/wp\/v2\/comments?post=3848"}],"version-history":[{"count":0,"href":"https:\/\/disespubli.com\/wp-json\/wp\/v2\/docs\/3848\/revisions"}],"wp:attachment":[{"href":"https:\/\/disespubli.com\/wp-json\/wp\/v2\/media?parent=3848"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/disespubli.com\/wp-json\/wp\/v2\/doc_category?post=3848"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/disespubli.com\/wp-json\/wp\/v2\/doc_tag?post=3848"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}