Advertisement
zumixosan

Dokan Save Wholesale

Jan 8th, 2020
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.81 KB | None | 0 0
  1. public function load_lot_discount_content( $post, $post_id ) {
  2.         $_is_lot_discount       = get_post_meta( $post_id, '_is_lot_discount', true );
  3.         $_lot_discount_quantity = get_post_meta( $post_id, '_lot_discount_quantity', true );
  4.         $_lot_discount_amount   = get_post_meta( $post_id, '_lot_discount_amount', true );
  5.         $is_enable_op_discount  = dokan_get_option( 'discount_edit', 'dokan_selling' );
  6.         $is_enable_op_discount  = $is_enable_op_discount ? $is_enable_op_discount : array();
  7.  
  8.          //edited code
  9.  
  10.         $_lot_discount_quantity_two = get_post_meta($post_id,'_lot_discount_quantity_two',true);
  11.         $_lot_discount_amount_two = get_post_meta($post_id,'_lot_discount_amount_two',true);
  12.  
  13.          $_lot_discount_quantity_three = get_post_meta($post_id,'_lot_discount_quantity_three',true);
  14.         $_lot_discount_amount_three = get_post_meta($post_id,'_lot_discount_amount_three',true);
  15.  
  16.         $_discount_status = get_post_meta($post_id,'_discount_status',true);
  17.  
  18.  
  19.         //end of edited code
  20.         dokan_get_template_part( 'products/product-lot-discount', '', array(
  21.             'pro'                    => true,
  22.             'post_id'                => $post_id,
  23.             '_is_lot_discount'       => $_is_lot_discount,
  24.            '_lot_discount_quantity' => $_lot_discount_quantity,
  25.             '_lot_discount_amount'   => $_lot_discount_amount,
  26.             '_lot_discount_quantity_two' => $_lot_discount_quantity_two,
  27.             '_lot_discount_amount_two' => $_lot_discount_amount_two,
  28.             '_lot_discount_quantity_three' => $_lot_discount_quantity_three,
  29.             '_lot_discount_amount_three' => $_lot_discount_amount_three,
  30.             '_discount_status'=> $_discount_status,
  31.             'is_enable_op_discount'  => $is_enable_op_discount,
  32.         ) );
  33.  
  34.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement