Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
N
NAP-wordpress
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Marwa Sfari
NAP-wordpress
Commits
4b13b11c
Commit
4b13b11c
authored
Aug 30, 2017
by
Nahla Shiri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
correction prix
parent
9562ff6a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
nap.js
wp-content/themes/nap/assets/js/nap.js
+8
-6
variable.php
...s/nap/woocommerce/single-product/add-to-cart/variable.php
+2
-1
No files found.
wp-content/themes/nap/assets/js/nap.js
View file @
4b13b11c
jQuery
(
document
).
ready
(
function
()
{
jQuery
(
document
).
on
(
'click'
,
".format-list"
,
function
()
{
var
format
=
jQuery
(
this
).
find
(
'.format-desc'
).
text
();
...
...
@@ -25,15 +25,17 @@ jQuery(document).ready(function() {
});
jQuery
(
'li.format-list:first-child input'
).
attr
(
'checked'
,
true
);
jQuery
(
document
).
on
(
'change'
,
'.color-list input,.format-list input '
,
function
()
{
var
varID
=
jQuery
(
'input[name="variation_id"]'
).
val
();
// alert(varID);
if
(
varID
!=
0
)
{
var
price
=
jQuery
(
'.woocommerce-variation-price .woocommerce-Price-amount'
).
text
();
var
price
=
jQuery
(
'.woocommerce-Price-amount'
).
text
();
// alert(price);
var
pq
=
jQuery
(
'.woocommerce-variation-description'
).
text
();
jQuery
(
'.price .crete'
).
text
(
price
);
jQuery
(
'.price .crete'
).
text
(
price
+
" ht"
);
jQuery
(
'.pq'
).
text
(
pq
);
}
...
...
@@ -115,7 +117,7 @@ jQuery(document).ready(function() {
*/
});
jQuery
(
window
).
on
(
'load'
,
function
()
{
jQuery
(
'.filter-bloc '
).
each
(
function
()
{
...
...
@@ -147,4 +149,4 @@ jQuery(document).ready(function() {
jQuery
.
urlParam
=
function
(
name
)
{
var
results
=
new
RegExp
(
'[
\
?&]'
+
name
+
'=([^&#]*)'
).
exec
(
window
.
location
.
href
);
return
results
[
1
]
||
0
;
}
\ No newline at end of file
}
wp-content/themes/nap/woocommerce/single-product/add-to-cart/variable.php
View file @
4b13b11c
...
...
@@ -282,7 +282,8 @@ do_action('woocommerce_before_add_to_cart_form');
<p
class=
"pq"
>
<?php
echo
nap_variable_meta
(
$current_variationID
,
'variation_description'
);
?>
</p>
</div>
<div
class=
"price"
>
<span
class=
"crete"
>
<?php
echo
nap_variable_meta
(
$current_variationID
,
'price'
);
?>
€ ht
</span>
<span
class=
"crete"
>
<?php
echo
nap_variable_meta
(
$current_variationID
,
'price'
);
?>
€ ht
</span>
<div
class=
"notice"
>
( prix public conseillé )
</div>
<div
class=
"font-small"
>
<div
class=
"product_meta"
>
...
...
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