In the Article in the Link, you will find the Custom Tab (Hinweis) and i want to move it after the Description (Beschreibung).
Thanks for your helping Hand.
BR Richard
<div class="wb_cptb_content">Оплатить товар можно двумя способами:<br>
<ol><br>
<li>Предоплата.</li><br>
<li>Наложенный платёж</li><br>
</ol></div>
Please, delete the tag <br>.
]]>Can you help me ? Thank you.
]]>I mean..
Description Title Tab
Display = Description Tab Content
Custom Title Tab
Display = Description Tab Content (instead Custom Tab Content)
How can I resolve it? I know that there are some compatibility issue with @the_content
, but I’m not such good on it to work it out. Thanks
function check_warranty()
{
echo 'please code here';
}
add_shortcode('check_warranty', 'check_warranty');
In my account page, I added a custom tab using this code:
add_action( 'init', 'register_new_item_endpoint');
function register_new_item_endpoint() {
add_rewrite_endpoint( 'warranty-check', EP_ROOT | EP_PAGES );
}
add_filter( 'query_vars', 'new_item_query_vars' );
function new_item_query_vars( $vars ) {
$vars[] = 'warranty-check';
return $vars;
}
add_filter( 'woocommerce_account_menu_items', 'add_new_item_tab' );
function add_new_item_tab( $items ) {
$items['warranty-check'] = 'Warranty Check';
return $items;
}
add_action( 'woocommerce_account_warranty-check_endpoint', 'add_new_item_content' );
function add_new_item_content() {
echo do_shortcode( ' [check_warranty] ' );
}
I created a page with slug “warranty-check” and I put in the shortcode:
[check_warranty]
In My Account page, when I click on “Warranty Check” tab, is loaded the page created, without my account left sidebar.
What am I doing wrong?
Thank you.
Is there any filter or hook to do so?
Thanks!
]]>