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
8b1c16df
Commit
8b1c16df
authored
Jul 19, 2017
by
Nahla Shiri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
page variable
parent
bdeda2b7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
315 additions
and
325 deletions
+315
-325
functions.php
wp-content/themes/nap/functions.php
+86
-93
archive-product.php
wp-content/themes/nap/woocommerce/archive-product.php
+3
-1
single-product.php
wp-content/themes/nap/woocommerce/single-product.php
+3
-226
variable.php
...s/nap/woocommerce/single-product/add-to-cart/variable.php
+223
-5
No files found.
wp-content/themes/nap/functions.php
View file @
8b1c16df
This diff is collapsed.
Click to expand it.
wp-content/themes/nap/woocommerce/archive-product.php
View file @
8b1c16df
...
@@ -132,9 +132,11 @@ $child_category = get_terms('product_cat', array('parent'=>$cateID, 'child_of' =
...
@@ -132,9 +132,11 @@ $child_category = get_terms('product_cat', array('parent'=>$cateID, 'child_of' =
$args
=
array
(
'post_type'
=>
'product'
,
'stock'
=>
1
,
'posts_per_page'
=>
-
1
,
'product_cat'
=>
$value
->
name
);
$args
=
array
(
'post_type'
=>
'product'
,
'stock'
=>
1
,
'posts_per_page'
=>
-
1
,
'product_cat'
=>
$value
->
name
);
$naps_posts
=
new
WP_Query
(
$args
);
$naps_posts
=
new
WP_Query
(
$args
);
$options
=
array
();
$options
=
array
();
$options
[
'size'
]
=
'small'
;
while
(
$naps_posts
->
have_posts
())
:
$naps_posts
->
the_post
();
while
(
$naps_posts
->
have_posts
())
:
$naps_posts
->
the_post
();
$id
=
get_the_ID
();
$id
=
get_the_ID
();
$options
[
'size'
]
=
(
get_field
(
'produit_affichage'
,
$id
))
?
get_field
(
'produit_affichage'
,
$id
)
:
'small'
;
$args
=
array
(
$args
=
array
(
'post_type'
=>
'product_variation'
,
'post_type'
=>
'product_variation'
,
'post_status'
=>
array
(
'private'
,
'publish'
),
'post_status'
=>
array
(
'private'
,
'publish'
),
...
...
wp-content/themes/nap/woocommerce/single-product.php
View file @
8b1c16df
This diff is collapsed.
Click to expand it.
wp-content/themes/nap/woocommerce/single-product/add-to-cart/variable.php
View file @
8b1c16df
This diff is collapsed.
Click to expand it.
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