# WP-SUBS

## Integration of Subscribility with WordPress and Woocommerce

See full documentation:
[Release 1](https://docs.google.com/document/d/1kOcorMqAPXH6b533y2ybN_MczkspUVIQjmpCHbxqvJQ/)

## Structure and important functions

lib/class-wp99234-woocommerce.php
filter_get_price - Look up the price of a product in the cart against the current user

lib/class-wp99234-products.php
import_product - Import a single product

### To add a new field from the response to be stored against a product
1. Add new field to product_meta_map in lib/class-wp99234-company.php
2. Add new field to export_product in lib/class-wp99234-company.php
3. Trigger a re-import of all products for the company so the new field is populated