Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
uib-ub
Spesialsamlingene
Marcus Components
Commits
2ae1011c
Commit
2ae1011c
authored
Jun 15, 2021
by
Oyvind.Gjesdal
Browse files
replace type publikasjon med fil
parent
9ce207ef
Changes
2
Hide whitespace changes
Inline
Side-by-side
includes/simplecart.inc
View file @
2ae1011c
...
...
@@ -27,7 +27,7 @@
<option
value=
"50x60"
>
Trykk 50x60 - 450kr
</option>
<option
value=
"60x70"
>
Trykk 60x70 - 550kr
</option>
<option
value=
"70x100"
>
Trykk 70x100 - 650kr
</option>
<option
value=
"
publikasjon
"
>
Høyoppløselig fil - 500kr
</option>
<option
value=
"
fil
"
>
Høyoppløselig fil - 500kr
</option>
</select>
</div>
</div>
...
...
static/js/simplecart/simpleCart-custom.js
View file @
2ae1011c
...
...
@@ -59,7 +59,7 @@
var
pricewithtax
=
650
*
1.25
;
$
(
'
.item_price
'
).
replaceWith
(
"
<span class=
\"
item_price
\"
><strong>
"
+
pricewithtax
+
"
kr pr. stk</strong><br>inkl. mva.</span>
"
);
}
if
(
$
(
'
.item_type
'
).
val
()
===
'
publikasjon
'
)
{
if
(
$
(
'
.item_type
'
).
val
()
===
'
fil
'
)
{
var
pricewithtax
=
500
*
1.25
;
$
(
'
.item_price
'
).
replaceWith
(
"
<span class=
\"
item_price
\"
><strong>
"
+
pricewithtax
+
"
kr pr. stk</strong><br>inkl. mva.</span>
"
);
}
...
...
@@ -90,7 +90,7 @@
if
(
item
.
get
(
'
type
'
)
===
'
70x100
'
){
item
.
price
(
650
);
}
if
(
item
.
get
(
'
type
'
)
===
'
publikasjon
'
){
if
(
item
.
get
(
'
type
'
)
===
'
fil
'
){
item
.
price
(
500
);
}
if
(
item
.
get
(
'
type
'
)
===
'
error
'
)
{
...
...
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