Extend Schema.org Header Tag with SKU and ASIN per product
With this addon, database fields for SKU and ASIN can be added to the product. If the Product Schema JSON-LD Header Tag Module is installed and activated, this data is added to the source code.
Schema data for your local business can also be added.
You need to customize the schemaExtend.php file in templates/default/includes/hooks/shop/product_info/ according to your needs.
To add the database fields to your product table, it is necessary to execute the following SQL statement in phpMyAdmin or use the Databasetool by @zipurman:After altering your databasetable, just upload the three files of the zip archive. No files will be overwritten.
Code: Select all
ALTER TABLE `products` ADD `products_sku` CHAR(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL AFTER `products_gtin`, ADD `products_asin` CHAR(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL AFTER `products_sku`;
!!! needs ht_product_schema from Phoenix v220.127.116.11 !!!
Add SKU and ASIN to your productsv1.0.0 for Phoenix v18.104.22.168NOT SUPPORTEDNOT TESTEDTESTED 8.x
- Author Denzel
- Last updated Thu Nov 16, 2023 3:08 pm
- Total Downloads 32
- Rating ( )