Forum Replies Created

Viewing 15 replies - 1 through 15 (of 28 total)
  • Hi there,

    Just wanted to give you a heads up that WooCommerce requires a star rating for comments by default. So, unless spambots find a way to bypass the system, they won’t be able to leave a comment without choosing a rating.

    However, it’s possible that the theme or another plugin on your website is causing this issue. I suggest you try switching to the default Storefron theme and check if the problem persists. If it does, then it could be a plugin conflict.

    To resolve the plugin conflict issue, I recommend disabling all plugins except WooCommerce and checking if the problem is resolved. If it is, you can enable the plugins individually to identify the plugin causing the conflict.

    I hope this information helps you resolve the issue. Thanks!

    Hi there,

    Based on the error message you have shared, it seems like the issue is related to the SSL certificate of the website from where you are trying to import the images. The error message suggests that the SSL certificate of the website is not valid or not recognized by your server, which is causing the import to fail. Most likely, the error is caused due to a certificate chain issue.

    To resolve this issue, I recommend the following steps:

    1. Check if the SSL certificate of the website from where you are trying to import the images is valid and recognized by your server. You can use online SSL checker tools to verify the SSL certificate. Please issue a scan of your site as well.

    2. If the SSL certificate is valid, then try adding the following code to your wp-config.php file:

    define('CURLOPT_SSL_VERIFYPEER', false);

    This code will disable the SSL verification for cURL, which should allow the import to proceed.

    3. Updating PHP to the latest version might also resolve the issue. This is often caused by missing or outdated local SSL certificates, which are shipped with packages like PHP, or other server software.

    If the above steps do not work, you can try contacting your hosting provider to check if any server-side issues are causing the SSL certificate verification to fail.

    I hope that these steps will help you resolve the issue. Thanks!

    I’m glad to hear that you have identified the plugin causing the issue on your website.

    Regarding your question about a better plugin to facilitate users sharing your posts on their social media, I would suggest considering the following options:

    1. Shareaholic: This popular plugin allows users to share your posts on various social media platforms. It also includes analytics to track the performance of your shared content.

    2. AddToAny: This plugin offers a customizable share button that allows users to share your posts on over 100 social media platforms.

    3. Social Warfare: This plugin provides a variety of social sharing options, including customizing which social media platforms appear on your website.

    4. Meks Easy Social Share: With this social sharing plugin you can easily add social share buttons to your posts and pages. The plugin is highly flexible and provides you with various styling to match your theme design.

    You can also try other social share plugins from here: https://wordpress.org/plugins/search/Social+Share/

    I hope these suggestions help you find a suitable replacement for Easy Social.

    There are many reasons why your links may not be showing photos when shared on social media platforms. One common reason is the absence of the og:Image tag on your site. Make sure to include this tag to ensure your links display images when shared.

    Facebook and other social media site use Open Graph (og) tags, and many WordPress plugins like Yoast SEO automatically add them to your WordPress website to prevent missing thumbnails.

    To make things easier, you can install the Yoast SEO Plugin. Once it’s activated, simply go to the Yoast SEO meta box below your post editor when writing a post. From there, click on the social tab to find a button to upload a thumbnail image for Facebook and Twitter. This will help you to fix missing photo issues on social media.

    Additionally, if you have added the right thumbnail, Installed Yoast SEO, and Facebook is still not showing the thumbnail, then the issue is related to caching.

    To fix the issue, you must first clear the page cache in WordPress. After that, you can reset the cache in Facebook by using their handy debug tool: https://developers.facebook.com/tools/debug.

    Simply copy the URL of your WordPress post and paste it into the debugger tool. After that, click on the ‘Scrape Again’ button, and Facebook will update the thumbnail for your post. Sometimes, you may have to click the ‘Scrape Again’ button twice.

    I hope these suggestions will help resolve the issue.

    This could be caused by a conflict between PowerPress and the search function on your site.

    To resolve this issue, I recommend that you try the following troubleshooting steps:

    1. Clear your site cache – To clear your cache, simply navigate to your site’s dashboard or the cache plugin you use. Depending on the hosting panel, you can also clear the cache from your server end.
    2. Deactivate other plugins – It is possible that another plugin on your site conflicts with PowerPress. To test this, I recommend deactivating all other plugins and checking if the podcast player appears when you click on the title of an episode.
    3. Reinstall PowerPress – If the above steps do not resolve the issue, I recommend reinstalling PowerPress on your site.

    If the issue persists after trying the above steps, please create a support thread on the PowerPress support forum: https://wordpress.org/support/plugin/powerpress/

    I hope this information helps you resolve the issue.

    Hi @dfwpress

    Do you mean to remove the “Attribute” tab from the Product data panel? If so, you can use a filter hook to remove any available tabs from the product data panel. The filter hook is called “woocommerce_product_data_tabs”. It allows you to modify the tabs displayed on the product data panel.

    Here’s the code snippet that you can add to your theme’s functions.php or a custom plugin:

    add_filter( 'woocommerce_product_data_tabs', 'custom_product_data_tabs' ); 
    function custom_product_data_tabs( $tabs ) {
      //unset( $tabs['general'] );
      //unset( $tabs['inventory'] );
      //unset( $tabs['shipping'] );
      //unset( $tabs['linked_product'] );
      unset( $tabs['attribute'] );
      unset( $tabs['variations'] );
      //unset( $tabs['advanced'] );
      return $tabs;
    }

    This code will remove the “Attribute” tab from the product data panel.

    Additionally, if you want to remove any tab from the front end, follow this guide: https://woocommerce.com/document/editing-product-data-tabs/.

    If you are facing issues with images not rendering properly after updating post content via REST API, it is likely that the HTML markup for the images is not being created correctly. One way to ensure that the images are inserted correctly is to use the WordPress block editor to create the post content and images, and then use the REST API to update the post.

    Alternatively, you can try using the WordPress media library to upload the images, and then use the REST API to retrieve the image URLs and insert them into the post content as HTML image tags. This will ensure that the images are properly formatted and will render correctly on the front-end.

    Another option is to use a third-party library like the wp_wpcat_json_rest Plugin to handle media uploads and retrieval via REST API. This plugin can help you create blocks and render images properly in your app.

    Finally, you can also consider using a plugin like Jetpack, which offers a REST API module that allows you to manage your site’s media library and upload images via REST API. Jetpack can help you handle image uploads and formatting, and ensure that images are properly rendered on the front-end.

    Hi @ifnoob

    The category shortcode specs remain the same, but adding “order=’DESC'” is required to display categories in descending order. Without this parameter, categories will be displayed in ascending order by default.

    You can find more information about this shortcode here: https://woocommerce.com/document/woocommerce-shortcodes/#scenario-5-specific-categories.

    I hope this information helps.

    One possible solution is to use a transaction to update the order. A transaction is a set of database operations that are executed as a single unit of work. If any operation in the transaction fails, the entire transaction is rolled back, and the database is left unchanged.

    Here’s how you can use a transaction to update an order:

    1. Begin a transaction.
    2. Retrieve the existing order data from the database.
    3. Validate the new order data.
    4. If the validation fails, roll back the transaction and return an error response.
    5. If the validation succeeds, update the order data in the database.
    6. Commit the transaction.

    Here’s an example :

    global $wpdb;
    $order_id = 123; // Replace with the order ID you want to update
    
    $wpdb->query('START TRANSACTION');
    
    $order = wc_get_order($order_id);
    
    // Retrieve the existing order data from the database
    $existing_data = array(
        'billing_first_name' => $order->get_billing_first_name(),
        'billing_last_name' => $order->get_billing_last_name(),
        // Add more fields here
    );
    
    // Validate the new order data
    $new_data = array(
        'billing_first_name' => 'John',
        'billing_last_name' => '',
        // Add more fields here
    );
    
    $errors = array();
    
    if (empty($new_data['billing_last_name'])) {
        $errors[] = 'Last name is required.';
    }
    
    // Add more validation rules here
    
    if (!empty($errors)) {
        $wpdb->query('ROLLBACK');
        wp_send_json_error(array('errors' => $errors));
    }
    
    // Update the order data in the database
    $order->set_billing_first_name($new_data['billing_first_name']);
    $order->set_billing_last_name($new_data['billing_last_name']);
    // Add more fields here
    
    $order->save();
    
    $wpdb->query('COMMIT');
    
    wp_send_json_success();

    Additionally, you can check the code for the update function and see if it is set up to update all fields regardless of validation errors. You may need to modify the code to ensure that the API does not update any fields if there are validation errors in any of them.

    Hi @meisellen

    To add a price on request feature, you can use a plugin such as “Price on Request for WooCommerce” or “Request a Quote for WooCommerce.” These plugins allow customers to request a price for a product by filling out a form, and as the store owner, you can then respond with a custom price quote.

    I hope this helps!

    Hi @mewillian

    To show the list of purchased products after logging in, you can use a custom code snippet. Simply add the following code to your theme’s functions.php file:

    add_shortcode( 'my_purchased_products', 'srdev_products_bought_by_curr_user' );
       
    function srdev_products_bought_by_curr_user() {
       
        // GET CURR USER
        $current_user = wp_get_current_user();
        if ( 0 == $current_user->ID ) return;
       
        // GET USER ORDERS (COMPLETED + PROCESSING)
        $customer_orders = get_posts( array(
            'numberposts' => -1,
            'meta_key'    => '_customer_user',
            'meta_value'  => $current_user->ID,
            'post_type'   => wc_get_order_types(),
            'post_status' => array_keys( wc_get_is_paid_statuses() ),
        ) );
       
        // LOOP THROUGH ORDERS AND GET PRODUCT IDS
        if ( ! $customer_orders ) return;
        $product_ids = array();
        foreach ( $customer_orders as $customer_order ) {
            $order = wc_get_order( $customer_order->ID );
            $items = $order->get_items();
            foreach ( $items as $item ) {
                $product_id = $item->get_product_id();
                $product_ids[] = $product_id;
            }
        }
        $product_ids = array_unique( $product_ids );
        $product_ids_str = implode( ",", $product_ids );
       
        // PASS PRODUCT IDS TO PRODUCTS SHORTCODE
        return do_shortcode("[products ids='$product_ids_str']");
       
    }

    Now create a page and add the shortcode [my_purchased_products]. Once your customer logs in and accesses this page, they’ll be able to see a list of all the products they’ve purchased. It’s as simple as that!

    If you want to add this page to your account menu, just follow this detailed guide: https://woocommerce.com/document/customize-my-account-for-woocommerce/#section-7. It’s super easy to follow and will have you customizing your account in no time.

    Hi @temenujka85

    To hide the price suffix, you can use a plugin such as “WooCommerce Tax Exempt” or “EU VAT Assistant“. These plugins allow you to set tax exemptions for specific customer groups or locations, and hide the tax information for those customers.

    Alternatively, you can also use this custom code snippet to achieve this: https://gist.github.com/mikejolley/5aab2ec276906bc81a21ec6584d79c2d

    This error message is related to a problem in saving an action in a database table where a primary key with a value of ‘0’ already exists. This can happen due to a variety of reasons, such as a conflict with another plugin or theme, or an issue with the database itself.

    To troubleshoot this error, you can try the following steps:

    Check for conflicts: Disable any recently installed plugins or themes and check if the error still occurs. If the error disappears, it might be caused by a conflict with one of the plugins or themes.

    Repair the database: Use a database management tool such as phpMyAdmin to repair the database. This can help fix any corrupted tables or indexes that might be causing the error.

    Check the database for duplicate entries: Check the database table where the primary key ‘0’ is being duplicated, and look for any other rows with the same primary key. Delete any duplicates, and then try saving the action again.

    Check WordPress Debug Log: Have you tried checking your WordPress Debug Log? It’s a great way to find out what’s causing any issues you may be experiencing. To get started, take a look at this helpful guide on debugging WordPress: https://wordpress.org/documentation/article/debugging-in-wordpress/.

    Contact the plugin/theme developer: If the error persists, contact the plugin developer that is causing the error. They might have a solution or be able to provide more information on how to fix the issue.

    It’s important to note that editing your database can be dangerous if not done carefully. Make sure to take a backup of your database before attempting any of these steps.

    It looks like a theme-related issue. Update the Avada theme and its builder to the latest version, clear the cache, and check whether it resolves or not. You can also contact Avada theme support here: https://theme-fusion.com/support/submit-a-ticket/

    Sometimes conflicts between WooCommerce and other plugins or customizations can cause issues with add to cart buttons or product image hover links. You can test this by temporarily disabling other plugins or reverting to the default theme to see if the issue persists.

    Additionally, ensure you have the latest version of WooCommerce installed, as updates often include bug fixes and performance improvements.

    This is possible but would probably require you to override a WooCommerce template. Here is a post that contains a possible way: https://wordpress.org/support/topic/how-to-show-tax-rate-on-cart-checkout/.

    Here is another solution that might be helpful too: https://stackoverflow.com/questions/64215704/get-and-display-the-tax-rate-on-woocommerce-single-product-pages.

    You can also use a WooCommerce plugin called Tax Display by Country. This plugin allows you to configure how taxes are displayed on your website, including whether the tax is shown inclusive or exclusive of the product price, and whether the tax amount is shown before or after the product price. Here is a link to the plugin: https://woocommerce.com/products/tax-display-by-country/.

Viewing 15 replies - 1 through 15 (of 28 total)