Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
N
new_excelso
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Prasetya Saputra
new_excelso
Commits
2c2c3d35
Commit
2c2c3d35
authored
Oct 13, 2020
by
Trisno
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tampilkan nama voucher dan minimum transaksi di shopping cart
parent
19de3b69
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
en.json
lib/en.json
+1
-1
id.json
lib/id.json
+1
-1
ShoppingCart.js
view/ShoppingCart.js
+2
-2
No files found.
lib/en.json
View file @
2c2c3d35
...
@@ -221,7 +221,7 @@
...
@@ -221,7 +221,7 @@
"alertDeleteItemTitle"
:
"Delete item"
,
"alertDeleteItemTitle"
:
"Delete item"
,
"alertDeleteItemContent"
:
"Are you sure want to delete item?"
,
"alertDeleteItemContent"
:
"Are you sure want to delete item?"
,
"alertSelectOrderFirst"
:
"Please choose your order first"
,
"alertSelectOrderFirst"
:
"Please choose your order first"
,
"alertBalanceNotEnoughtWithVooucher"
:
"
Rewards cannot be used, your minimum transaction is not enough
"
,
"alertBalanceNotEnoughtWithVooucher"
:
"
cannot be used, your order has not reached the required minimum transaction of Rp.
"
,
"alertSuccessTransaction"
:
"Transaction success"
,
"alertSuccessTransaction"
:
"Transaction success"
,
"updateVersion"
:
"Please update your Excelso App first!"
,
"updateVersion"
:
"Please update your Excelso App first!"
,
"upgradePremiumRespon"
:
"Your premium account upgrade request will require maximum 24 hours to process"
,
"upgradePremiumRespon"
:
"Your premium account upgrade request will require maximum 24 hours to process"
,
...
...
lib/id.json
View file @
2c2c3d35
...
@@ -221,7 +221,7 @@
...
@@ -221,7 +221,7 @@
"alertDeleteItemTitle"
:
"Hapus item"
,
"alertDeleteItemTitle"
:
"Hapus item"
,
"alertDeleteItemContent"
:
"Anda yakin ingin menghapus item?"
,
"alertDeleteItemContent"
:
"Anda yakin ingin menghapus item?"
,
"alertSelectOrderFirst"
:
"Silahkan pilih pesanan Anda terlebih dahulu"
,
"alertSelectOrderFirst"
:
"Silahkan pilih pesanan Anda terlebih dahulu"
,
"alertBalanceNotEnoughtWithVooucher"
:
"
Reward tidak bisa dipakai karena pesanan belum mencapai minimum transaksi yang dibutuhkan
"
,
"alertBalanceNotEnoughtWithVooucher"
:
"
tidak bisa dipakai karena pesanan belum mencapai minimum transaksi yang dibutuhkan yaitu Rp.
"
,
"alertSuccessTransaction"
:
"Transaksi Berhasil"
,
"alertSuccessTransaction"
:
"Transaksi Berhasil"
,
"updateVersion"
:
"Mohon update aplikasi Anda terlebih dahulu!"
,
"updateVersion"
:
"Mohon update aplikasi Anda terlebih dahulu!"
,
"upgradePremiumRespon"
:
"Permintaan upgrade akun anda ke Premium sudah kami terima dan akan diproses dalam 1x24 jam"
,
"upgradePremiumRespon"
:
"Permintaan upgrade akun anda ke Premium sudah kami terima dan akan diproses dalam 1x24 jam"
,
...
...
view/ShoppingCart.js
View file @
2c2c3d35
import
React
from
'react'
;
import
React
from
'react'
;
import
{
View
,
Text
,
TextInput
,
StyleSheet
,
Button
,
TouchableOpacity
,
ScrollView
,
FlatList
,
Image
,
Alert
,
ActivityIndicator
,
TouchableWithoutFeedback
}
from
'react-native'
;
import
{
View
,
Text
,
TextInput
,
StyleSheet
,
Button
,
TouchableOpacity
,
ScrollView
,
FlatList
,
Image
,
Alert
,
ActivityIndicator
}
from
'react-native'
;
import
{
connect
}
from
'react-redux'
import
{
connect
}
from
'react-redux'
import
CheckBox
from
'react-native-check-box'
import
CheckBox
from
'react-native-check-box'
import
{
Card
}
from
'react-native-shadow-cards'
import
{
Card
}
from
'react-native-shadow-cards'
...
@@ -617,7 +617,7 @@ class ShoppingCart extends React.Component {
...
@@ -617,7 +617,7 @@ class ShoppingCart extends React.Component {
Alert
.
alert
(
'Error'
,
i18n
.
t
(
'alertselectpayment'
))
Alert
.
alert
(
'Error'
,
i18n
.
t
(
'alertselectpayment'
))
}
else
if
(
this
.
props
.
value_voucher
!==
''
)
{
}
else
if
(
this
.
props
.
value_voucher
!==
''
)
{
if
(
parseInt
(
this
.
props
.
value_voucher
.
reward
.
min_transaction
)
>
parseInt
(
this
.
props
.
order_total
))
{
if
(
parseInt
(
this
.
props
.
value_voucher
.
reward
.
min_transaction
)
>
parseInt
(
this
.
props
.
order_total
))
{
Alert
.
alert
(
''
,
i18n
.
t
(
'alertBalanceNotEnoughtWithVooucher'
))
Alert
.
alert
(
''
,
this
.
props
.
value_voucher
.
reward
.
title
+
i18n
.
t
(
'alertBalanceNotEnoughtWithVooucher'
)
+
this
.
props
.
value_voucher
.
reward
.
min_transaction
.
toString
().
replace
(
/
(\d)(?=(\d\d\d)
+
(?!\d))
/g
,
"$1,"
))
}
else
{
}
else
{
this
.
props
.
navigation
.
navigate
(
'CONFIRM YOUR ORDER'
,
{
balanceUsed
:
this
.
state
.
balanceused
,
pointused
:
this
.
state
.
pointsused
})
this
.
props
.
navigation
.
navigate
(
'CONFIRM YOUR ORDER'
,
{
balanceUsed
:
this
.
state
.
balanceused
,
pointused
:
this
.
state
.
pointsused
})
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment