Rafael Minuesa
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] plugin WooCommerce Checkout ManagerThis would work for the traditional WooCommerce checkout. The WooCommerce Blocks checkout, which uses a block-based system, would require a more complex approach due to its architecture and compatibility issues with many existing plugins and custom code solutions.
You could create custom block variations for the WooCommerce checkout block. This involves using React and the WordPress blocks API to define new block types that include your custom fields.
Or you could try the Experimental Additional Checkout Fields API:
https://github.com/woocommerce/woocommerce/blob/trunk/plugins/woocommerce-blocks/docs/third-party-developers/extensibility/checkout-block/additional-checkout-fields.mdOr the ‘Simple Custom Fields for WooCommerce Blocks Checkout’ plugin:
https://ptwooplugins.com/product/simple-custom-fields-for-woocommerce-blocks-checkout/‘- This reply was modified 7 months ago by Rafael Minuesa.
Forum: Plugins
In reply to: [WooCommerce] Critical error messageYou should have received an email at your site’s administrator inbox, with the details of the critical error
Forum: Plugins
In reply to: [WooCommerce] plugin WooCommerce Checkout ManagerIf the plugin is not working for you, and you don’t mind a bit of coding you could try adding the following code to your functions.php:
// Add VAT field to the Checkout Page add_action('woocommerce_after_order_notes', 'add_custom_checkout_field'); function add_custom_checkout_field($checkout) { echo '<div id="custom_checkout_field"><h2>' . __('VAT Number') . '</h2>'; woocommerce_form_field('vat_number', array( 'type' => 'text', 'class' => array('vat-number-field form-row-wide'), 'label' => __('Enter VAT Number'), 'placeholder' => __('VAT Number'), 'required' => true, ), $checkout->get_value('vat_number')); echo '</div>'; } // Validate the VAT number field add_action('woocommerce_checkout_process', 'validate_custom_checkout_field'); function validate_custom_checkout_field() { if (!$_POST['vat_number'] || empty($_POST['vat_number'])) wc_add_notice(__('Please enter your VAT number.'), 'error'); } // Save the VAT number to order meta add_action('woocommerce_checkout_update_order_meta', 'save_custom_checkout_field'); function save_custom_checkout_field($order_id) { if (!empty($_POST['vat_number'])) { update_post_meta($order_id, 'VAT Number', sanitize_text_field($_POST['vat_number'])); } }
Forum: Plugins
In reply to: [WooCommerce] product conditionYou need to install the ‘Product Condition for WooCommerce’ plugin:
https://woocommerce.com/products/product-condition-for-woocommerce/Forum: Plugins
In reply to: [WooCommerce] How to set delivery charges by kgThis plugin may be of help:
https://www.ads-software.com/plugins/weight-based-shipping-for-woocommerce/Forum: Fixing WordPress
In reply to: Change mobile menu iconIn that case you may need to hire a developer, as it involves adding custom code to your Theme
Forum: Fixing WordPress
In reply to: Change mobile menu iconPrego.
I see you’re using Elementor Pro?
Here you go: https://www.youtube.com/watch?v=zcH7CiKBvoUForum: Fixing WordPress
In reply to: Can I create a tag using an individual slug?Ah, ok, it seems that is work in progress:
https://github.com/WordPress/gutenberg/issues/37407Forum: Fixing WordPress
In reply to: Can I create a tag using an individual slug?I’m a bit unsure I understood your question correctly, but wouldn’t this document from the WordPress Codex be of help?
“When a viewer clicks on a link to one of the Tags on your site, he or she is taken to a page listing the Posts using that particular Tag in chronological order, from newest Posts at the top to oldest at the bottom. There are many display choices, including whether to display the complete post or post excerpts, and what additional information to display (title, author, publish date, last modified time, etc.). Each theme makes different choices, and you might want to change them.”
Forum: Fixing WordPress
In reply to: Change mobile menu iconThis CSS tweak should do the trick:
@media only screen and (max-width: 767px) { #header > .header > a.toggle-menu { position: absolute; right: 20px; } }
You’d add that code to Appearance > Customize > Additional CSS section
Can that be done without hacking the plugin itself?
I didn’t see any template overrides.By the way, we upgraded the plugin to premium,
should we be directing our questions somewhere else?You’re welcome @cabrinbarch,
Glad you worked out what the link was too, I’m pasting it again:
https://code.tutsplus.com/tutorials/moving-wordpress-moving-a-site-into-a-multisite-network–cms-22773@stevefromaus you should open up a separate thread for your issue, here’s why:
https://codex.www.ads-software.com/Forum_Welcome#Where_To_PostForum: Fixing WordPress
In reply to: How to – 2 sites – different languages – same databaseNot too sure whether this is what you’d like to achieve:
WordPress MU Domain Mapping
https://www.ads-software.com/plugins/wordpress-mu-domain-mapping/Forum: Fixing WordPress
In reply to: Internal Server Error 500 / Migration to new domainSome time ago I did create a Guide to WordPress Migration using the ‘Duplicator’ plugin that you can read here:
Please have a look and let me know if after following the steps detailed there you still keep receiving errors.
This should do the trick:
https://code.tutsplus.com/tutorials/moving-wordpress-m should oving-a-site-into-a-multisite-network–cms-22773