Order Bump Product
₹44.00 – ₹55.00
Buy this bundle and save 50%
- Cash on Delivery Available
- Free Shipping In India
- Get 50% off on First order
- COD Available
- Free Shipping In India
- Get 50% off on First order
Available offers
- Cash on delivery available
- Free shipping for orders above Rs.499
- 7 days easy returns
Description
add_action( ‘woocommerce_before_checkout_form’, ‘display_order_bump’ );
function display_order_bump() {
// Only display the order bump if the cart is not empty
if ( WC()->cart->is_empty() ) {
return;
}
// Get the ID of the product you want to use as the order bump
$order_bump_product_id = 123;
// Get the product object for the order bump product
$order_bump_product = wc_get_product( $order_bump_product_id );
// Display the order bump product in a checkbox form field
?>
<p class=”order-bump”>
<input type=”checkbox” name=”order_bump” value=”<?php echo esc_attr( $order_bump_product_id ); ?>” id=”order-bump-<?php echo esc_attr( $order_bump_product_id ); ?>” />
<label for=”order-bump-<?php echo esc_attr( $order_bump_product_id ); ?>”><?php echo esc_html( $order_bump_product->get_name() ); ?> – <?php echo wc_price( $order_bump_product->get_price() ); ?></label>
</p>
<?php
// Check if the order bump checkbox is checked
if ( isset( $_POST[‘order_bump’] ) ) {
$order_bump_product_id = intval( $_POST[‘order_bump’] );
$order_bump_product = wc_get_product( $order_bump_product_id );
// Add the order bump product to the order
$order = wc_get_order( $order_id );
$order->add_product( $order_bump_product, 1 );
$order->calculate_totals();
}
}
Additional information
Color | Black, Red |
---|
Q & A
Order Details
Est. Order Processing Time: 12-24 hours
Estimated Delivery Time: Metros: 1-4 days, Rest of India: 4-7 days
Country of Origin: India (and proud)
Sold By : Cdesk Solutions – 2154/Mohanwadi, Near Katargam fire station, Surat – 395004, Gujarat
support@cdesksolutions.com.
Return & Refund
We have a 7-day Easy return policy, which means you have 7 days after receiving your item to request a return.
To be eligible for a return, your item must be in the same condition that you received it, unworn or unused, with tags, and in its original packaging. We don’t provide return & refund on cash on delivery orders. You’ll also need the receipt or proof of purchase.
To start a return, you can contact us at support@cdesksolutions.com If your return is accepted, we’ll send you a return shipping label, as well as for instructions on how and where to send your package. Items sent back to us without first requesting a return will not be accepted.
You can always contact us for any return question at support@cdesksolutions.com