Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function load_lot_discount_content( $post, $post_id ) {
- $_is_lot_discount = get_post_meta( $post_id, '_is_lot_discount', true );
- $_lot_discount_quantity = get_post_meta( $post_id, '_lot_discount_quantity', true );
- $_lot_discount_amount = get_post_meta( $post_id, '_lot_discount_amount', true );
- $is_enable_op_discount = dokan_get_option( 'discount_edit', 'dokan_selling' );
- $is_enable_op_discount = $is_enable_op_discount ? $is_enable_op_discount : array();
- //edited code
- $_lot_discount_quantity_two = get_post_meta($post_id,'_lot_discount_quantity_two',true);
- $_lot_discount_amount_two = get_post_meta($post_id,'_lot_discount_amount_two',true);
- $_lot_discount_quantity_three = get_post_meta($post_id,'_lot_discount_quantity_three',true);
- $_lot_discount_amount_three = get_post_meta($post_id,'_lot_discount_amount_three',true);
- $_discount_status = get_post_meta($post_id,'_discount_status',true);
- //end of edited code
- dokan_get_template_part( 'products/product-lot-discount', '', array(
- 'pro' => true,
- 'post_id' => $post_id,
- '_is_lot_discount' => $_is_lot_discount,
- '_lot_discount_quantity' => $_lot_discount_quantity,
- '_lot_discount_amount' => $_lot_discount_amount,
- '_lot_discount_quantity_two' => $_lot_discount_quantity_two,
- '_lot_discount_amount_two' => $_lot_discount_amount_two,
- '_lot_discount_quantity_three' => $_lot_discount_quantity_three,
- '_lot_discount_amount_three' => $_lot_discount_amount_three,
- '_discount_status'=> $_discount_status,
- 'is_enable_op_discount' => $is_enable_op_discount,
- ) );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement