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

Woo Variation for Cart

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/shayerdev/awcv-woo-cariation-plugin/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

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