[FEATURE] MokoSuiteShop product OG tag support #53
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Overview
MokoSuiteOpenGraph needs native support for MokoSuiteShop products so that product pages automatically get rich social sharing previews (OG tags, Twitter Cards, JSON-LD Product schema).
This replaces the removed third-party adapters (HikaShop, K2, VirtueMart) with first-party MokoSuite integration.
Requirements
Auto-generated OG tags for products
og:title— product nameog:description— product short description (truncated)og:image— product main imageog:type—productog:url— canonical product URLproduct:price:amount/product:price:currency— product pricing metaJSON-LD Product schema
@type: Productwithname,description,image,skuofferswithprice,priceCurrency,availability,urlbrandif availableaggregateRatingif reviews existContent plugin integration
System plugin integration
com_mokosuiteshopproduct views inonBeforeCompileHeadBatch support
com_mokosuiteshopcontent typeDependencies
Files to modify/create
source/packages/plg_system_mokoog/src/Extension/MokoOG.php— add product view detectionsource/packages/plg_system_mokoog/src/Helper/JsonLdBuilder.php— add Product schemasource/packages/plg_content_mokoog/src/Extension/MokoOGContent.php— add form injection for product editorsource/packages/com_mokoog/src/Controller/BatchController.php— add product batch queryBranch created:
feature/53-feature-mokosuiteshop-product-og-tag-supCore implementation done in commit
8793e6b: product view detection, auto-generated OG tags from CRM product data,product:pricemeta tags, JSON-LD Product schema with offers and aggregate ratings. Remaining items (content plugin form injection, batch support) can be follow-up PRs.