michaeluno / auto-amazon-links-woocommerce-products

A WordPress plugin that integrates WooCommerce with Auto Amazon Links
GNU General Public License v3.0
0 stars 3 forks source link

Possibility to disable the message (as of Jul 31, 2023 21:51 GMT -03:00 – More info) #6

Open regianesouzaatelie opened 1 year ago

regianesouzaatelie commented 1 year ago

Description

Please, I need help with: https://ofertasdaregi.com.br/p/ Page of tests: https://loja.ofertasdaregi.com.br/ofertas/p/

I’m using the Amazon Auto Links and Auto Amazon Links – WooCommerce Products (Converts unit products to WooCommerce products. Versão 1.0.0 ) in my site. This is importing very well to units, but I have some questions about Amazon Links – WooCommerce Products.

In my site I have posts by diverses stores of which I am affiliate: Amazon, Magazine Luiza, Dafiti, Zattini, Natura.. etc... (these from Brazil, and I type it manually on site).

The message (as of Jul 31, 2023 21:51 GMT -03:00 – More info) is hability only to productos Amazon imported from. So, in another products it's showing out of formating. See image please. I marked this of orange. image3

For now, to resolve that I included a solucion on the arquive "functions.php", that atend the exigency of show date and hour on the post (it's marked of green). And it is enough to Brazil. (amazon.com.br)

So, if possible disable the message it would be better to my site situation.

Solution

If possible disable the message, it would be better to my site situation.

Images

No response

Please confirm that you have searched existing issues in this repository.

Yes

michaeluno commented 1 year ago

Does removing %disclaimer% from the Item Format unit option of the subject unit help? After removing it, you might need to reimport the unit to WooCommerce.

regianesouzaatelie commented 1 year ago

Hi, thanks for return.

So, I had already tried that, but it didn't work. I repeated it once more now and took a print to show you. image5

Removing %disclaimer% from the Item Format Unit option, the message has been removed in the unit view, but when I ability the Amazon Links – WooCommerce Products it keeps appearing as before.

regianesouzaatelie commented 1 year ago

Hi @michaeluno , I need your help, please!

Is there a way to disable disclaimer message on the functions.php of my theme?I already tried removing %disclaimer% from the Item Format unit option, but it wasn't work.

I already have this information on my site (on green). woo-image2

So, the information of disclaimer is shown in twice. Also, in some products it’s showing out of formating. Especialy, on products I type manually. Please, is it possible “doesn’t show” this message, adding some code on the functions.php? Or of some another way? If yes, could you tell me what code can I use?

If you can help me, I am very thankfull…

michaeluno commented 1 year ago

@regianesouzaatelie Try the development version and use the filter hook like the code below. Add this in your functions.php.

add_filter( 'aal/wcp/filter/pricing_disclaimer_tooltip', '__return_empty_string' );
regianesouzaatelie commented 1 year ago

Hi @michaeluno , It worked perfectly here! Thank you so much!!

11112121ad commented 6 months ago

Hi, after I Add this in functions.php.

add_filter( 'aal/wcp/filter/pricing_disclaimer_tooltip', '__return_empty_string' ); The disclaimer of the Products converted from Amazon also removed. I only need to remove (as of n/a - More info) from Non-Amazon products,Products converted from Amazon should retain this (as of n/a - More info) how to do this Thanks

michaeluno commented 6 months ago

@11112121ad Could you try the development version 1.1.0b05 which has been updated today and might fix your issue.

11112121ad commented 6 months ago

Hi, after I install development version 1.1.0b05, and activate it , the price of the Non-Amazon products are missing. 220240506194421 120240506194401