Ramon Ahnert
Forum Replies Created
-
Hi @aipok
This issue is fixed in Orderable Pro 1.18.2. Just make sure that the Checkout page is properly set up in WooCommerce (WooCommerce -> Settings -> Advanced -> Page setup).
Hi @aipok
The Max Orders (Slot) works on the checkout block. However, you have to make sure the page using the checkout block is properly configured as the Checkout page in WooCommerce.
You can check that in WooCommerce -> Settings -> Advanced -> Page setup.
If you want to use the Checkout block on another page (other than the Checkout page defined by WooCommerce), it’s necessary to use the code snippet below:
add_filter(
'orderable_skip_orders_remaining_check',
function( $skip_orders_remaining_check, $available, $type, $timestamp, $time_slot_settings ) {
global $post;
if ( is_checkout() ) {
return $skip_orders_remaining_check;
}
if ( empty( $post ) ) {
return $skip_orders_remaining_check;
}
$has_checkout_shortcode = has_shortcode( $post->post_content ?? '', 'woocommerce_checkout' );
$has_checkout_block = has_block( 'woocommerce/checkout', $post ) || has_block( 'woocommerce/classic-shortcode', $post );
return ! ( $has_checkout_shortcode || $has_checkout_block );
},
10,
5
);This code snippet checks if the current page has the shortcode [woocommerce_checkout] or the Checkout block. If so, it doesn’t skip the orders remaining check even though the page is not the checkout page defined by WooCommerce.
Forum: Plugins
In reply to: [Orderable - Restaurant & Food Ordering System] Live View OrdersHi @aipok
To change the sound file, you would need to add a PHP code snippet either by using the Code Snippets plugin or by adding the code to your functions.php
add_filter(
'orderable_live_view_new_order_audio_file_url',
function() {
return 'https://yourdomain.com/path/to/sound.wav';
}
);Replace the example URL with the actual URL to your sound file; this could be a file that exists in the media library, for example.
Forum: Plugins
In reply to: [Require Login for WooCommerce] Shop page loading BlankThe WooCommerce for Logged-in Users plugin doesn’t affect/change the permalinks. I’d say this issue was caused by another plugin/theme.
However, if you have steps to reproduce this issue in a fresh environment, share the steps here and I can investigate it better.
Hi @ryanmvickerman,
I don’t see any obvious issues with hiding the “Save to account” checkbox using CSS. If you are using the Classic Checkout, you also can hide this checkbox with the code snippet below:
add_filter( 'woocommerce_payment_gateway_save_new_payment_method_option_html', '__return_empty_string' );@slewisma you are right. The previous code snippet applies only to subscription products.
If you want to hide the Pay button regardless the products are a subscription or not, you can use the code snippet below:
add_filter(
'woocommerce_my_account_my_orders_actions',
function( $actions, $order ) {
if ( 'stellarpay-stripe' !== $order->get_payment_method() ) {
return $actions;
}
unset( $actions['pay'] );
unset( $actions['cancel'] );
return $actions;
},
50,
2
);Hi @slewisma
While we are fixing that, you can use this code snippet to avoid showing this button:
add_filter(
'woocommerce_my_account_my_orders_actions',
function( $actions, $order ) {
if ( ! class_exists( 'StellarPay\Subscriptions\Models\Subscription' ) ) {
return $actions;
}
$subscription = StellarPay\Subscriptions\Models\Subscription::findByFirstOrderId( $order->get_id() );
if ( ! ( $subscription instanceof StellarPay\Subscriptions\Models\Subscription ) ) {
return $actions;
}
unset( $actions['pay'] );
unset( $actions['cancel'] );
return $actions;
},
50,
2
);You can add this code snippet in the functions.php file or using a plugin like Code Snippets (https://ww.wp.xz.cn/plugins/code-snippets/)
Forum: Plugins
In reply to: [Require Login for WooCommerce] Redirect for Checkout OnlyIt’s possible by using the filter
wflu_should_redirect_not_logged_in_user:add_filter(
'wflu_should_redirect_not_logged_in_user',
function() {
return is_checkout();
},
10
);By default, the plugin redirects based on this condition:
is_woocommerce() || is_cart() || is_checkout()Forum: Plugins
In reply to: [Require Login for WooCommerce] Settings not visible on dashboardHi @ethan1212 @ristechnologies @segurihost
This issue is happening because the React version was updated in WordPress’s core. I’ve fixed that and the settings page should work on version 1.4.0
Forum: Plugins
In reply to: [Require Login for WooCommerce] Settings not visible on dashboardHi @ethan1212,
I didn’t have a chance to fix it.
Just to be sure, is the WP REST API enabled on your site? Asking that because the admin area relies on the WP REST API to retrieve the pages.
Forum: Plugins
In reply to: [Require Login for WooCommerce] Settings not visible on dashboardHi @ethan1212,
it seems to be a JavaScript error. Could you take a look at the browser’s Console? It can give us a clue about what is happening.
Other than that, You can use the filter
wflu_redirect_after_login_page_urlto bypass the setting. Example:add_filter(
'wflu_redirect_after_login_page_url',
function( $redirect_to ) {
$shop_page_link = get_permalink( wc_get_page_id( 'shop' ) );
if ( empty( $shop_page_link ) ) {
return $redirect_to;
}
return $shop_page_link;
}
);Forum: Reviews
In reply to: [Publish & Add New] Life saverThanks for the review @yannickburky
🙂
Forum: Plugins
In reply to: [Orderable - Restaurant & Food Ordering System] Locations IssueYour messages were flagged as spam in our support ticket system for some reason. We will keep helping you with your issue from our support ticket system.
Sorry for any inconvenience. Thanks.
Hi @openmindculture,
I tested using the shortcode
[woocommerce_checkout]and the block Checkout and it works as expected (not logged-in users getting redirected to the “My Account” page).Please make sure you have the pages set up correctly in WooCommerce -> Settings -> Advanced -> Page setup.
Forum: Plugins
In reply to: [Require Login for WooCommerce] Redirect to page Shop not workingHi @robgol2023
 You can use the filterÂ
wflu_redirect_after_login_page_url to bypass the setting and add your custom logic.Example (you can add it to the functions.php file of your theme):
add_filter( 'wflu_redirect_after_login_page_url', function( $redirect_to ) { $shop_page_link = get_permalink( wc_get_page_id( 'shop' ) ); if ( empty( $shop_page_link ) ) { return $redirect_to; } return $shop_page_link; } );