Customize button in a specific Category

I need to customize the “Request budget” button in a specific Category, replacing the text with “Send budget” when the logged-in user is a salesperson.

Cotação de gerador a diesel - Supricompras Marketplace

Hi,

​Please send more details about this button, and we will do our best to help you.

Customer page for “Request quote”: Drilling of drill piles - Marketplace Supricompras

Seller page - to submit quote. Here the customer has posted a request for quotation open to all. The seller will only have to click on the button and send his quote, but the text should read “Send quote”: [Diesel generator quote - Supricompras Marketplace](https://www.supricompras.com.br/listing/cotacao-de- diesel generator/)

Note that it will depend on the ad category. If it is Open Quotation, it is to buy. If they are other categories, it’s for sale.

Hi,

Please provide more information by sending screenshots.


Buyer: request

Seller: send quote button

Hi,

Unfortunately, there’s no such feature, it would require a custom implementation.
If customizations are required for your site, please try customizing it using the collection of code snippets Search · user:hivepress · GitHub and other developer resources, or consider hiring someone for custom work https://fvrr.co/32e7LvY

Model can be usable for this? So I will enable separate pages.

Hi,

Please provide more information about the model in mind, and we will try to help you.

I tried this snippetcode, but it doesn’t work.

function custom_button_text() {
  if ( is_user_logged_in() && current_user_can('vendedor') && is_tax('categoria_cotacoes_abertas') ) {
    return 'Enviar proposta';
  } else {
    return 'Solicitar orçamento';
  }
}

add_filter( 'the_content', 'custom_button_text' );

The “Buy Now” button also could not exist when the Category is “Cotações abertas”

Hi,

Sorry for the inconvenience, but customization is beyond our support scope - it includes fixing bugs and guidance about the available features Support Policy | HivePress.

If customizations are required for your site, please try customizing it using the collection of code snippets Search · user:hivepress · GitHub and other developer resources, or consider hiring someone for custom work https://fvrr.co/32e7LvY.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.