Forum Replies Created

Viewing 15 replies - 1 through 15 (of 50 total)
  • Thread Starter miguelitolaparra

    (@miguelitolaparra)

    Thanks for your quick response @jkohlbach

    I don’t need to hide the product from retail customers, the product must be visible to all users, it would only be enough that the price is empty to retailers and they cannot add it to the cart.

    At the moment I’m just a developer building a site and I can’t afford to buy the Premium Plugin.
    But don’t worry, luckily for everyone, there are a wide variety of Plugins out there, and I hope to find one that you can use for free.
    I wish you good luck with the sales of your products.
    All the best

    Thread Starter miguelitolaparra

    (@miguelitolaparra)

    Hello , thanks for your collaboration @anastas10s .
    I don’t quite understand what you mean with your words, you have to use the translator and sometimes it doesn’t show very well.
    Maybe I don’t express the details very well.
    Now in the default wordpress or woocommerce search engine, when I enter an ingredient, it shows me all the products that are in the catalog and have that ingredient, since it detects them by the ingredients because they are in the product description.

    But my intention is when we enter an ingredient in the search engine, it shows the products that do not have that ingredient, instead of those that do have this ingredient.
    I want to facilitate the search for users who are allergic to certain products, and in this way, easily find the products that they could eat, and avoid them searching and reading all the ingredients of all the products in the store.
    As the colleague @xue28 rightly said, this is not a place for you to do my work, I only came here looking for advice and guidance.

    I’m looking for information and maybe I can get what I want to do, but I need to learn, if not impossible.
    I have read something about creating a taxonomy with the ingredients, and working with this, I don’t know, I am reading and studying things to continue learning and fully understand how to build that product search engine.
    When I manage to finish this, I will bring the solution here.
    Thank you

    Thread Starter miguelitolaparra

    (@miguelitolaparra)

    Thank you for your kind words @xue28

    I’m sorry that my question has not been liked by the community, it was never my intention to abuse or ask them to do a job for me, I just came looking for inspiration.
    Feel free to close the discussion if you see fit, I apologize for asking the question, I’ll keep looking for ideas.
    I understand that this is a general questions site, and I have received help on other occasions, I only come here looking for advice, surely someone else has already thought about the functionality that I am talking about before me, and can guide me on the path to continue.

    I will look for ideas in the links that you have recommended, and if the debate is still open, I will share my achievements if they allow me.
    Thanks for your continued support.

    Thread Starter miguelitolaparra

    (@miguelitolaparra)

    I understand
    Thank you for your support these days,
    As I told you, now I must reduce expenses as much as possible until I can start my business.
    But don’t worry, I’ll find another way to get what I’m looking for with another Plugin.
    I wish you a happy day @jkohlbach and good luck with your sales.

    Thread Starter miguelitolaparra

    (@miguelitolaparra)

    Thank you for your attention and sorry for the delay in my response, I was testing.

    I’m not doing things right because now, it always shows P.V.M.

    in the store and had a function that changed the text behind the price, and displayed this text behind the price: P.V.P.
    I did it with the following function:

    //funcion para colocar P.V.P
    function custom_price_message( $price ) { 
        global $post;
        $product_id = $post->ID;
        $textafter = '   P.V.P.'; //texto que vamos agregar
        return $price . '' . $textafter . ''; //class textafter para el CSS
    }
    add_filter( 'woocommerce_get_price_html', 'custom_price_message' );

    Now I have installed woocommerce-wholesale-prices and I would like that in the normal view the text “P.V.P” should be displayed behind the price, and when the user is registered with the Wholesaler role, the text should be the following: P.V.M )

    This is the function that I have modified.

    
    function my_get_current_user_roles() {
      if( is_user_logged_in() ) {
        $user = wp_get_current_user();
        $roles = ( array ) $user->roles;
        return $roles; // This will returns an array
      } else {
        return array();
      }
    }
    
    function custom_price_message( $price ) { 
     global $post; 
     $product_id = $post->ID; 
     $roles = my_get_current_user_roles();
     $textafter = "P.V.M.";
     if(!empty($roles)) { 
    	if (in_array("Wholesale Customer", $roles)) {
    		$textafter = 'P.V.M.'; //texto que vamos agregar 
    	}
    	if (in_array("Cliente", $roles)) {
    		$textafter = 'P.V.P.'; //texto que vamos agregar 
    	}
     } 
     return $price . '' . $textafter . ''; //class textafter para el  
    } 
    add_filter('woocommerce_get_price_html', 'custom_price_message');

    However, this does not work and as you can see in the first screenshot (https://ibb.co/N690HDz ), it always shows the Wholesale price, even though we are not registered

    Well, it should always show P.V.P behind the price, except when the user has the Wholesale Customer rool, the following screenshot is a user with the Wholesale Customer rool https://ibb.co/gzg8kH4

    I think my function is not well elaborated, can you help me?

    I have also discovered that when we are registered with the Wholesale Customer rool, the text “Wholesale Price” is displayed.
    Can you eliminate this, or even if this text we change it for the text that the wholesale price needs, P.V.M, that would be great,
    https://ibb.co/s3bCS1L
    this would be possible ?
    You can help ?

    Thread Starter miguelitolaparra

    (@miguelitolaparra)

    Thank you for your response and I apologize for the delay in responding.

    I really like the plugin, but unfortunately at the moment we can’t afford to buy the premium version.
    It is a small company that is starting.
    I will look for another solution.
    You tell me that I can modify $textafter, but I can’t find this, in what file is this instruction exactly
    Thanks for spend your time on me

    Hello, I have faced the same error and finally they told me that the error is in WooCommerce.
    Just look for this path in your files, the main folder =>

    wp-content->plugins->woocommerce->includes->widgets there “class-wc-widget-price-filter.php

    And line 87 is where you can make the changes that will get you results.
    You can change the number “10” to the number you want the Filter bar to scroll.`
    You just have to change this line:

    $step = max( apply_filters( 'woocommerce_price_filter_widget_step', 10 ), 1 );

    For this other line:
    $step = max( apply_filters( 'woocommerce_price_filter_widget_step', 1 ), 1 );

    This will solve your problems @dianaclient

    Luck

    Thread Starter miguelitolaparra

    (@miguelitolaparra)

    Thanks for your reply.

    As I said, the WordPress plugin is translated, and the strings I show are also translated in Loco Translate
    However, when entering the website and arriving at this page, those strings are displayed in English.
    This is my problem so I don’t think I can correct it with another translator.
    I’ve checked your link, and it looks like a translator to me.

    Thanks for your support

    Thread Starter miguelitolaparra

    (@miguelitolaparra)

    Thanks for your quick reply @nm1com

    Your code has worked.

    My partner is not here and I do not understand CSS.

    Now I will look for something to read a little about it, but I find it a bit difficult.
    The client noticed that his site was weird in the footer, and I did not know how to fix it, and my partner will be away for several days.
    I tried adding custom HTML widgets, with phone prompts from my partner, but unfortunately in WordPress I am also somewhat new and get stuck.

    Thanks for your help.

    Thread Starter miguelitolaparra

    (@miguelitolaparra)

    Thanks for your quick reply @majaid

    I understand what you mean, but not exactly how to fix it.
    I don’t want to make any more mistakes since my CSS experience is scarce.
    Can you give me an idea how to correct this?
    Maybe I should delete that DIV, or change the DIV data?
    I will look for a solution on the Internet with an idea that you have given me
    Thank you

    Thread Starter miguelitolaparra

    (@miguelitolaparra)

    Hello @fotolanga ,
    I apologize for the delay in answering, I stayed a few days without opening the mail.
    The truth is that a long time ago.
    It was modified from wp-admin >> contact
    In the toolbar there is a section of the contact form or also from the Contact Form 7 plugin, that I guess you already know.
    I do not know exactly what you intend to modify, if you give me more details, maybe I can help you.
    good day

    Hello.
    I do not understand very well what you need.
    If what you need is to delete the reservations made, this is done from admin >> WP Hotel BOOking >> Reservations.
    On the other hand, if what you need is to eliminate rooms that you select to reserve and you no longer want to, by taking the shopping cart, you can eliminate the rooms you do not want.
    It’s an idea, but as I say, I do not understand very well or what you need.
    Wait for one of the authors to respond.
    regards

    https://ibb.co/pJtwgMB

    Hi, I’m using another topic different from you, but I think you can change that in the same way.
    In my case it is:
    wp-admin >> Appearance >>> Customize >>>> Layout (Header / Menu)

    Here is the text of the button and the URL where that button is pointing

    If not, you can try different Appearance options >>> Customize
    Chances are you can change it from: Social / Contact Settings

    I hope I have helped. Luck

    Thread Starter miguelitolaparra

    (@miguelitolaparra)

    Thanks again.
    I will try to solve it.
    Thanks for the support.

    Thread Starter miguelitolaparra

    (@miguelitolaparra)

    Thanks for the reply.
    Unfortunately I am not working on a son theme.
    I started very fast to work in WordPress without studying some of the details, such as “a son theme”
    I do not know if I will be able to create a child theme as you have explained to me, because I do not speak English, and when using the google translator, sometimes it does not interpret what one tries to express.
    Can I still do a theme-child?
    Another thing I have to say is that my theme is HOWELLO, WP Hotel Booking is the plugin that manages my reservations.
    I will find a way to correct this error.
    Luckily, before updating any plugin, I make backup copies, so I could solve the problem, but I must fix it in such a way that I can make updates.
    Thank you.
    If you come up with an idea that you can share with me, I will be very grateful, since my experience in WordPress is scarce.
    Thanks for the support provided.

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