=== ParcelaShow – Installments and Cash Price Display for WooCommerce ===
Contributors: wooglobalapps
Tags: installments, parcelamento, pix, price, cash discount
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Show "12x of $20.83 interest-free", a full installment table and a discounted cash/Pix price on product, shop, cart and checkout pages.

== Description ==

In Brazil and across Latin America shoppers decide by the installment, not by the price: "12x de R$ 20,83 sem juros", "R$ 224,91 à vista no Pix", "12 meses sin intereses". **ParcelaShow** shows those offers everywhere in your WooCommerce store, using the same rules as your payment gateway.

**Features**

* **Best installment below the price**: "12x of $20.83 interest-free" on the product page, shop and category pages, related products and product blocks.
* **Cash / Pix price**: "$224.91 for cash payment (10% off)".
* **Full installment table** on the product page, inside an accessible toggle (native `details`/`summary`, keyboard and screen reader friendly).
* **Interest-free and with-interest installments**: choose how many installments are interest-free and a monthly compound interest rate for the others (Price / French amortization formula: `PMT = PV × i / (1 − (1 + i)^−n)`).
* **Minimum installment value**: options smaller than the minimum are not offered.
* **Variable products**: installments and table update instantly when the customer picks a variation.
* **Cart and checkout**: best installment and cash price for the order total, in the classic cart/checkout and in the Cart and Checkout blocks (updated live when the cart changes).
* **Block themes**: works with the Product Price block and the single product block template, without duplicated output.
* **Shortcode** `[parcelashow]` to place the offer anywhere.
* **Any currency and language**: amounts use your WooCommerce currency settings, and every text is a template with placeholders: `{count}` `{value}` `{total}` `{price}` `{discount}`.
* Compatible with HPOS and the Cart/Checkout blocks. Translation ready. No external requests, no tracking.

== Installation ==

1. Install and activate WooCommerce.
2. Upload the `parcelashow` folder to `/wp-content/plugins/` or install it from **Plugins → Add New**.
3. Activate ParcelaShow.
4. Go to **WooCommerce → ParcelaShow** and set the same conditions offered by your payment gateway: maximum installments, interest-free installments, monthly interest rate, minimum installment and cash discount.

== Frequently Asked Questions ==

= Does ParcelaShow change my prices or charge interest? =

No. ParcelaShow only **displays** information. It never changes product prices, cart totals, order totals or what the payment gateway charges. Configure the installment rules and the cash discount to match your payment gateway, and apply the real cash discount in your payment method or with a coupon.

= How is the interest calculated? =

Installments up to the "interest-free" limit split the price evenly. Above it, the fixed monthly installment of the Price system (Tabela Price) is used: `PMT = PV × i / (1 − (1 + i)^−n)`, where `i` is the monthly rate. Example: 1,000 in 12 installments at 1.99% per month = 94.50 per month.

= Which placeholders can I use? =

`{count}` number of installments, `{value}` installment amount, `{total}` total paid, `{price}` price (in the cash text: the discounted price) and `{discount}` discount percentage.

= How do I use the shortcode? =

`[parcelashow]` shows the summary and the table for the current product. Use `[parcelashow id="123"]` for another product, and `summary="no"` or `table="no"` to hide a part.

= Does it work with block themes? =

Yes. The offer is added to the product price HTML, so it appears in the Product Price block and in classic templates. On the single product template the installment table is added once, right after the main price.

= Where does it appear in the Cart and Checkout blocks? =

Below the Cart or Checkout block, and it follows the cart total as the customer changes quantities, shipping or coupons.

== Screenshots ==

1. Best installment and cash price on the product page.
2. Installment table.
3. Settings page with preview.

== Changelog ==

= 1.0.0 =
* First release.
