Deskripsyon
Isinara na ang plugin na ito mula noong Setyembre 22, 2025 at hindi magagamit para i-download. Dahilan: Paglabag sa Lisensya/Trademark.
Mga Review
Nobyembre 2, 2018
its cool
Setyembre 5, 2017
1 na reply
It does the job just fine but if you don’t want it showing up in the related products there are some bugs that need fixing.
Nobyembre 19, 2016
im leaving a 3 star review as its a good plugin just not what i was looking for.
for anyone else having the same issue just over right the code in quantity-table.php with the following code.
<?php
/*
Plugin Name: Woocommerce Quantity Table
Plugin URI: https://riotweb.nl
Description: Extension for Dynamic Pricing plugin that shows a table with price and quantity.
Author: RiotWeb
Version: 1.0
Author URI: https://riotweb.nl/plugins
License: GPLv2
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
error_reporting(0);
/**
* Check if WooCommerce is active
**/
if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) {
add_filter( 'woocommerce_get_price_html', 'omniwp_credit_dollars_price', 10, 2 );
function omniwp_credit_dollars_price( $price, $product ) {
$pricing_rule_sets = get_post_meta( $product->post->ID, '_pricing_rules', true );
$pricing_rule_sets = array_shift( $pricing_rule_sets );
if ( $pricing_rule_sets
&& is_array( $pricing_rule_sets )
&& sizeof( $pricing_rule_sets ) ) {
ob_start();
if (is_product()){?>
<span class="savemoney">Save more the more you buy!</span>
<table width="80%">
<thead>
<tr>
<th><?php _e('Quantity', 'omniwp_core_functionality' ) ?></th>
<th>Discount</th>
<th>Price</th>
</tr>
</thead>
<?php
foreach ( $pricing_rule_sets['rules'] as $key => $value ) {
if ( '*' == $pricing_rule_sets['rules'][$key]['to'] ) {
} else {
$x++;
$class = ($x%2 == 0)? 'tabledark': 'lablelight';
echo "<tr align='center' valign='middle' class='$class'>";?>
<td><?php printf( __( '%s – %s', 'omniwp_core_functionality' ) , $pricing_rule_sets['rules'][$key]['from'], $pricing_rule_sets['rules'][$key]['to'] ) ?></td>
<td><?php echo woocommerce_price( $pricing_rule_sets['rules'][$key]['amount'] ); ?></td>
<td><?php $newdealprice = $product->get_price() – $pricing_rule_sets['rules'][$key]['amount']; echo $newdealprice;?></td>
</tr >
<?php
}
}
?>
</table>
<style>
.tabledark {
background-color:#eae5e5;
}
.lablelight
{
background-color:#f9f2f2;
}
.savemoney{
font-size:14px;
font-weight:bold;
}
</style>
<?php
$price = ob_get_clean();
}
return $price;
}
}
add_action( 'plugins_loaded', 'woocommerce_quantity_table_textdomain' );}
Oktubre 3, 2016
1 na reply
The table shows up everywhere X_X
On related products, upsells/cross-sells, catalog pages, etc..
Looks really messy.
Mga Contributor at Developer
Ang “Woocommerce Quantity Table” ay open source software. Ang mga sumusunod na tao ay nag-ambag sa plugin na ito.
Mga ContributorIsalin ang “Woocommerce Quantity Table” sa iyong wika.
Interesado sa development?
Tingnan ang code, i-check ang SVN repository, o mag-subscribe sa development log sa pamamagitan ng RSS.