WPRobo Limited
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Woocommerce Rest API – Update ProductForum: Plugins
In reply to: [WooCommerce] Woocommerce Rest API – Update ProductHi @lele85,
Try using the following code:
$results = $woocommerce->put('products/2628/variations/2629', [ 'meta_data' => [ [ 'key' => '3077', 'value' => '119' ] ] ]);If the meta key you’re trying to update is nested deeper and not a direct attribute of the product, then you’ll have to ensure that you’re addressing the right path in the product data structure.
Also, remember that to update the meta data, the meta key (
3077in your example) must already exist for that product or variation. The REST API won’t create a new meta key using this method; it’s intended for updating existing keys.Lastly, ensure that you have the correct permissions to modify the product variation and that there are no other plugins or settings that might be affecting or filtering the REST API requests. If the problem persists, it might be worth checking the WooCommerce REST API documentation or reaching out to WooCommerce support for guidance specific to your setup.
Kind Regards,
Raza,
Forum: Plugins
In reply to: [WooCommerce] remove email spaceTo remove the space, you’ll need to modify the email styles. Here’s how you can do that:
add_filter( 'woocommerce_email_styles', 'custom_woocommerce_email_styles' ); function custom_woocommerce_email_styles( $css ) { $custom_css = " /* Remove padding/margin above the logo */ #template_header_image img { margin: 0 !important; padding: 0 !important; } "; return $css . $custom_css; }Another, more direct approach, would be to copy the email templates to your theme and then modify the styles there.
- Copy the WooCommerce email templates from
wp-content/plugins/woocommerce/templates/emails/toyourtheme/woocommerce/emails/. - Edit the
email-header.phpinyourtheme/woocommerce/emails/. - Find the section that outputs the logo and adjust or remove any margin or padding CSS properties associated with it.
Lastly, if you’re not confident in coding, consider reaching out to a developer for more personalized assistance.
Best Regards,
Raza
Forum: Plugins
In reply to: [WooCommerce] validacion campo nombre y apellidoBefore we proceed with addressing the issue, could you kindly provide us with a screenshot of the problematic fields on the checkout page? Additionally, please share the URL of your website. This will help us get a clearer understanding of the problem and expedite the troubleshooting process.
Best Regards,
Raza
Forum: Plugins
In reply to: [WooCommerce] automateWoo custom template email for action emailHi @nhituyet1,
The problem you’re facing is that the custom email template you’ve created, as per the instructions on WooCommerce’s documentation, isn’t being used when an email is sent.
Given the problem and the provided steps, let’s diagnose and provide solutions:
Confirm File Paths and Locations:
◘ Double-check your active theme’s directory to ensure the custom template files are in the correct location. It should be something like:
/wp-content/themes/your-active-theme-name/automatewoo/custom-email-templates/custom-3/◘ Inside the
custom-3directory, you should have the necessary files:email-styles.php,email-header.php, andemail-footer.php.- Ensure that your filter is correctly added to the
functions.phpfile of your active theme (or child theme if you’re using one). - The filter might look something like:
add_filter( 'automatewoo/custom_email_templates', 'my_custom_email_template' ); function my_custom_email_template( $templates ) { $templates['custom-3'] = get_stylesheet_directory() . '/automatewoo/custom-email-templates/custom-3/'; return $templates; }Make sure there are no syntax errors in the
functions.phpfile, which could break the functionality. You can confirm this by checking your site for any visible errors or by reviewing thewp-content/debug.logfile (after ensuringWP_DEBUGandWP_DEBUG_LOGare set to true inwp-config.php).Thank You,
Raza
Forum: Plugins
In reply to: [WooCommerce] Checkout CustomisationHi @birthma,
Yes, it is possible that you can display those in one line. But, you may be required to write the custom code for this. Please share the current code about how you are displaying this data. And base on that, I can share the edits (update code) with you.
However, if you are not familiar with it then no worries. We at WPRobo will do this for you. Just fill out this form and we will contact you soon.
Kind Regards,
Raza
Forum: Plugins
In reply to: [WooCommerce] Checkout CustomisationHi @birthma !
I think you are looking for something like the following screenshot https://i.vgy.me/mrjkDx.png.
Please let me know if I am right?
You can achieve this by using CSS.
Thank You,
Raza
Forum: Plugins
In reply to: [WooCommerce] Error /woocommerce/includes/cli/class-wc-cli-runner.php(63):Hi @taktlosde
Based on the information you’ve provided, it appears there’s an issue related to the
WP_REST_Serverclass within WooCommerce and its interaction with the WP Rest API.- Ensure that both WordPress and WooCommerce are updated to their latest versions
- The error suggests an issue with call_user_func(), which expects a valid callback. Ensure that any custom code or modifications you’ve added are correctly using this function. Specifically, if you’re passing an array as a callback, it should have exactly two members: an object (or class name) and a method name.
- Deactivate all plugins except WooCommerce and then check if the error persists.
- If you have custom REST API endpoints or have modified existing ones, review the code for any inconsistencies, especially around callback functions.
- The error seems to originate from class-wc-cli-runner.php within WooCommerce. This file is related to WooCommerce CLI commands. If you’ve written or are using any custom CLI commands related to WooCommerce, they might be the culprit.
I hope this provides a clear direction for troubleshooting. Let me know if you require further assistance or have additional questions.
Raza
Forum: Plugins
In reply to: [WooCommerce] WooCommerce Product Uploader not Processing CSV FileHi @sspools
From your description, it sounds like the tool is functioning correctly when creating new products, but experiences issues when trying to update existing products based on ID or SKU. Here are some steps and considerations to help diagnose and potentially resolve the problem:- Ensure that you’re using the latest version of WooCommerce.
- Double-check the CSV or XML file you’re using for any inconsistencies or formatting errors. Ensure that the ID or SKU fields in the file match those in your WooCommerce store.
- Ensure there are no special characters or unusual data in the file that might be causing the upload to halt.
- Sometimes, the file might be too large, or the server’s PHP settings might not be configured to handle the file upload. You can check with your hosting provider to increase the maximum upload limit or PHP memory limit.
- Deactivate other plugins temporarily to see if there’s a conflict with another plugin. If the issue is resolved after deactivating a specific plugin, you’ve found the culprit.
- Even if no error is displayed on the frontend, there might be details in the server’s error logs or WooCommerce logs. Checking these logs can give insights into what might be causing the issue.
- Temporarily switch to a default WordPress theme (like Twenty Twenty-One) to see if the issue persists. If it doesn’t, the problem might be with the theme.
I hope this helps in identifying and resolving the issue. Please let me know if you need further assistance.
Kind Regards,
Raza
WPRoboForum: Plugins
In reply to: [WooCommerce] Woocommerce – Auszahlung der Gelder / Payout of fundsThank you for reaching out. At WooCommerce, the disbursement of funds from purchased products typically takes between X and Y days, depending on the billing cycle and underlying payment terms. When you see the status as “Pending” or “In Process”, it indicates that the transaction is not yet finalized. Once your order is completed and verified, the amount will be credited to your account.
Warm regards,
—
Translated with Google:
—Vielen Dank für Ihre Anfrage. Bei WooCommerce dauert die Auszahlung der Gelder von gekauften Produkten je nach Abrechnungszyklus und den zugrundeliegenden Zahlungsbedingungen in der Regel zwischen X und Y Tagen. Wenn der Status “In Wartestellung” oder “In Bearbeitung” angezeigt wird, bedeutet dies, dass die Transaktion noch nicht abgeschlossen ist. Sobald Ihre Bestellung abgeschlossen und überprüft wurde, wird der Betrag Ihrem Konto gutgeschrieben.
Mit freundlichen Grüßen,
- Copy the WooCommerce email templates from