Skip to content

fix: missing tax table fatals listings/product pages (#2) - #4

Open
xre217 wants to merge 1 commit into
dogeorg:mainfrom
xre217:fix/tax-table-schema
Open

fix: missing tax table fatals listings/product pages (#2)#4
xre217 wants to merge 1 commit into
dogeorg:mainfrom
xre217:fix/tax-table-schema

Conversation

@xre217

@xre217 xre217 commented Jul 11, 2026

Copy link
Copy Markdown

Problem (#2)

shibeship.sql never created a tax table, but product/listings code queries SELECT … FROM tax WHERE category = …. HTML-commenting the tax UI in listings.php did not stop PHP from running the query → PDO fatal on manage listings.

Fix

  1. Add tax table + default zero-rate seed rows to shibeship.sql
  2. DogeBridge::GetTaxRow() — safe lookup, zero rate if table/row missing
  3. Wire GetTaxRow into product listing includes
  4. Re-enable tax category select with try/catch (no HTML-comment landmine)

DOGE

Happy to keep fixing ShibeShip/GigaWallet merchant rails. Tips/contract: DTRJECKXfxgnSzGbt7TYRikLPDocqvdmo5 · trefongwork@gmail.com

Also filed GigaWallet payment/event fixes if useful for ShibeShip checkout.

Fresh installs from shibeship.sql had no `tax` table, but listings and
product pages still queried `SELECT … FROM tax` (HTML comments do not
disable PHP). That caused PDO 1054/missing-table fatals on manage listings.

- Create `tax` table + default zero-rate rows in shibeship.sql
- Add DogeBridge::GetTaxRow() safe lookup
- Use it on product listing paths
- Re-enable tax category select with try/catch (no more landmine comment)

Tips DOGE: DTRJECKXfxgnSzGbt7TYRikLPDocqvdmo5
@qlpqlp

qlpqlp commented Jul 11, 2026

Copy link
Copy Markdown
Collaborator

It doesn't have the latest code that is active today on ShibeShip com will try to push it in the week

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants