Skip to content

Latest commit

 

History

History
61 lines (37 loc) · 1.42 KB

README.md

File metadata and controls

61 lines (37 loc) · 1.42 KB

wc-image-alt

PyPI - Version PyPI - Python Version

Bulk populate WooCommerce product image alt text using the WooCommerce product title (where specific alt text has not been defined).

DISCLAIMER: If you would like to use this utility, please do test on a local/staging environment first, and check that product images are affected as you itend.


Table of Contents

Installation

pip install wc-image-alt

or

pipx install wc-image-alt

Usage

First copy .env.example to env and fill in your woocommerce REST API credentials.

Either load this using dotenv, or source the file (source .env).

Export a CSV of product images

wc-image-alt export-csv

Import alt text into WooCommerce

Dry run:

wc-image-alt import-csv

Update the product image alt text from the (exported/modified) CSV:

wc-image-alt -w import-csv

License

wc-image-alt is distributed under the terms of the MIT license.