let totalPrice = 0; let taxRate = 10; let taxRateValue = (100 + taxRate) / 100; let delivery_dates = { 'acryl_freecut' : '5/8〜5/10の間に発送予定' , 'acryl_freecut_L' : '5/7〜5/9の間に発送予定' , 'ita_semiorderCut' : '5/9〜5/13の間に発送予定' , 'ita_semiorder' : '5/9〜5/13の間に発送予定' , 'ita2_semiorder' : '5/9〜5/14の間に発送予定' , 'Laser' : '5/9〜5/14の間に発送予定' , 'pipe_semiorder-' : '5/8〜5/10の間に発送予定' , 'pipe_semiorderCut' : '5/10〜5/14の間に発送予定' , 'pipe_semiorderSaime' : '5/14〜5/16の間に発送予定' , 'pipe_semiorderMigaki' : '5/14〜5/16の間に発送予定' , 'ACO ACB ACP- ACS' : '5/7〜5/14の間に発送予定' , 'semi_flange' : '5/28〜5/30の間に発送予定' , 'semi_atuita' : '5/9〜5/14の間に発送予定' , 'semi_enban' : '5/9〜5/13の間に発送予定' , 'semi_enbanDetail' : '5/13〜5/15の間に発送予定' , 'semi_acrykataita' : '5/8〜5/10の間に発送予定' , 'OAP' : '5/2〜5/9の間に発送予定' , 'OAP_MANY' : '5/9〜5/14の間に発送予定' , 'OAP-' : '5/8〜5/10の間に発送予定' , 'OAQ OAQS' : '5/2〜5/9の間に発送予定' , 'OAQ80 〜 OAQ200' : '5/9〜5/10の間に発送予定' , 'OACY OACY-C' : '5/20〜5/22の間に発送予定' , 'OAC OAS' : '5/1〜5/7の間に発送予定' , 'OAC100 OAC150 OAC200' : '5/15〜5/20の間に発送予定' , 'OAB1020UV' : '5/1に発送予定' , 'OAB1420UV' : '5/1に発送予定' , 'OAB1520UV' : '5/1に発送予定' , 'OPS' : '5/2〜5/9の間に発送予定' , 'OAD' : '5/7〜5/8の間に発送予定' , 'OAD-' : '5/7〜5/14の間に発送予定' , 'semi_domehole' : '5/10〜5/16の間に発送予定' , 'FMH' : '5/1に発送予定' , 'blind_semiorder' : '5/9〜5/14の間に発送予定' , 'semi_konoji_display' : '5/15〜5/17の間に発送予定' , 'semi_konoji_display_p' : '5/17〜5/21の間に発送予定' , 'AS BA' : '5/1に発送予定' , 'LS' : '5/13〜5/15の間に発送予定' , 'CAP' : '5/2〜5/9の間に発送予定' , 'CAP-C' : '5/8〜5/13の間に発送予定' , 'CAP-K' : '5/7〜5/10の間に発送予定' , 'EC' : '5/8〜5/10の間に発送予定' , 'SGT' : '5/7〜5/9の間に発送予定' , 'K5 K3' : '5/8〜5/10の間に発送予定' , 'polyca_semiorderCUT' : '5/8〜5/10の間に発送予定' , 'polyca_semiorderDETAILS' : '5/10〜5/14の間に発送予定' , 'polyca_semiorder' : '5/10〜5/15の間に発送予定' , 'semi_polyca_enban' : '5/13〜5/15の間に発送予定' , 'semi_polyca_enbanDetail' : '5/15〜5/17の間に発送予定' , 'blind_semiorderP' : '5/10〜5/15の間に発送予定' , 'semi_polystyrene' : '5/8〜5/10の間に発送予定' , 'semi_punching' : '5/8〜5/10の間に発送予定' , 'wpm' : '5/8〜5/10の間に発送予定' , 'TCV TCN' : '5/7〜5/10の間に発送予定' , 'FMH-P' : '5/1に発送予定' , 'pet_semiorderCUT' : '5/8〜5/10の間に発送予定' , 'pet_semiorderDETAILS' : '5/9〜5/13の間に発送予定' , 'pet_semiorder' : '5/9〜5/14の間に発送予定' , 'semi_lji_pet' : '5/15〜5/17の間に発送予定' , 'semi_konoji_pet' : '5/15〜5/17の間に発送予定' , 'semi_konoji_pet_p' : '5/17〜5/21の間に発送予定' , 'IRIS' : '5/8〜5/9の間に発送予定' , 'OFF-' : '5/2〜5/8の間に発送予定' , 'OPFR-' : '5/2〜5/8の間に発送予定' , 'OFT-C' : '5/1に発送予定' , 'OFT-G' : '5/1に発送予定' , 'OFT-P' : '5/1に発送予定' , 'OFS-H' : '5/1に発送予定' , 'OFS-A5' : '5/1に発送予定' , 'OFS-B5' : '5/1に発送予定' , 'OFS-A4' : '5/1に発送予定' , 'semi_photo_tpd' : '5/9〜5/13の間に発送予定' , 'OPTP-L' : '5/1に発送予定' , 'OPTP-2L' : '5/1に発送予定' , 'OPTP-H' : '5/1に発送予定' , 'OPTP-A5' : '5/1に発送予定' , 'OPTP-B5' : '5/1に発送予定' , 'OPTP-A4' : '5/1に発送予定' , 'OPMG-L' : '5/1〜5/2の間に発送予定' , 'OPMG-2L' : '5/1〜5/2の間に発送予定' , 'OPMG-H' : '5/1〜5/2の間に発送予定' , 'OPMG-A5' : '5/1〜5/2の間に発送予定' , 'OPMG-B5' : '5/1〜5/2の間に発送予定' , 'OPMG-A4' : '5/1〜5/2の間に発送予定' , 'semi_photo' : '5/9〜5/13の間に発送予定' , 'OFC' : '5/2〜5/7の間に発送予定' , 'OCHKF-M' : '5/1に発送予定' , 'OCHKF-S' : '5/1に発送予定' , 'OCHKF-W' : '5/1に発送予定' , 'OPFST' : '5/2〜5/8の間に発送予定' , 'OPFST-' : '5/9〜5/13の間に発送予定' , 'OPFST-A0' : '5/9〜5/13の間に発送予定' , 'OPFFR' : '5/9〜5/13の間に発送予定' , 'OPFFR-' : '5/9〜5/13の間に発送予定' , 'OPPT' : '5/2〜5/8の間に発送予定' , 'OPPT-' : '5/9〜5/13の間に発送予定' , 'OPPT-A0' : '5/9〜5/13の間に発送予定' , 'semi_pfm' : '5/9〜5/13の間に発送予定' , 'semi_pfm-f' : '5/9〜5/13の間に発送予定' , 'semi_pfm-p2' : '5/9〜5/13の間に発送予定' , 'OPO-' : '5/17〜5/21の間に発送予定' , 'semi_opo' : '5/17〜5/21の間に発送予定' , 'OFPR' : '5/9〜5/13の間に発送予定' , 'OFPR-' : '5/9〜5/13の間に発送予定' , 'semi_ofpr' : '5/9〜5/13の間に発送予定' , 'OPF-STD-A0' : '5/8〜5/10の間に発送予定' , 'OPF-STD-C' : '5/2〜5/9の間に発送予定' , 'OPF-STD-UV' : '5/8〜5/10の間に発送予定' , 'OPF-STD-A0-S' : '5/8〜5/10の間に発送予定' , 'OPF-STD-C-S' : '5/2〜5/9の間に発送予定' , 'OPF-STD-UV-S' : '5/8〜5/10の間に発送予定' , 'OTF' : '5/9〜5/13の間に発送予定' , 'OTF-' : '5/9〜5/13の間に発送予定' , 'semi_collection' : '5/9〜5/14の間に発送予定' , 'semi_thick' : '5/9〜5/14の間に発送予定' , 'semi_jigsaw' : '5/9〜5/14の間に発送予定' , 'semi_shojo' : '5/9〜5/13の間に発送予定' , 'ORF-EP' : '5/1に発送予定' , 'ORF-EPB' : '5/1に発送予定' , 'ORF-EPJ' : '5/1に発送予定' , 'ORFB' : '5/1に発送予定' , 'ORFS' : '5/1に発送予定' , 'OLPB' : '5/1に発送予定' , 'OSG2-C-UV' : '5/2〜5/7の間に発送予定' , 'OSG2-K-UV' : '5/1に発送予定' , 'OSG-M-P' : '5/1に発送予定' , 'OSG-M-L' : '5/1に発送予定' , 'OSG-S-C' : '5/1に発送予定' , 'OSG-S-K' : '5/1に発送予定' , 'OUFS' : '5/9〜5/13の間に発送予定' , 'OUFG' : '5/9〜5/13の間に発送予定' , 'semi_uniform' : '5/9〜5/13の間に発送予定' , 'OCD-D' : '5/1に発送予定' , 'OCD-L' : '5/1に発送予定' , 'OCD-J' : '5/1に発送予定' , 'OCKS' : '5/1に発送予定' , 'OCKR2' : '中止' , 'OCKR3' : '中止' , 'OWB' : '5/17〜5/21の間に発送予定' , 'OCF-SM' : '5/17〜5/21の間に発送予定' , 'OCF-F3' : '5/17〜5/21の間に発送予定' , 'OCF-F6' : '5/17〜5/21の間に発送予定' , 'OCF-F8' : '5/17〜5/21の間に発送予定' , 'OCF-F10' : '5/17〜5/21の間に発送予定' , 'semi_rittai' : '5/17〜5/21の間に発送予定' , 'semi_crg' : '5/17〜5/21の間に発送予定' , 'ORG-A4' : '5/17〜5/21の間に発送予定' , 'ORG-A4-' : '5/17〜5/21の間に発送予定' , 'ORG-A4H' : '5/17〜5/21の間に発送予定' , 'ORG-A4H-' : '5/17〜5/21の間に発送予定' , 'ORG-A3' : '5/17〜5/21の間に発送予定' , 'ORG-A3-' : '5/17〜5/21の間に発送予定' , 'ORG-B3' : '5/17〜5/21の間に発送予定' , 'ORG-B3-' : '5/17〜5/21の間に発送予定' , 'ORG-A2' : '5/17〜5/21の間に発送予定' , 'ORG-A2-' : '5/17〜5/21の間に発送予定' , 'ORB' : '5/17〜5/21の間に発送予定' , 'semi_rbt' : '5/17〜5/21の間に発送予定' , 'OEL' : '5/2〜5/7の間に発送予定' , 'OSD-1' : '5/2〜5/7の間に発送予定' , 'OCS-A311' : '5/31〜6/13の間に発送予定' , 'OCS-A411' : '5/1に発送予定' , 'OCS-A431' : '5/1に発送予定' , 'OCSS-A5' : '5/1に発送予定' , 'OCSS-B5' : '5/1に発送予定' , 'OCSS-A4' : '5/1に発送予定' , 'OCSS-A43' : '5/1に発送予定' , 'OCSS-A4F' : '5/1に発送予定' , 'OCC-S-C' : '5/17〜5/21の間に発送予定' , 'OCC-M-C' : '5/17〜5/21の間に発送予定' , 'OCC-L-C' : '5/17〜5/21の間に発送予定' , 'OCA-L' : '5/17〜5/21の間に発送予定' , 'OCA-M' : '5/17〜5/21の間に発送予定' , 'OCA-S' : '5/17〜5/21の間に発送予定' , 'OCB-L' : '5/17〜5/21の間に発送予定' , 'OCB-M' : '5/17〜5/21の間に発送予定' , 'OCB-S' : '5/17〜5/21の間に発送予定' , 'OCC-L' : '中止' , 'OKC' : '5/17〜5/21の間に発送予定' , 'semi_kdn' : '5/17〜5/21の間に発送予定' , 'semi_kdn_hina' : '5/17〜5/21の間に発送予定' , 'ODCGW300' : '5/17〜5/21の間に発送予定' , 'ODCGW300S' : '5/17〜5/21の間に発送予定' , 'OHGW500' : '5/17〜5/21の間に発送予定' , 'OHGW500S' : '5/17〜5/21の間に発送予定' , 'OHGW600' : '5/17〜5/21の間に発送予定' , 'OHGW600S' : '5/17〜5/21の間に発送予定' , 'OHGW700' : '5/17〜5/21の間に発送予定' , 'OHGW700S' : '5/17〜5/21の間に発送予定' , 'OHGW800' : '5/17〜5/21の間に発送予定' , 'OHGW800S' : '5/17〜5/21の間に発送予定' , 'gulwing_semiorder' : '5/17〜5/21の間に発送予定' , 'ODC200' : '5/14〜5/16の間に発送予定' , 'ODC250' : '5/14〜5/16の間に発送予定' , 'ODC300' : '5/14〜5/16の間に発送予定' , 'ODCH350' : '5/14〜5/16の間に発送予定' , 'ODCH500' : '5/14〜5/16の間に発送予定' , 'ODCW500' : '5/14〜5/16の間に発送予定' , 'ODC3-1' : '5/14〜5/16の間に発送予定' , 'ODC5-1' : '5/14〜5/16の間に発送予定' , 'OBC' : '5/14〜5/16の間に発送予定' , 'OBC-UV' : '5/14〜5/16の間に発送予定' , 'display_semiorder' : '5/17〜5/21の間に発送予定' , 'semi_ent' : '5/16〜5/20の間に発送予定' , 'OCT-C' : '5/17〜5/21の間に発送予定' , 'DS' : '5/17〜5/21の間に発送予定' , 'ONC' : '5/17〜5/21の間に発送予定' , 'semi_hinadan' : '5/17〜5/21の間に発送予定' , 'semi_showcase_key' : '5/17〜5/21の間に発送予定' , 'OPC2-OE' : '中止' , 'OPCM-C' : '中止' , 'OPD2' : '5/17〜5/21の間に発送予定' , 'OPKR-C' : '5/1に発送予定' , 'OPKR-C2' : '5/1に発送予定' , 'OPKR-GE' : '5/1に発送予定' , 'OPKR-GE2' : '5/1に発送予定' , 'OPC-P' : '5/2〜5/13の間に発送予定' , 'OAR304' : '5/7〜5/13の間に発送予定' , 'OAR206' : '5/7〜5/13の間に発送予定' , 'OAR306' : '5/7〜5/13の間に発送予定' , 'OCN' : '5/23〜5/27の間に発送予定' , 'OACR-' : '5/17〜5/21の間に発送予定' , 'new_rack_semiorder' : '5/23〜5/27の間に発送予定' , 'ODL-C' : '5/17〜5/21の間に発送予定' , 'rack_semiorder' : '5/17〜5/21の間に発送予定' , 'OCW' : '5/17〜5/21の間に発送予定' , 'wagon_semiorder' : '5/17〜5/21の間に発送予定' , 'tv-panel-lt' : '5/17〜5/21の間に発送予定' , 'semi_tvPanel' : '5/17〜5/21の間に発送予定' , 'semi_tbl' : '5/13〜5/16の間に発送予定' , 'semi_rpc' : '5/17〜5/21の間に発送予定' , 'OBCC' : '5/2〜5/7の間に発送予定' , 'OAL' : '5/28〜5/30の間に発送予定' , 'foodCover_semiorder' : '5/17〜5/21の間に発送予定' , 'semi_lji' : '5/15〜5/17の間に発送予定' , 'OWS' : '5/17〜5/21の間に発送予定' , 'semi_ows' : '5/17〜5/21の間に発送予定' , 'semi_mrb' : '5/9〜5/13の間に発送予定' , 'OTC' : '5/23〜5/27の間に発送予定' , 'ODT' : '5/17〜5/21の間に発送予定' , 'semi_odt' : '5/17〜5/21の間に発送予定' , 'OBG600' : '5/17〜5/21の間に発送予定' , 'semi_obg' : '5/17〜5/21の間に発送予定' , 'OBG500' : '5/17〜5/21の間に発送予定' , 'OBG_D' : '5/17〜5/21の間に発送予定' , 'semi_obg_d' : '5/17〜5/21の間に発送予定' , 'semi_suiso_c' : '5/13〜5/16の間に発送予定' , 'HMC450' : '5/17〜5/21の間に発送予定' , 'semi_hmc' : '5/17〜5/21の間に発送予定' , 'BA-SS' : '5/16〜5/20の間に発送予定' , 'BA_STAND_3' : '5/1〜5/2の間に発送予定' , 'BA_STAND_5' : '5/1〜5/2の間に発送予定' , 'FOL-MZA' : '5/2〜5/9の間に発送予定' , 'FOL-PLS-ECL' : '5/2〜5/9の間に発送予定' , 'FOL-PLS-SPH' : '5/2〜5/9の間に発送予定' , 'FOL-FRG' : '欠品中' , 'FOL-VLS' : '5/2〜5/9の間に発送予定' , 'OA9-21 22 23' : '5/13〜5/16の間に発送予定' , 'OA9-24-C' : '5/8〜5/13の間に発送予定' , 'OA9-24-K' : '5/8〜5/13の間に発送予定' , 'OA9-24-W' : '5/8〜5/13の間に発送予定' , 'OA9-24-R' : '欠品中' , 'OA9-02' : '5/15〜5/17の間に発送予定' , 'OA9-02-W' : '5/15〜5/17の間に発送予定' , 'LP-AR-C' : '5/2〜5/9の間に発送予定' , 'LP-AR-K' : '5/2〜5/9の間に発送予定' , 'LP-AR-W' : '5/2〜5/9の間に発送予定' , 'LP-AR-M' : '欠品中' , 'LP-MH' : '5/2〜5/9の間に発送予定' , 'LP-DL' : '欠品中' , 'LP-DLB' : '5/2〜5/9の間に発送予定' , 'LP-DLP' : '5/2〜5/9の間に発送予定' , 'LP-CC-A' : '欠品中' , 'LP-CC-B' : '欠品中' , 'HCF-16-IG' : '5/2〜5/9の間に発送予定' , 'HCF-16-W' : '5/2〜5/9の間に発送予定' , 'HCF-16-T' : '5/2〜5/9の間に発送予定' , 'HCF-16-WR' : '5/2〜5/9の間に発送予定' , 'LP-BLV' : '欠品中' , 'LP-RB-S' : '欠品中' , 'LP-RB-L' : '欠品中' , 'LP-RB-C' : '欠品中' , 'LP-RBS-S' : '欠品中' , 'LP-RBS-L' : '欠品中' , 'LP-RBS-C' : '欠品中' , 'LP-KG-W' : '欠品中' , 'LP-KG-M' : '欠品中' , 'LP-KG-N' : '欠品中' , 'LP-KG-B' : '5/2〜5/9の間に発送予定' , 'LP-KG-T' : '5/2〜5/9の間に発送予定' , 'LP-KG-S' : '5/2〜5/9の間に発送予定' , 'LP-DOS-C' : '欠品中' , 'LP-DOD-C' : '5/2〜5/9の間に発送予定' , 'LP-DOT-C' : '欠品中' , 'LP-DOS-RO' : '5/2〜5/9の間に発送予定' , 'LP-DOD-RO' : '5/2〜5/9の間に発送予定' , 'LP-DOT-RO' : '5/2〜5/9の間に発送予定' , 'LP-DOS-TU' : '5/2〜5/9の間に発送予定' , 'LP-DOD-TU' : '5/2〜5/9の間に発送予定' , 'LP-DOT-TU' : '欠品中' , 'LP-DOS-CT' : '5/2〜5/9の間に発送予定' , 'LP-DOD-CT' : '5/2〜5/9の間に発送予定' , 'LP-DOT-CT' : '5/2〜5/9の間に発送予定' , 'LP-DOS-WR' : '5/2〜5/9の間に発送予定' , 'LP-DOD-WR' : '5/2〜5/9の間に発送予定' , 'LP-DOT-WR' : '5/2〜5/9の間に発送予定' , 'LP-DOS-IG' : '5/2〜5/9の間に発送予定' , 'LP-DOD-IG' : '5/2〜5/9の間に発送予定' , 'LP-DOT-IG' : '5/2〜5/9の間に発送予定' , 'LP-KS-S' : '欠品中' , 'LP-KS-L' : '欠品中' , 'TBP' : '5/1〜5/2の間に発送予定' , 'OA9-30' : '欠品中' , 'O-KU3200-2' : '5/1に発送予定' , 'BA-KN' : '5/1に発送予定' , 'BA-MG' : '5/1に発送予定' , 'BA-TMM3' : '5/1に発送予定' , 'BA-TMM4' : '5/1に発送予定' , 'OPF-STD-A2' : '5/2〜5/8の間に発送予定' , 'OPF-STD-A2-UV' : '5/9〜5/13の間に発送予定' , 'OPF-STD-B2' : '5/2〜5/8の間に発送予定' , 'OPF-STD-B2-UV' : '5/9〜5/13の間に発送予定' , 'OPF-STD-B3' : '5/2〜5/8の間に発送予定' , 'OPF-STD-B3-UV' : '5/9〜5/13の間に発送予定' }; let discountRates = [ ] let quantityTagID = 'suryo'; // 金額計算処理 $(function () { let price = $('#base_price').val(); let quantity = $('#'+quantityTagID).val(); calcPrice(); window.addEventListener('pageshow', function() { calcPrice(); }); $(document).on('click', '.number__button--plus, .number__button--minus', function(){ calcPrice(); }); $(document).on('change', '#'+quantityTagID, function(){ calcPrice(); }); function calcPrice() { let quantity = $('#'+quantityTagID).val(); if( discountRates.length > 0 ) { let discountRate = 0; for( var i = 0; i < discountRates.length; i++ ) { if( discountRates[i].number_of_lower_limit <= quantity && discountRates[i].number_of_upper_limit >= quantity ) { discountRate = discountRates[i].discount_rate; break; } } discountRatePercentage = 100 - discountRate; //unitPrice = Math.round( Math.round(price * taxRateValue) * discountRatePercentage / 100); unitPrice = Math.round(price * discountRatePercentage / 100); totalPrice = unitPrice * quantity; totalPriceTax = Math.round(totalPrice * taxRateValue); //regularTotalPrice = Math.round(price * taxRateValue) * quantity; regularTotalPrice = price * quantity; //discountPrice = regularTotalPrice - totalPrice; discountPrice = Math.round((regularTotalPrice - totalPrice) * taxRateValue); $('#discount_rate').text(discountRate); } else { //unitPrice = Math.round(price * taxRateValue); unitPrice = price; totalPrice = unitPrice * quantity; totalPriceTax = Math.round(totalPrice * taxRateValue); } displayUnitPrice = String(unitPrice).replace(/(\d)(?=(\d{3})+(?!\d))/g, '$1,'); displayTotalPrice = String(totalPrice).replace(/(\d)(?=(\d{3})+(?!\d))/g, '$1,'); displayTotalPriceTax = String(totalPriceTax).replace(/(\d)(?=(\d{3})+(?!\d))/g, '$1,'); $('#unit_price').text(displayUnitPrice); $('#total').text(displayTotalPrice); $('#total_tax').text(displayTotalPriceTax); $('#price').val(unitPrice); $('#total_value').val(totalPrice); $('#total_value_tax').val(totalPriceTax); $('#sipri').val('::'+unitPrice); } }); // リダイレクト $(function () { // 自動計算処理がONの場合 $('[name=suryo]').on('change', function () { reflectDeliveryPrivatePrice(); reflectDeliveryFarawayPrice(); }); reflectDeliveryPrivatePrice(); reflectDeliveryFarawayPrice(); $('#total').on('DOMSubtreeModified propertychange', function () { let total = $('#total').text(); $('#total_value').val(total); }); $('#total_tax').on('DOMSubtreeModified propertychange', function () { let total_tax = $('#total_tax').text(); $('#total_value_tax').val(total_tax); }); $('[name=suryo]').on('change', function () { suu = document.getElementById("suryo"); document.cookie = "suu=" + suu.value; }); // カート追加時のCookie削除 $(document).on('click', '#add_to_cart', function () { cookieClear(); }); }); // Cookie削除処理 function cookieClear() { document.cookie = "souhu_info=;"; document.cookie = "width=;"; document.cookie = "height=;"; document.cookie = "suu=;"; } function reflectTotalTaxPrice() { let totalTax = $('#total_value_tax').val(); totalTax = Number(totalTax.replace(/,/g, '')); totalTax = String(totalTax).replace(/(\d)(?=(\d{3})+(?!\d))/g, '$1,'); $('#total_tax').html(totalTax); } function reflectTotalPrice() { let total = $('#total_value').val(); total = Number(total.replace(/,/g, '')); total = String(total).replace(/(\d)(?=(\d{3})+(?!\d))/g, '$1,'); $('#total').html(total); } function reflectUnitPrice() { let unitPrice = $('#price').val(); unitPrice = Number(unitPrice.replace(/,/g, '')); unitPrice = String(unitPrice).replace(/(\d)(?=(\d{3})+(?!\d))/g, '$1,'); $('#unit_price').text(unitPrice); } function reflectFixedPrice() { let fixedPrice = $('#price').val(); $('#fixed_price').text(fixedPrice); // $('#base_price').val(Number(fixedPrice.replace(/,/g, ''))); } function reflectDeliveryPrivatePrice() { } function reflectDeliveryFarawayPrice() { } // 規格選択時のページ遷移処理 function redirect() { let redirectUrlArray = []; let redirectUrl = '?' + redirectUrlArray.join('&'); window.location.href = redirectUrl; }