Title: Shameem Reza's Replies | WordPress.org

---

# Shameem Reza

  [  ](https://wordpress.org/support/users/codechef/)

 *   [Profile](https://wordpress.org/support/users/codechef/)
 *   [Topics Started](https://wordpress.org/support/users/codechef/topics/)
 *   [Replies Created](https://wordpress.org/support/users/codechef/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/codechef/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/codechef/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/codechef/engagements/)
 *   [Favorites](https://wordpress.org/support/users/codechef/favorites/)

 Search replies:

## Forum Replies Created

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

1 [2](https://wordpress.org/support/users/codechef/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/codechef/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Spam Comment bots](https://wordpress.org/support/topic/spam-comment-bots/)
 *  [Shameem Reza](https://wordpress.org/support/users/codechef/)
 * (@codechef)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/spam-comment-bots/#post-16639397)
 * 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](https://woocommerce.com/storefront/)
   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!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Product Import by CSV errors.. cURL error 60](https://wordpress.org/support/topic/product-import-by-csv-errors-curl-error-60/)
 *  [Shameem Reza](https://wordpress.org/support/users/codechef/)
 * (@codechef)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/product-import-by-csv-errors-curl-error-60/#post-16639386)
 * 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](https://www.ssllabs.com/ssltest)
   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:
 *     ```wp-block-code
       define('CURLOPT_SSL_VERIFYPEER', false);
       ```
   
 * This code will disable the [SSL verification for cURL](https://curl.se/libcurl/c/CURLOPT_SSL_VERIFYPEER.html),
   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!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Podcast player doesn’t display](https://wordpress.org/support/topic/podcast-player-doesnt-display/)
 *  [Shameem Reza](https://wordpress.org/support/users/codechef/)
 * (@codechef)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/podcast-player-doesnt-display/#post-16636355)
 * 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](https://wordpress.org/plugins/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](https://wordpress.org/plugins/add-to-any/):** This plugin offers
   a customizable share button that allows users to share your posts on over 100
   social media platforms.
 * **3. [Social Warfare](https://wordpress.org/plugins/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](https://wordpress.org/plugins/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/](https://wordpress.org/plugins/search/Social+Share/)
 * I hope these suggestions help you find a suitable replacement for Easy Social.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Photos not showing on Facebook, Whatsapp and Telegram pages.](https://wordpress.org/support/topic/photos-not-showing-facebook-whatsapp-and-telegram-pages/)
 *  [Shameem Reza](https://wordpress.org/support/users/codechef/)
 * (@codechef)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/photos-not-showing-facebook-whatsapp-and-telegram-pages/#post-16633364)
 * 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](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.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Podcast player doesn’t display](https://wordpress.org/support/topic/podcast-player-doesnt-display/)
 *  [Shameem Reza](https://wordpress.org/support/users/codechef/)
 * (@codechef)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/podcast-player-doesnt-display/#post-16633294)
 * 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/](https://wordpress.org/support/plugin/powerpress/)
 * I hope this information helps you resolve the issue.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Remove “Add existing attribute” tab](https://wordpress.org/support/topic/remove-add-existing-attribute-tab/)
 *  [Shameem Reza](https://wordpress.org/support/users/codechef/)
 * (@codechef)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/remove-add-existing-attribute-tab/#post-16628092)
 * Hi [@dfwpress](https://wordpress.org/support/users/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:
 *     ```wp-block-code
       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/](https://woocommerce.com/document/editing-product-data-tabs/).
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Post images via REST API](https://wordpress.org/support/topic/post-images-via-rest-api/)
 *  [Shameem Reza](https://wordpress.org/support/users/codechef/)
 * (@codechef)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/post-images-via-rest-api/#post-16627662)
 * 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](https://wordpress.org/plugins/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.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Has the specification of the category shortcode changed?](https://wordpress.org/support/topic/has-the-specification-of-the-category-shortcode-changed/)
 *  [Shameem Reza](https://wordpress.org/support/users/codechef/)
 * (@codechef)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/has-the-specification-of-the-category-shortcode-changed/#post-16625962)
 * Hi [@ifnoob](https://wordpress.org/support/users/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](https://woocommerce.com/document/woocommerce-shortcodes/#scenario-5-specific-categories).
 * I hope this information helps.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Need some guidance WooCommerce Rest API](https://wordpress.org/support/topic/need-some-guidance-woocommerce-rest-api/)
 *  [Shameem Reza](https://wordpress.org/support/users/codechef/)
 * (@codechef)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/need-some-guidance-woocommerce-rest-api/#post-16625839)
 * 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 :
 *     ```wp-block-code
       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.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] How can I adjust the code in functions.php to show a price on request for a prod](https://wordpress.org/support/topic/how-can-i-adjust-the-code-in-functions-php-to-show-a-price-on-request-for-a-prod/)
 *  [Shameem Reza](https://wordpress.org/support/users/codechef/)
 * (@codechef)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/how-can-i-adjust-the-code-in-functions-php-to-show-a-price-on-request-for-a-prod/#post-16625697)
 * Hi [@meisellen](https://wordpress.org/support/users/meisellen/)
 * To add a price on request feature, you can use a plugin such as “[Price on Request for WooCommerce](https://woocommerce.com/products/request-your-price/)”
   or “[Request a Quote for WooCommerce](https://woocommerce.com/products/request-a-quote-plugin-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!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Page showing list of bought products](https://wordpress.org/support/topic/page-showing-list-of-bought-products/)
 *  [Shameem Reza](https://wordpress.org/support/users/codechef/)
 * (@codechef)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/page-showing-list-of-bought-products/#post-16625674)
 * Hi [@mewillian](https://wordpress.org/support/users/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:
 *     ```wp-block-code
       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](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.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Hide price suffix when tax is zero](https://wordpress.org/support/topic/hide-price-suffix-when-tax-is-zero-3/)
 *  [Shameem Reza](https://wordpress.org/support/users/codechef/)
 * (@codechef)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/hide-price-suffix-when-tax-is-zero-3/#post-16624629)
 * Hi [@temenujka85](https://wordpress.org/support/users/temenujka85/)
 * To hide the price suffix, you can use a plugin such as “[WooCommerce Tax Exempt](https://woocommerce.com/products/woocommerce-tax-exempt-plugin/)”
   or “[EU VAT Assistant](https://wordpress.org/plugins/woocommerce-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](https://gist.github.com/mikejolley/5aab2ec276906bc81a21ec6584d79c2d)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to solve this error when installing wp forms?](https://wordpress.org/support/topic/how-to-solve-this-error-when-installing-wp-forms/)
 *  [Shameem Reza](https://wordpress.org/support/users/codechef/)
 * (@codechef)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/how-to-solve-this-error-when-installing-wp-forms/#post-16621682)
 * 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/](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.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Add to Cart button missing from category, and not working on Mobiles](https://wordpress.org/support/topic/add-to-cart-button-missing-from-category-and-not-working-on-mobiles/)
 *  [Shameem Reza](https://wordpress.org/support/users/codechef/)
 * (@codechef)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/add-to-cart-button-missing-from-category-and-not-working-on-mobiles/#post-16620303)
 * 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/](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.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Tax percentage not showing](https://wordpress.org/support/topic/tax-percentage-not-showing/)
 *  [Shameem Reza](https://wordpress.org/support/users/codechef/)
 * (@codechef)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/tax-percentage-not-showing/#post-16620277)
 * 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/.](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.](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/.](https://woocommerce.com/products/tax-display-by-country/.)

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

1 [2](https://wordpress.org/support/users/codechef/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/codechef/replies/page/2/?output_format=md)