Skip to content

tombola/wc-image-alt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages