Total : 0.00 €

Before contacting us, please make sure to check our F.A.Q

Please, login or register to our website in order to be able to post a presale question in the forum.

× WooPrice Calculator PRO

Add "+ tax" string to cart editing popup

More
1 week 3 days ago #2086 by bill
bill replied the topic: Add "+ tax" string to cart editing popup
Hello Dario,

sorry for the misunderstanding, i just added the code correctly. When you will try to insert the code just need to take off the "/" where i have inserted it

add_filter('awspc_filter_calculate_price_ajax_response', 'custom_awspc_filter_calculate_price_ajax_response', 10, 2);
function custom_awspc_filter_calculate_price_ajax_response($response, $params){
$response[/'price'] = $params[/'price']." included taxes";
return $response;
}

Waiting for your feedback
Kind Regards,
Bill
AT1078

Please Log in or Create an account to join the conversation.

More
1 week 3 days ago #2083 by Dario Poma
Dario Poma replied the topic: Add "+ tax" string to cart editing popup

bill wrote: add_filter('awspc_filter_calculate_price_ajax_response', 'custom_awspc_filter_calculate_price_ajax_response', 10, 2);
function custom_awspc_filter_calculate_price_ajax_response($response, $params){
$response = $params." included taxes";
return $response;
}


Hi,
I tried the code (which is the same as the one you wrote in the previous message) but it doesn't work and it's a failure.
Can you please check it? With your code the calculation is no longer done and the price disappears.
Here the site: retisumisura.sviluppo.host/shop/reti-pro...reggiante-su-misura/

Please Log in or Create an account to join the conversation.

More
1 week 4 days ago #2082 by bill
bill replied the topic: Add "+ tax" string to cart editing popup
Hello Dario,

sorry for the delay of giving you an answer.
Here is the code that you need to use and works correctly

add_filter('awspc_filter_calculate_price_ajax_response', 'custom_awspc_filter_calculate_price_ajax_response', 10, 2);
function custom_awspc_filter_calculate_price_ajax_response($response, $params){
$response = $params." included taxes";
return $response;
}

Waiting for your feedback
Kind Regards,
Bill
AT1078

Please Log in or Create an account to join the conversation.

More
1 week 6 days ago #2079 by Dario Poma
Dario Poma replied the topic: Add "+ tax" string to cart editing popup

bill wrote: add_filter('awspc_filter_calculate_price_ajax_response','custom_awspc_filter_calculate_price_ajax_response', 10, 2);
function custom_awspc_filter_calculate_price_ajax_response($response, $params){
$response = $params." included taxes";
return $response;
}


Good morning,
I tried the code you wrote but it doesn't seem to work.
With the code active, in fact, the price disappears and the calculation of the final price is not successful.
Is there something wrong or something I didn't understand?
Thank you

Please Log in or Create an account to join the conversation.

More
2 weeks 3 hours ago #2078 by bill
bill replied the topic: Add "+ tax" string to cart editing popup
Hello Dario,

regarding your request you can use the code above:

add_filter('awspc_filter_calculate_price_ajax_response','custom_awspc_filter_calculate_price_ajax_response', 10, 2);
function custom_awspc_filter_calculate_price_ajax_response($response, $params){
$response = $params." included taxes";
return $response;
}

Waiting for you feedback
Kind Regards,
Bill
AT1078

Please Log in or Create an account to join the conversation.

More
2 weeks 16 hours ago #2077 by Dario Poma
Dario Poma replied the topic: Add "+ tax" string to cart editing popup

bill wrote: Regarding your request, the hook changes the string of the price only on shop and the product page, its not available on the cart.


Good morning,
is it possible to have another solution to add the string "+ tax" in the popup where indicated by the image attached to the previous post? Is there another hook or something else I can use to insert the string?
Thank you and have a nice day

Please Log in or Create an account to join the conversation.

More
2 weeks 1 day ago #2076 by bill
bill replied the topic: Add "+ tax" string to cart editing popup
Hello Dario,
sorry for the delay of giving you an answer.
Regarding your request, the hook changes the string of the price only on shop and the product page, its not available on the cart.

Kind Regards,
Bill
AT1078

Please Log in or Create an account to join the conversation.

More
2 weeks 2 days ago #2072 by Dario Poma
Dario Poma created the topic: Add "+ tax" string to cart editing popup
Good morning,
I used this code to insert the string "+ tax" into the prices in the products single page and categories.
function change_product_price_html($price) {
  $newPrice = $price;
  $newPrice	.= '+ tax';
  return $newPrice;
}
add_filter('woocommerce_get_price_html', 'change_product_price_html');

When I click on the "Edit" button of a product in the shopping cart, the popup for editing the fields of your plugin appears. In the price, however, does not appear the string "+ tax" after the price displayed (see attachment).
How can I solve and insert the string?
Attachments:

Please Log in or Create an account to join the conversation.

Moderators: david
Time to create page: 0.180 seconds

Cart

Total : 0.00 €