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

[SOLVED]awspricecalculator_ajax_callback manually

  • Ennie
  • Ennie's Avatar
10 months 2 weeks ago #1101 by Ennie
Ennie replied the topic: [SOLVED]awspricecalculator_ajax_callback manually
Hi,

Yes you're on the right way, I think it should work now, but please here are some considerations:

1) It's better to add custom javascript outside the plugin, otherwise new updates will remove your code

To do that you can add this code in your THEME functions.php:

function my_custom_scripts() {
wp_enqueue_script( 'custom-script', get_template_directory_uri() . '/js/my-custom-scripts.js', array( 'jquery' ));
}
add_action( 'wp_enqueue_scripts', 'my_custom_scripts' );

So you can create a file in your THEME/js/my-custom-scripts.js

Here you can insert the code you wrote.

2) Make sure the "newvalue" is a correct value for "aws_price_calc_4". I mean, what kind of field is #aws_price_calc_4? a numeric field, option field, etc?

Best regards
Ennie
AT101

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

More
10 months 2 weeks ago - 10 months 2 weeks ago #1094 by DonQuichotte
DonQuichotte replied the topic: [SOLVED]awspricecalculator_ajax_callback manually
Hi,

Am i on the right way? littlebit help would be appreciated..
i am adding this to the main.js

$(document).on('change', '.hoehe', function(){
newvalue = $(this).innerHtml;
$('#aws_price_calc_4 input').value = newvalue;
WooPriceCalculator.calculatePrice();

});
Last Edit: 10 months 2 weeks ago by DonQuichotte.

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

More
10 months 3 weeks ago #1084 by DonQuichotte
DonQuichotte replied the topic: [SOLVED]awspricecalculator_ajax_callback manually
Hello Ennie,

Yes some suggestions will be enough, thanks :)

best regards

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

  • Ennie
  • Ennie's Avatar
10 months 3 weeks ago #1083 by Ennie
Ennie replied the topic: [SOLVED]awspricecalculator_ajax_callback manually
Hello,
If you are a technician we can give you some suggestions otherwise i guess is better that we can do this task directly. In this second case unfortunately we have to make a quotation.
Please let me know which one you prefer.

Best regards
Ennie
AT101

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

More
10 months 3 weeks ago #1081 by DonQuichotte
DonQuichotte replied the topic: [SOLVED]awspricecalculator_ajax_callback manually
can you help me with it? its pretty urgent :(

thanks

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

More
10 months 3 weeks ago #1060 by DonQuichotte
DonQuichotte created the topic: [SOLVED]awspricecalculator_ajax_callback manually
Hi is there a way to manually trigger the "awspricecalculator_ajax_callback"?

I have a shop with stickers, where the customer can choose the form of it, so when the customer want a circle form of a sticker, he dont have to input the height of his sticker.. the height is calculated automaticaly by choosen width and a ratio.. like circle width * 1
But than i dont have the value anymore on the backend bc the height input field is deactived if he chooses a circle form.. how can i manually trigger sending the height value?? or something similar..

screenshots.firefox.com/D8pDwtxkyx784AWt/aufklebermacher.at

thanks in advance

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

Moderators: davidEnnie
Time to create page: 0.182 seconds

Cart

Total : 0.00 €