Skip to content
This repository has been archived by the owner on Mar 25, 2023. It is now read-only.

Commit

Permalink
Allow 0% discount
Browse files Browse the repository at this point in the history
  • Loading branch information
Phiph committed Dec 11, 2017
1 parent 2cb8e8d commit 4850380
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion classes/client-fixed-quantity-price.php
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ function woofix_locate_template($template_name, $load)
/**
* Reutrn Variable product Dropdown options
* @return json
*/
**/
function get_dropdown_callback(){

$return_arr = array();
Expand Down
7 changes: 5 additions & 2 deletions classes/woofix-utility.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,11 @@ private static function constructQtyData($postId, $current_user_roles)
if (empty($qty_data['woofix_qty']))
continue;

if (empty($qty_data['woofix_disc']) && empty($qty_data['woofix_price']))
continue;

if (isset ($qty_data['woofix_disc']) ==false && empty($qty_data['woofix_price']))
continue;



$returnValue[] = $qty_data;
}
Expand Down

0 comments on commit 4850380

Please sign in to comment.