永遠に幸せが続くインフィニティエンゲージリング
{ let transaction_id = await get_transaction_id(); $('input[name="transactionid"]').val(transaction_id); let update_price_view = async(ev)=>{ let purchase_price = parseInt($('#purchase-price').data('original-price')); let option_selectors = Array.from($('.product-options')); for(let option_selector of option_selectors) { let option_price = $(option_selector.options[option_selector.options.selectedIndex]).data('price'); if(option_price !== '') { purchase_price += parseInt(option_price); } } $('#purchase-price').text(`${purchase_price.toLocaleString()}円(税込)`); }; $('#form1').on('change', update_price_view); await update_price_view(); });