This session jquery is working fine for me. But the problem i faced when i try to get the paying amount, i get output as "[object Object] instead of amount, i.e "100, 70" etc.
here is my code for paying amount session:
<script>
var amount_to_pay = $('#amount_to_pay').html(final_price);
$.session.set('amount_to_pay', str_amount_to_pay);
var session_amount_to_pay = $.session.get('amount_to_pay');
console.log(session_amount_to_pay+" is the amount for "+id);
</script>
This session jquery is working fine for me. But the problem i faced when i try to get the paying amount, i get output as "[object Object] instead of amount, i.e "100, 70" etc.
<script> var amount_to_pay = $('#amount_to_pay').html(final_price); $.session.set('amount_to_pay', str_amount_to_pay); var session_amount_to_pay = $.session.get('amount_to_pay'); console.log(session_amount_to_pay+" is the amount for "+id); </script>here is my code for paying amount session: