pixelstudio/pixel-woo-library

Plugin to simplify WooCommerce complicated features.

Installs: 9

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 2

Type:wordpress-plugin

8.5.0 2024-03-13 03:59 UTC

This package is not auto-updated.

Last update: 2024-11-20 06:58:39 UTC


README

Pixel WooCommerce Library Logo

This is a WooCommerce helper plugin to be used alongside: Pixel Theme and Pixel Library. We don't recommend using this with other setup.

Last tested working on:

  • WordPress 6.2
  • WooCommerce 7.6.0
  • PHP 7.3.x

This plugin is originally named Edje WC Library, we are forking it to match the versioning with WooCommerce's version.

DEMO

Main Features

1. Variation UI

The original variation interface is really lacking. We did a slight rearrangement and styling changes to make it much easier to use.

2. Widgets

Our Pixel Theme uses widget for Header and Footer (we like it the old way), so this plugin adds two widgets:

  • Cart - The revamped Cart widget with better markup for styling.
  • MyAccount - Button to login when signed-out and to MyAccount when signed-in.

Other Changes

These are the list of modifications by this plugin:

  • [Alert] Changed the button in alert box when adding new item from "View Cart" to "Go to Checkout".
  • [Shop] Changed the "On Sale" label into "X% Off".
  • [Shop] Added "Out of Stock" label when the product is out of stock.
  • [Shop] Changed the thumbnail size into Medium.
  • [Shop] Removed all the custom WooCommerce image sizings.
  • [Single Product] Added (-) and (+) button to the Quantity input.
  • [Single Product] Changed the Review template so it is easier to style.
  • [Checkout] Added multiple wrapper to make styling easier.
  • [Checkout] Added thumbnail to the Order Review table.
  • [Checkout] Changed the order of billing fields. Email is first so it has higher chance to be filled before being abandoned, so we can contact them. (Only useful for Cart Abandon plugin)
  • [Checkout] Added legal message to Privacy Policy below the Shipping fields.
  • [Thank You] Added multiple wrapper to make styling easier.
  • [Register] Added most of the billing fields like Address, Country, Postcode, and more to Register form.
  • [Register] Added a toggle button to switch between Login and Register form.

Hooks

[Widget] MyAccount

apply_filters('h_myaccount_button_args', $args)
  • $args (array)

    • label (string) - Label when logged out.
      Default: what's provided in the setting.

    • label_logged_in (string) - Label when logged in.
      Default: what's provided in the setting.

    • icon (string) - raw SVG markup of the icon.

[Widget] Cart

apply_filters('h_cart_button_args', $args)
  • $args (array)

    • label (string) - the button label. Default: <span>Cart</span>

    • icon (string) - raw SVG markup of the icon.

[Widget] Disabled Widgets

apply_filters('h_disabled_woocommerce_widgets', $list)
  • $list (array) - List of widget to be disabled.

    Default:

    [
      'WC_Widget_Product_Tag_Cloud',
      'WC_Widget_Product_Categories'
      'WC_Widget_Top_Rated_Products',
      'WC_Widget_Recent_Reviews',
      'WC_Widget_Rating_Filter',
      'WC_Widget_Recently_Viewed',
    ]

[Cart Page] Footnote below Checkout Button

apply_filters('h_cart_total_footnote', $text);
  • $text (string) - Default: "Shipping cost, taxes, and payment method will be shown at checkout."

[Product] On Sale Label

apply_filters('h_product_onsale_label', $text, $percentage);
  • $text (string) - The label that replaced "On Sale".
    Default: %s%% Off