WP Manifestindependent plugin directory
manifest / ecommerce / awcv-woo-cariation-plugin

Woo Variation for Cart

Simple plugin for WooCommerce Update Variations In Cart.

by Shayer Developer · github.com/shayerdev/awcv-woo-cariation-plugin · website

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/shayerdev/awcv-woo-cariation-plugin/archive/refs/heads/main.zip

Simple plugin for display and change variable for product in Cart.

Warning: Current plugin work only with basic [woocommerce-cart] shortcode. And replace some moments in layout.

Plugin actions

add_action("awcv_quantity_label") # Add custom label

Plugin filters

add_filter("awcv_quantity_label", function($label){
    return $label;
});

add_filter("awcv_product_variables_action_cancel_label", function($button_label){
    return $button_label;
});

add_filter("awcv_product_variables_action_update_label", function($button_label){
    return $button_label;
});

add_filter("awcv_button_edit_cart_variable", function($attr_btn){
    return array(
        "icon" => "",
        "class" => "edit-variable-product-cart-icon",
        "label" => __("Edit", AWCV_SLUG)
    );
});

Development guide

Composer guide

composer install # Install composer dependency
composer update  # Update dependency
composer build   # build app

CodeSniffer php

vendor/bin/phpcs --standard=PSR12 .  # Test code
vendor/bin/phpcbf --standard=PSR12 . # Autofix code

NPM guide

```bash npm install ``` ```bash npm update ```

Webpack guide

npm run watch
npm run build