Skip to content

Commit

Permalink
Merge pull request #140 from w3bdesign/develop
Browse files Browse the repository at this point in the history
Fix Scritinizer issues
  • Loading branch information
w3bdesign authored Mar 6, 2021
2 parents 85c95f6 + af5bc65 commit 65d26c3
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions classes/class-send-products.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,8 @@ function () {
/**
* Get sale price or regular price based on product type
*
* @param mixed $product Product to check
* @return int $sale_price Sale price
* @return int $regular_price Regular price
* @param mixed $product Product to check
* @return array ['sale_price' => $sale_price,'regular_price' => $regular_price] Array with regular price and sale price
*/
public static function get_product_type_price($product)
{
Expand Down Expand Up @@ -189,8 +188,6 @@ public static function send_products_to_algolia($id = '')
}
$records = array();
$record = array();
$sale_price = 0;
$regular_price = 0;

foreach ($products as $product) {
/**
Expand Down

0 comments on commit 65d26c3

Please sign in to comment.