nathalizator
Forum Replies Created
-
Forum: Plugins
In reply to: [Calculated Fields Form] Change selected of dropdown list width pageHello ! I have just found out something with this solution. It seems that the TOTAL is not updated when the page load.
here is my code
(function(){ var days = abs(fieldname2-fieldname1+1), discount = 1; if(3<days) discount = 0.9; if(7<days) discount = 0.8; return CEIL((days*fieldname6*discount)/100)*100; })()<?php echo do_shortcode('[CP_CALCULATED_FIELDS id="11" car="' . get_the_title() . '"]'); ?>Here, the selected option is set with the page title and it works well BUT it does not update the TOTAL.
For example, if the page name is “Car 1”, the dropdown element select “Car 1” ( Value : 500 ) in the drop down menu but doesn’t update the TOTAL.
The total is set as the first value of the drop down menu ( no matter if another car is selected ).
I need to switch element and select again the car to finally have the good value in TOTAL.Is there a way to update directly the TOTAL with the value of the selected car at the loading ?
Forum: Plugins
In reply to: [Calculated Fields Form] Echo value of one field somewhereOkay i guess it might not work for what i want. Maybe the better way would be to get the value directly in the ccf database?
Because i will have a page that will be completely independant from the calculator. ( The calculator is shown only on single car page).In fact i want to be able to get the value of each choice of the dropdown element so it will be more dynamic if i set all my price in the ccf setting form.
Forum: Plugins
In reply to: [Calculated Fields Form] DatePicker Discount ?Perfect ! Thanks
Forum: Plugins
In reply to: [Calculated Fields Form] Echo value of one field somewhereOne last question i wanted to be sure before purchasing the pro version.
Will i be able to echo the value in any page ?
Here is what i want do to :
I have a page when i show all the price of my cars. ( The price of car are set as the “value” of the drop down element on my calculator.
Will i be able to echo the “value” (price) of each “choice” of my drop down element in any page of my website with this method ?Forum: Plugins
In reply to: [Calculated Fields Form] DatePicker Discount ?Thats work wonderfully good ! You definitly made the most flexible calculated field plug-in on wordpress !
I will need one last thing with this , is this possible to round to the hundredth ? If i have a result like 2370, i would rather have it like 2400 ?Thanks a lot againβ¦
- This reply was modified 9 years, 1 month ago by nathalizator.
Forum: Plugins
In reply to: [Calculated Fields Form] Change value of field depending of the date choosenGreat:)
Forum: Plugins
In reply to: [Calculated Fields Form] Echo Custom Field (ACF) as Value ?This is a good alternative ! Thanks a lot
Forum: Plugins
In reply to: [Calculated Fields Form] Change value of field depending of the date choosenThis work insanely great ! There is just a little thing,
Let’s take this example :
Car 1 selected , Value = 1000 β¬I select First June to First June ( Only one day )
The result is 1000β¬ instead of 1500. ( 1000 + 500 extra)If i select First June to 2nd June ( 2 days )
The trick show 2500 instead of 3000 [ (1000 + 500 extra) + (1000 + 500extra) ]It seems that the 500 extra doesn’t work on the first day selected
Any idea?
Forum: Plugins
In reply to: [Calculated Fields Form] Echo value of one field somewhereThanks π
Forum: Plugins
In reply to: [Calculated Fields Form] Echo value of one field somewhereYes that almost what i want to do except it’s directly in the page that display the form ! But the shortcode is not working, maybe it’s because i need the pro version?
Forum: Plugins
In reply to: [Calculated Fields Form] Echo value of one field somewhereHello,
I’m not sure if i did understand. In fact i need to get the value of the car ( which is the price ) in order to display it somewhere in my page without the entire form.Forum: Plugins
In reply to: [Calculated Fields Form] Echo value of one field somewhereHello there ! Is there a way to do it full php ?
What i mean is more to echo the value.
For Car1 it would print ” 2000″ for example. Is it possible?Forum: Plugins
In reply to: [Calculated Fields Form] Change value of field depending of the date choosenHello ! Thanks for your help. I’m not really sure where i should add this equation ? Directly in my script.js ? Or in the form directly ?
Thanks
Forum: Plugins
In reply to: [Calculated Fields Form] Change value of field depending of the date choosenAlso, the developper version is easier to make this custom?
Forum: Plugins
In reply to: [Calculated Fields Form] Change value of field depending of the date choosenHello !
Thanks for your answer here is my Total formula which result the total price of the car rental :abs(fieldname2-fieldname1+1) * (fieldname6)
Field 1 = Is Check in Date and Fieldname2 is Check out date Fieldname 6 is a dropdown menu with the car ( Txt = Mercedes , Value = 2000 )
Any idea of how i could adapt your code ? I want to increase EACH DAY +500β¬