duson-price-calculation

Compute Duson print item subtotals with VAT via PHP and MySQL.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/songyoungsoo/duson-print-system --skill duson-price-calculation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: duson-price-calculation
Source: https://github.com/songyoungsoo/duson-print-system/tree/main/.claude/00_Legacy_Archive/skills/duson-price-calculation
Command: npx skills add https://github.com/songyoungsoo/duson-print-system --skill duson-price-calculation

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill consolidates the complex task of pricing multiple Duson print items by combining base costs, design fees, quantity-based adjustments, and optional extras into a single, VAT-aware total.

Core Features & Use Cases

  • Per-item price sourcing from the database and PHP APIs.
  • Unified subtotal with VAT calculation across nine products: inserted, namecard, envelope, sticker, msticker, cadarok, littleprint, merchandisebond, ncrflambeau.
  • Use cases include generating an order total to feed the shopping basket or API responses for UI display.

Quick Start

Use the duson-price-calculation skill to compute a sample total for a given set of product attributes and review the JSON output for the basket integration.

Frequently Asked Questions about duson-price-calculation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I calculate printing prices for multiple products using PHP and MySQL?

Printing price calculation combines base costs, design fees, and option adjustments from MySQL data sources via PHP APIs, generating a unified subtotal with VAT included for each product item.

How does AJAX calculate order totals for a shopping basket integration?

AJAX price calculation sends product attributes from frontend JavaScript to PHP APIs, which query MySQL for base prices and return JSON results containing the subtotal, VAT, and final total for basket display.

Can I compute VAT-aware subtotals for different print items in one API response?

VAT-aware subtotal computation supports nine print products including namecards, stickers, and envelopes, consolidating per-item base prices, design fees, and quantity adjustments into a single JSON API response.

What's the best way to handle price rules for quantity-based printing options?

Quantity-based price rules are handled by PHP logic that adjusts base prices and design fees according to product-specific parameters, applying VAT to generate the final total returned through AJAX JSON responses.

Does this price calculation approach work with frontend JavaScript for real-time updates?

Frontend JavaScript AJAX calls communicate with PHP APIs to deliver real-time JSON price calculation results, enabling dynamic basket integration across all nine supported print product types.

Why does my printing subtotal not include VAT in the API JSON response?

VAT inclusion requires the PHP calculation logic to apply tax rules after composing base prices, design fees, and option costs; if VAT is missing, verify the MySQL data source contains the correct tax rates for each print item.