Wordpress

How to create a direct checkout link for the product on woocommerce wordpress website

To create a direct checkout link for the product you provided on the website “https://www.hlomart.com“, you will first need to find the product ID. Unfortunately, I don’t have direct access to external websites or databases, so I can’t fetch the product ID for you. However, you can follow the steps I provided earlier to find […]

How to create a direct checkout link for the product on woocommerce wordpress website Read More »

How to Creating a “Pop-up” button in WordPress involves adding HTML, CSS, and possibly JavaScript to your WordPress site Without Plugins

Create a new page or post in WordPress, and switch to the Text editor. Add the following HTML code: <button id=”popup-button”>Start Now</button> <div id=”popup-modal” class=”popup”> <div class=”popup-content”> <span class=”close” id=”popup-close”>&times;</span> <p>Click on the buttons below:</p> <a href=”https://isansar.net/buttom1″ id=”popup-sub-button1″ class=”popup-sub-button”>Whatsapp</a> <a href=”https://isansar.net/buttom2″ id=”popup-sub-button2″ class=”popup-sub-button”>Messanger</a> <a href=”https://isansar.net/buttom3″ id=”popup-sub-button3″ class=”popup-sub-button”>Email</a> </div> </div>   2. Add the CSS styles

How to Creating a “Pop-up” button in WordPress involves adding HTML, CSS, and possibly JavaScript to your WordPress site Without Plugins Read More »

Share Button or Copy link Buttom on WordPress Website without plugins

go to Plugin Edit > woocommerce/templates/single-product/meta.php   Past this code  on last of the code  <div class=”product-copy-link”> <input type=”text” value=”<?php the_permalink(); ?>” id=”product-link” readonly> <button onclick=”copyProductLink()” style=”background-color: green; borderz; color: white;”>Share Link</button> </div> <script> function copyProductLink() { var copyText = document.getElementById(“product-link”); copyText.select(); document.execCommand(“copy”); alert(“Copied : Product link”); } </script>  

Share Button or Copy link Buttom on WordPress Website without plugins Read More »

How to redirect 404 error page to homepage in WordPress without Plugin

If you want to add some additional code to the above solution, you can use the following code snippet in your WordPress functions.php file. Redirect to Home Page // Redirect 404 Page into Home Page function redirect_404_to_homepage() { if (is_404()) { wp_redirect(home_url(), 301); exit(); } } add_action(‘template_redirect’, ‘redirect_404_to_homepage’); This code checks if the current page

How to redirect 404 error page to homepage in WordPress without Plugin Read More »

Add Thumbnail or product image and Quantity inpute on Checkout Page on woocommerce website without plugins

Add Thumnale on Checkout Page on woocommerces website   // Add product image + remove on checkout page add_filter( ‘woocommerce_checkout_cart_item_quantity’, ‘add_remove_button_and_quantity_and_price_and_image_to_cart_table’, 10, 3 ); function add_remove_button_and_quantity_and_price_and_image_to_cart_table( $quantity_html, $cart_item, $cart_item_key ) { if ( is_checkout() ) { $product = $cart_item[‘data’]; $thumbnail = $product->get_image(array( 35, 35 )); $quantity_html = ‘<td class=”product-thumbnail”>’ . $thumbnail . ‘</td>’; $quantity_html .=

Add Thumbnail or product image and Quantity inpute on Checkout Page on woocommerce website without plugins Read More »