I want to display tax amount, shipping amount , and total in custom jquery popup dialog and that should be visible in checkout page. I have added a button in checkout page on click of it a popup shows simple text. i want to display tax and ship amount. How can I do that?? can anyone help me to do that.
Asked
Active
Viewed 96 times
1
-
In current pop-up, you show simple text using html file ot phtml file? – Dhiren Vasoya Sep 20 '18 at 14:24
-
It is HTML file – ASHWINI MURTHY Sep 21 '18 at 05:49
-
do you used to jquery code for this pop-up, right? which is currently into another file apart from html? – Dhiren Vasoya Sep 21 '18 at 11:15
-
yes. that is modal-form.js file – ASHWINI MURTHY Sep 21 '18 at 11:20
-
I post answer, kindly check. – Dhiren Vasoya Sep 21 '18 at 11:25
1 Answers
1
You need to put code into your js file like this.
customfunction: function () {
return "YOUR VALUE";
}
And into your html file you can call code like this.
<span class="yourclass" data-bind="text: customfunction()"></span>
Teja Bhagavan Kollepara
- 3,816
- 5
- 32
- 69
Dhiren Vasoya
- 9,484
- 12
- 33
- 59