iabdullah
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] "We recommend" sectionThank you! That did it.
Forum: Plugins
In reply to: [Yoast SEO] Error titleI don’t know how, but the issue has disappeared.
Forum: Plugins
In reply to: [WooCommerce] WooCommerce search problemOk, can you reccomend me any free alternatives?
Forum: Plugins
In reply to: [Yoast SEO] Error titleUpdate, it shows on new products too.
Forum: Plugins
In reply to: [Awesome Support - WordPress HelpDesk & Support Plugin] Change warning textTo be more specific, I want to change the url in order to redirect it to a woocommerce endpoint (example.com/my-account/orders). Also, I want to redirect the “My tickets” button (when you open a new ticket, top-left handside) to another woocommerce endpoint (example.com/my-account/support). I noticed it is not possible to do in the Awesome Support settings section, you can only redirect to a page and NOT an endpoint. Therefore I was looking for a solution using custom functions.
Regards.
Forum: Plugins
In reply to: [WooCommerce] Add new tab in 'My Account' pageThank you so much! I’ve done it!
Forum: Plugins
In reply to: [WooCommerce] Add new tab in 'My Account' pageI tried this code:
function my_custom_my_account_menu_items( $items ) { // Remove the logout menu item. $logout = $items['customer-logout']; unset( $items['customer-logout'] ); // Insert your custom endpoint. $items['my-custom-endpoint'] = __( 'My Custom Endpoint', 'woocommerce' ); // Insert back the logout item. $items['customer-logout'] = $logout; return $items; } add_filter( 'woocommerce_account_menu_items', 'my_custom_my_account_menu_items' );
It works as the above, but it’s much easier to understand. Now I don’t know how to add contents. I’ve tried the following:
function my_custom_my_account_menu_items( $items ) { // Remove the logout menu item. $logout = $items['customer-logout']; unset( $items['customer-logout'] ); // Insert your custom endpoint. $items['my-custom-endpoint'] = __( 'My Custom Endpoint', 'woocommerce' ); // Insert back the logout item. $items['customer-logout'] = $logout; return $items; } add_filter( 'woocommerce_account_menu_items', 'my_custom_my_account_menu_items' );
Bit it doesn’t work.
I’ve checked from here.
Forum: Plugins
In reply to: [WooCommerce] Add new tab in 'My Account' pageForum: Plugins
In reply to: [WooCommerce] Add new tab in 'My Account' pageI’ve tried that, but the problem is it redirects the customer to a not-existing page. I’ve set the endpoint as “Support” and I’ve created a new file into wp-content/plugins/woocommerce/templates/my-account named support.php, but it still shows a 404 error.
Forum: Plugins
In reply to: [Awesome Support - WordPress HelpDesk & Support Plugin] WooCommerce loginThank you so much!