Browse
For agents
About
Tiered Pricing Table for WooCommerce
/
1.0
Tiered Pricing Table for WooCommerce
v1.0
Switch version
7.1.7
7.1.5
7.1.4
7.1.1
6.5.0
6.4.0
6.1.0
trunk
1.0
1.1
2.0
2.0.1
2.0.2
2.1
2.1.1
2.1.2
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.3.1
2.3.2
2.3.3
2.3.4
All 90 releases
Overview
Code
tier-pricing-table
/
src
/
functions.php
functions.php
in Tiered Pricing Table for WooCommerce 1.0, at src/functions.php
19 lines
407 B
Find file
t
No matching file
Up and down to move
Enter to open
Esc to close
Raw
Download
Zip
View raw
1
<
?
php
2
3
function
render_price_quantity_table
(
)
{
4
global
$
post
;
5
6
if
(
!
$
post
)
{
7
return
false
;
8
}
9
10
$
product
=
wc_get_product
(
$
post
->
ID
)
;
11
12
if
(
$
product
->
is_type
(
'
simple
'
)
)
{
13
$
GLOBALS
[
'
price_table_frontend
'
]
->
_renderPriceTable
(
)
;
14
}
elseif
(
$
product
->
is_type
(
'
variable
'
)
)
{
15
echo
'
<div data-variation-price-rules-table></div>
'
;
16
}
17
18
return
false
;
19
}