Title: David Relich's Replies | WordPress.org

---

# David Relich

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

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

 Search replies:

## Forum Replies Created

Viewing 12 replies - 1 through 12 (of 12 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Complianz - Terms and Conditions] Plugin Complianz – Terms and Conditions reports a fatal error.](https://wordpress.org/support/topic/plugin-complianz-terms-and-conditions-reports-a-fatal-error/)
 *  [David Relich](https://wordpress.org/support/users/relichd/)
 * (@relichd)
 * [5 days, 5 hours ago](https://wordpress.org/support/topic/plugin-complianz-terms-and-conditions-reports-a-fatal-error/#post-18927303)
 * The fatal is caused by the Czech WordPress language pack, not the English source
   string. At cs_CZ.po:1193 it has %4$ where it must be %4$s, and PHP 8+ throws 
   ValueError on that. I have fixed that. Fixed plugin on [https://github.com/drelich/complianz-terms-conditions](https://github.com/drelich/complianz-terms-conditions)
   since, clearly, the plugin’s dev doesn’t really care…
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Reviews Widgets for Google, Yelp & TripAdvisor] Limit number of reviews pulled in](https://wordpress.org/support/topic/limit-number-of-reviews-pulled-in/)
 *  Thread Starter [David Relich](https://wordpress.org/support/users/relichd/)
 * (@relichd)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/limit-number-of-reviews-pulled-in/#post-15044037)
 * Indeed. It did work properly after I started the process of generating the shortcode
   from scratch, including a new FB login. Updating the existing shortcode did not
   work, generating a brand new one did. Thanks.
 *   Forum: [Reviews](https://wordpress.org/support/forum/reviews/)
    In reply to:
   [[Database for Contact Form 7] Unfinished product (UPDATE: now okay)](https://wordpress.org/support/topic/unfinished-product-2/)
 *  Thread Starter [David Relich](https://wordpress.org/support/users/relichd/)
 * (@relichd)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/unfinished-product-2/#post-14707403)
 * Thanks. Much appreciated.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[YITH WooCommerce Gift Cards] Auto-generate code for cards created by admin](https://wordpress.org/support/topic/auto-generate-code-for-cards-created-by-admin/)
 *  Thread Starter [David Relich](https://wordpress.org/support/users/relichd/)
 * (@relichd)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/auto-generate-code-for-cards-created-by-admin/#post-14411480)
 * Ah, sorry. Didn’t realise.
 * I can’t see any option to edit existing comment, or delete it, though? Not even
   an option to delete the whole thread…
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[YITH WooCommerce Gift Cards] Auto-generate code for cards created by admin](https://wordpress.org/support/topic/auto-generate-code-for-cards-created-by-admin/)
 *  Thread Starter [David Relich](https://wordpress.org/support/users/relichd/)
 * (@relichd)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/auto-generate-code-for-cards-created-by-admin/#post-14410986)
 * For anybody needing it, this is the code I was sent by Francisco. It goes to 
   functions.php of your active theme. Works like a charm!
 *     ```
       if ( ! function_exists( 'ywgc_generate_automatic_code' ) ) {
   
        function ywgc_generate_automatic_code( $post ) {
   
        if ( get_post_type() != 'gift_card' ) {
        return;
        }
   
        if ( $post->post_title != '' ) {
        return;
        }
   
        $title = YITH_WooCommerce_Gift_Cards_Premium::get_instance()->generate_gift_card_code();
   
             ?>
        <script type="text/javascript">
        jQuery(document).ready(function ($) {
                   $("#title").val("<?php echo $title; ?>");
   
        });
        </script>
        <?php
        }
   
          add_action( 'edit_form_after_title', 'ywgc_generate_automatic_code' );
       }
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[YITH WooCommerce Gift Cards] Auto-generate code for cards created by admin](https://wordpress.org/support/topic/auto-generate-code-for-cards-created-by-admin/)
 *  Thread Starter [David Relich](https://wordpress.org/support/users/relichd/)
 * (@relichd)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/auto-generate-code-for-cards-created-by-admin/#post-14410598)
 * Contacted support directly since I am using a paid version.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[YITH Proteo] Problem with dynamic Pricing](https://wordpress.org/support/topic/problem-with-dynamic-pricing/)
 *  [David Relich](https://wordpress.org/support/users/relichd/)
 * (@relichd)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/problem-with-dynamic-pricing/#post-13906554)
 * Interestingly enough, I am experiencing the same problem but with WooCommerce
   Dynamic Pricing & Discounts by RightPress.
 * Cart quantity updates work fine for any guest user but once the user logs in 
   the quantity updates in cart work intermittently (mostly don’t workt).
 * I switched from Proteo to default Twenty Twenty-One theme supplied with WordPress
   and cart quantity updates worked fine even for logged in users so I believe it
   really is a problem with the Proteo theme.
    -  This reply was modified 5 years, 4 months ago by [David Relich](https://wordpress.org/support/users/relichd/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Manual Order – Add Product Dropdown Limit](https://wordpress.org/support/topic/manual-order-add-product-dropdown-limit/)
 *  Thread Starter [David Relich](https://wordpress.org/support/users/relichd/)
 * (@relichd)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/manual-order-add-product-dropdown-limit/#post-13159406)
 * Hey, Tony!
 * Obviously, I wouldn’t be going about editing core files. Just wanted to see what
   hook/filter I’d need to use.
 * Aaaanyway, your code worked brilliantly. Thanks so much for your help! You saved
   me some headaches, haha!
 * Cheers again!
 * David.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Manual Order – Add Product Dropdown Limit](https://wordpress.org/support/topic/manual-order-add-product-dropdown-limit/)
 *  Thread Starter [David Relich](https://wordpress.org/support/users/relichd/)
 * (@relichd)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/manual-order-add-product-dropdown-limit/#post-13155279)
 * Thanks, Tony!
 * I don’t suppose you could point me to the file that actually handles this functionality
   so I can do the coding myself?
 * Cheers.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Unit Of Measure (UOM) for WooCommerce] Any update on displaying units on cart/checkout pages?](https://wordpress.org/support/topic/any-update-on-displaying-units-on-cart-checkout-pages/)
 *  Thread Starter [David Relich](https://wordpress.org/support/users/relichd/)
 * (@relichd)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/any-update-on-displaying-units-on-cart-checkout-pages/#post-10665836)
 * Hi Brad,
 * It makes sense for the units to show up during the whole shopping process.
 * People are stupid, easily confused, and the moment the unit disappears they panic
   and close the site, and the order is lost.
 * Cheers,
 * David.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Customer Reviews] want the review option for logged in users only](https://wordpress.org/support/topic/want-the-review-option-for-logged-in-users-only/)
 *  [David Relich](https://wordpress.org/support/users/relichd/)
 * (@relichd)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/want-the-review-option-for-logged-in-users-only/#post-5877444)
 * +1 for this feature. i’d love to have the option too. thanks.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WordPress Knowledge base & Documentation Plugin - WP Knowledgebase] Missing .current-menu-item class in menu](https://wordpress.org/support/topic/missing-current-menu-item-class-in-menu/)
 *  Thread Starter [David Relich](https://wordpress.org/support/users/relichd/)
 * (@relichd)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/missing-current-menu-item-class-in-menu/#post-5554662)
 * UPDATE: Just checked [http://demo.enigmaweb.com.au/knowledgebase/](http://demo.enigmaweb.com.au/knowledgebase/)
   and it’s the same problem there so I’d go ahead saying it’s not my theme’s problem(
   it’s a custom theme base on _underscores framework). Thanks.

Viewing 12 replies - 1 through 12 (of 12 total)