IoClaudio
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: MVC framework or resources for WordPressYes, thank you, I’ve seen it but it seems a project not longer maintained
This can be marked as solved.
After looking the code of other plugins I’ve solved in this way:
(function () { "use strict"; .... const title = settings.title || ""; ..... const Block_Gateway = { name: settings.id, label: wpElement.createElement(() => wpElement.createElement( "span", null, wpElement.createElement("img", { src: icon, alt: title, }), " " + title ) ), ... wcBlockRegistry.registerPaymentMethod(Block_Gateway); })();- This reply was modified 2 years, 5 months ago by IoClaudio.
Forum: Plugins
In reply to: [WooCommerce] Custom payment gateway not visible on the checkout pageno, thank you, I’ve solved the problem
cld
Forum: Plugins
In reply to: [WooCommerce] Custom payment gateway not visible on the checkout pageI’ve seen that the problem is that “starting with WooCommerce version 8.3, the Cart and Checkout Blocks are the default for new installations“.
So there are two way to solve the problem.- The first is to add the checkout block.
- The second is to edit the page: Page->Checkout and disable the blocks in the checkout page.
Here some references to this issue:
Forum: Plugins
In reply to: [WooCommerce] Custom payment gateway not visible on the checkout pageI think that it is a problem related to the fact that my plugin doesn’t support blocks. Does WooCommerce’s new checkout page use blocks? But I don’t understand why the plugin works with old sites updated to the last version of WooCommerce. Is there a way to disable blocks?
I’m sorry, but this issue can be ignored.
I was expecting a wrong behaviour from the payment_complete method.
It works well as before the update.
Please, ignore it.
Thank you very muc.
Claudio
The problem persists with WP 6.4.2.
But I think it depends on the classic editor, if you convert the article to blocks, the problem disappears.
cld
I have the same problem with WordPress 6.4.1 and Classic Editor.
Has anyone solved the problem?
Thank you
Claudio
Thank you
Thank you for your answer.
Looking in the forum I found a solution that consists in the use of the filters: single_template and archive_template. In this way I can force the use of a certain template for a certain post type. I’ve tried it and it seems to work well. However I will look to template_redirect to see if it can help me. Thank you very much.
- This reply was modified 3 years, 3 months ago by IoClaudio.
Forum: Plugins
In reply to: [Polylang] How to filter custom post types by language with WP_Query?Hi,
I’ve seen that the posts are automatically filtered by the selector but you must enable each custom content type in “Languages->Settings->Custom item types and taxonomies” or using the functions: pll_get_taxonomies and pll_get_post_types.
cld
- This reply was modified 3 years, 4 months ago by IoClaudio.
Forum: Developing with WordPress
In reply to: Why the code into functions.php is called many times?Thank you for your advice.
I think to have seen some plugins use this way of creating post types, however I will follow the advice of using a hook.
cld
Forum: Everything else WordPress
In reply to: How to use WordPress as Service Provider?Hi,
thank you for your answer. Yes, I’ve seen MiniOrange. Is a good product, but is a bit expensive, it has an annual fee. The free version doesn’t allow you to map parameters.
cld
Forum: Fixing WordPress
In reply to: How to manage plugin dependecy?thank you