ianatkins
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Migrating to Block Checkout / CartThanks for the reply.
- Ok, thanks for confirming. Can I suggest a ‘legacy’ label is added to documentation, as there’s really no way to tell what is what at the moment, .e.g https://developer.woocommerce.com/docs/code-snippets/customising-checkout-fields
Specifically I need to limit the first line of the address for our warehouse integration. Is there a JS filter for max-length on the <inputs>’s or some other approach there. - Thanks, looks at the diagram of available filters on this page, there isn’t just a filer for the top of the sidebar, or the top of the cart listing. Is this even possible? https://developer.woocommerce.com/docs/block-development/extensible-blocks/cart-and-checkout-blocks/filters-in-cart-and-checkout/
I am a professional, your documentation is a trip.
Appreciate the help.
Great, thanks so much!
Forum: Plugins
In reply to: [WooCommerce PayPal Payments] Payment gateways enabled without consentHi Krystian,
Thanks for the fast reply, fairly sure we had the other gateways in the ‘Disable Alternative Payment Methods’ setting on the prior version – but would need to create a test site from a backup to confirm.
Re ‘Pay Later’ – so disabling all ‘pay later’ messaging in fact just disables ‘pay later’ entirely, correct?
Thanks,
Ian.
Forum: Plugins
In reply to: [WooCommerce PayPal Payments] PAYEE_NOT_ENABLED_FOR_CARD_PROCESSINGHello.
To update, we’ve now enabled ‘Advanced Credit and Debit Card Payments’ in the plugin and on Paypal.
We’re using a classic theme, and have the ‘info’ notice shown:
Info: The Checkout page of your store currently uses a classic checkout layout or a custom checkout widget. Advanced Card Processing supports the new Checkout block which improves conversion rates. See this page for instructions on how to upgrade to the new Checkout layout.
When visiting the checkout, the card payment fields are now not visible, and the Paypal button loads a login popup. Is that correct behaviour – so advanced card payments are not support via the legacy checkout?
Thanks,
Ian.
Forum: Plugins
In reply to: [WooCommerce PayPal Payments] PAYEE_NOT_ENABLED_FOR_CARD_PROCESSINGHello.
Status is below:
I’ve removed because your link is publicly visible and not private? I’ve now sent over via your support portal as requested.I think it is a plugin issue as ‘Advanced Credit and Debit Card Payments’ is not activated in the plugin, but the ‘Debit or Credit Card’ button is showing in the checkout. Surely that should not be showing if that is not activated?
Thanks.
Forum: Plugins
In reply to: [WooCommerce PayPal Payments] PAYEE_NOT_ENABLED_FOR_CARD_PROCESSINGAlso to note under ‘Advanced feature availability & sign-up’ ‘Advanced Credit and Debit Card Payments’ is marked ‘available’.
But on ‘https://developer.paypal.com/‘ it says ‘Contact PayPal to enable Advanced Credit and Debit Card Payments’.
Forum: Plugins
In reply to: [WooCommerce Stripe Payment Gateway] Klarna by default?Saw the email, and came here to complain.
Have had 3 meetings this week, no-one want’s it enabled. Look forward to more over the coming days.
This should be opt-in. Was Automattic paid to enable this by default?
For other readers; the developers have, for some reason, changed the filter name for loading custom templates.
The filter is now mailtpl_customizer_template as below, and not mailtpl/customizer_template as per the documented FAQ or prior versions.
add_filter('mailtpl_customizer_template', function($default_template_path) {
return get_stylesheet_directory() . '/email/templates/default.php';
});- This reply was modified 12 months ago by ianatkins.
@jdembowski We have moved the conversation to the developers support email, so I can supply them private logins to the staging environment I have setup.
This seems to be totally inline your own guidelines?
Posting or accepting offers or requests for login information to a site. While plugin and theme authors may ask for this on their own support systems, they may not do so on ww.wp.xz.cn for liability reasons.
https://ww.wp.xz.cn/support/guidelines/Please leave this topic open, as I will update it with the resolution as an when one is found.
The site isn’t ecommerce and yes doesn’t have WooCommerce installed.
The plugin used to not require WooCommerce to be installed?
Even when I installed WooCommerce on the test site, my custom template is still not loaded.
Hello.
I can replicate this on a fresh install with no other plugins installed. Steps to replicate.
- Install WordPress ( latest version ).
- Install a classic theme. Add your custom template in the theme ( I can send you this, but is the default.php and partials folder ).
- Add the snippet in functions.php to load the template.
- Install version 1.4.4 of the plugin, you can see the template.
- Install version 1.5, the template reverts to default.
Video as requested.
- This reply was modified 1 year ago by ianatkins.
Forum: Plugins
In reply to: [EWWW Image Optimizer] Update all thumbnails at onceOk thanks, thought I was going mad trying to find the setting!
Thanks Josh, that’s now resolved in the latest version.
Appreciate the plugin needs to generate income, just keep the ads to the plugin settings page!
Forum: Plugins
In reply to: [WP Search with Algolia] Manually sync itemsHey Michael.
Below is far as i’ve got, calling update_records doesn’t work as it’s a private method. Have just called sync_item on the individual index I’m interested in, rather than calling the action which other plugins might be hooked into.
Do let me know if there is a more effecient way to batch multiple syncs in one hit, without rebuilding the whole index.
Thanks!
// Add to existing collection
$collection_id = absint($collection_id);
// Sync to algolia
$algolia_plugin = \Algolia_Plugin_Factory::create();
$synced_indices_ids = $algolia_plugin->get_settings()->get_synced_indices_ids();
$index_name_prefix = $algolia_plugin->get_settings()->get_index_name_prefix();
$client = $algolia_plugin->get_api()->get_client();
$index = new \Algolia_Posts_Index( 'attachment' );
$index->set_name_prefix( $index_name_prefix );
$index->set_client( $client );
$index->set_enabled( true );
// Update
foreach( $collection_media_ids as $media_id) {
// Add Taxonomy Term
wp_set_object_terms( $media_id, $collection_id,'collection', true);
// Sync to Algolia index
$media = get_post( $media_id );
// Sync to Algolia
try {
$index->sync($media);
} catch ( AlgoliaException $exception ) {
error_log( $exception->getMessage() ); // phpcs:ignore -- Legacy.
}
}Forum: Plugins
In reply to: [WP Search with Algolia] Manually sync itemsHey Michael,
Just tried the below, after my foreach loop, but that wiped the index, but did add the specific ID’s in one hit ( by passing the IDs as the second parameter on re_index ).
// Sync to algolia
$algolia_plugin = \Algolia_Plugin_Factory::create();
$indices[] = new \Algolia_Posts_Index( 'attachment' );
$client = $algolia_plugin->get_api()->get_client();
$index_name_prefix = $algolia_plugin->get_settings()->get_index_name_prefix();
foreach ( $indices as $index ) {
$index->set_name_prefix( $index_name_prefix );
$index->set_client( $client );
try {
$index->re_index(1, $collection_media_ids);
} catch ( AlgoliaException $exception ) {
error_log( $exception->getMessage() ); // phpcs:ignore -- Legacy.
}
}Will try the update_records method instead, once I dig into the code a bit more!
- Ok, thanks for confirming. Can I suggest a ‘legacy’ label is added to documentation, as there’s really no way to tell what is what at the moment, .e.g https://developer.woocommerce.com/docs/code-snippets/customising-checkout-fields