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
f0bd5a5b
Commit
f0bd5a5b
authored
Aug 22, 2017
by
Nahla Shiri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merge variable et simple
parent
9c0b580b
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
11 deletions
+10
-11
fiche-000001.pdf
fiches-techniques/fiche-000001.pdf
+0
-0
fiche-000002.pdf
fiches-techniques/fiche-000002.pdf
+0
-0
test.pdf
fiches-techniques/test.pdf
+0
-0
simple.php
...mes/nap/woocommerce/single-product/add-to-cart/simple.php
+5
-5
variable.php
...s/nap/woocommerce/single-product/add-to-cart/variable.php
+5
-6
No files found.
fiches-techniques/fiche-000001.pdf
deleted
100644 → 0
View file @
9c0b580b
File deleted
fiches-techniques/fiche-000002.pdf
deleted
100644 → 0
View file @
9c0b580b
File deleted
fiches-techniques/test.pdf
deleted
100644 → 0
View file @
9c0b580b
File deleted
wp-content/themes/nap/woocommerce/single-product/add-to-cart/simple.php
View file @
f0bd5a5b
...
@@ -55,12 +55,12 @@ do_action('woocommerce_before_add_to_cart_form');
...
@@ -55,12 +55,12 @@ do_action('woocommerce_before_add_to_cart_form');
<?php
<?php
if
(
get_field
(
'images_ambiance'
,
'product_cat_'
.
$sub_cat
[
0
]
->
term_id
))
:
if
(
!
empty
(
$ambiance_product
))
{
if
(
!
empty
(
$ambiance_product
))
{
$ambiance
=
$ambiance_product
;
$ambiance
=
$ambiance_product
;
}
else
{
}
else
{
$ambiance
=
array
();
$ambiance
=
array
();
}
}
if
(
get_field
(
'images_ambiance'
,
'product_cat_'
.
$sub_cat
[
0
]
->
term_id
))
:
while
(
has_sub_field
(
'images_ambiance'
,
'product_cat_'
.
$sub_cat
[
0
]
->
term_id
))
:
while
(
has_sub_field
(
'images_ambiance'
,
'product_cat_'
.
$sub_cat
[
0
]
->
term_id
))
:
$image_amb
=
get_sub_field
(
'img_ab'
);
$image_amb
=
get_sub_field
(
'img_ab'
);
$ambiance
[]
=
$image_amb
;
$ambiance
[]
=
$image_amb
;
...
...
wp-content/themes/nap/woocommerce/single-product/add-to-cart/variable.php
View file @
f0bd5a5b
...
@@ -64,7 +64,7 @@ if (!function_exists('print_attribute_radio')) {
...
@@ -64,7 +64,7 @@ if (!function_exists('print_attribute_radio')) {
$filtered_label
=
apply_filters
(
'woocommerce_variation_option_name'
,
$label
);
$filtered_label
=
apply_filters
(
'woocommerce_variation_option_name'
,
$label
);
printf
(
'<li class="format-list selected"><input type="radio" name="%1$s" value="%2$s" id="%3$s" %4$s>
printf
(
'<li class="format-list selected"><input type="radio" name="%1$s" value="%2$s" id="%3$s" %4$s
checked
>
<label class="format-label" for="%3$s">'
.
$format_img
.
'</label>
<label class="format-label" for="%3$s">'
.
$format_img
.
'</label>
<div class="format-desc">'
.
$label
.
'</span>
<div class="format-desc">'
.
$label
.
'</span>
...
@@ -111,15 +111,14 @@ do_action('woocommerce_before_add_to_cart_form');
...
@@ -111,15 +111,14 @@ do_action('woocommerce_before_add_to_cart_form');
<?php
<?php
endforeach
;
endforeach
;
?>
<?php
if
(
get_field
(
'images_ambiance'
,
'product_cat_'
.
$sub_cat
[
0
]
->
term_id
))
:
if
(
!
empty
(
$ambiance_product
))
{
if
(
!
empty
(
$ambiance_product
))
{
$ambiance
=
$ambiance_product
;
$ambiance
=
$ambiance_product
;
}
else
{
}
else
{
$ambiance
=
array
();
$ambiance
=
array
();
}
}
if
(
get_field
(
'images_ambiance'
,
'product_cat_'
.
$sub_cat
[
0
]
->
term_id
))
:
while
(
has_sub_field
(
'images_ambiance'
,
'product_cat_'
.
$sub_cat
[
0
]
->
term_id
))
:
while
(
has_sub_field
(
'images_ambiance'
,
'product_cat_'
.
$sub_cat
[
0
]
->
term_id
))
:
$image_amb
=
get_sub_field
(
'img_ab'
);
$image_amb
=
get_sub_field
(
'img_ab'
);
$ambiance
[]
=
$image_amb
;
$ambiance
[]
=
$image_amb
;
...
...
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