Skip to content

Instantly share code, notes, and snippets.

View wooxperto's full-sized avatar

WooXperto wooxperto

View GitHub Profile
@wooxperto
wooxperto / add-to-cart-quantity-suffix-at-single-product-page.php
Created September 4, 2023 13:39
Add to Cart Quantity Suffix at Single Product page on WooCommerce
<?php
/**
* @snippet Add suffix after quantity input field at single proudct page | WooCommerce
* @author WooXperto
* @date 04.09.2023
*/
if( ! function_exists("wooXperto_add_to_cart_quantity_input_suffix")){
@wooxperto
wooxperto / remove-cross-sell-product-from-cart.php
Created August 17, 2023 12:24
Remove cross sell product from WooCommerce Cart page.
<?php
/**
* @snippet Remove Cross-sell product from Cart page | WooCommerce
* @author WooXperto
* @date 17.08.2023
*/
function wooXperto_remove_cross_sell_product_cart_page(){
@wooxperto
wooxperto / display-stock-availability-on-shop.php
Last active August 17, 2023 10:20
Display stock availablitiy on shop page.
<?php
/**
* @snippet Display Stock Availability on Shop page | WooCommerce
* @author WooXperto
* @date 17.08.2023
*/
function wooXperto_show_stock_shop() {
global $product;
@wooxperto
wooxperto / remove-signle-product-tabs.php
Created August 17, 2023 08:57
To using this snippet single product tabs will remove.
<?php
/**
* @snippet Remove product tabs| WooCommerce
* @author WooXperto
* @date 17.08.2023
*/
// Remove product tabs from single product page on WooCommerce
@wooxperto
wooxperto / display-related-products-in-tab.php
Last active August 17, 2023 07:58
Display related products in a tab at single product page
@wooxperto
wooxperto / remove-sidebar-from-storefront-theme.php
Created August 17, 2023 06:20
Remove sidebar from Storefront theme
<?php
/**
* @snippet Remove sidebar - Storefront theme | WooCommerce
* @author WooXperto
* @date 17.08.2023
*/
if( ! function_exists("wooXperto_remove_storefront_sidebar")){
@wooxperto
wooxperto / remove-woocommerce-sidebar.php
Created August 17, 2023 05:49
Remove WooCommerce sidebar from single product page.
<?php
/**
* @snippet Remove sidebar from single product page | WooCommerce
* @author WooXperto
* @date 17.08.2023
*/
if( !function_exists("wooXperto_remove_sidebar_sigle_proudct_page")){
function wooXperto_remove_sidebar_sigle_proudct_page(){
@wooxperto
wooxperto / hide-view-cart-button-from-mini-cart.php
Created August 16, 2023 12:45
Hide View Cart button form Mini-Cart on WooCommerce
<?php
/**
* @snippet Hide View Cart button from Mini-cart | WooCommerce
* @author WooXperto
* @date 16.08.2023
*/
add_action( 'woocommerce_widget_shopping_cart_buttons', 'wooXperto_remove_view_cart_minicart', 1 );
@wooxperto
wooxperto / hide-price-and-add-to-cart-button.php
Created August 16, 2023 10:52
Hide price and add to cart button on the Shop and the single product page for the guest users.
<?php
/**
* @snippet Hide price& Add to cart button on shop and single product page | WooCommerce
* @author WooXperto
* @date 16.08.2023
*/
if( !function_exists("wooXperto_hide_price_addcart_not_logged_in")){
@wooxperto
wooxperto / change-related-product-number.php
Created August 16, 2023 06:47
How to change related product easily in WooCommerce on single product page.