Fixed Image Asset Paths

This commit is contained in:
Christopher Allford 2023-12-09 21:26:49 -08:00
parent cf357e809b
commit e34361695d
2 changed files with 7 additions and 7 deletions

View File

@ -30,7 +30,7 @@ export const blocksConfig = getSetting( 'wcBlocksConfig', {
wordCountType: 'words', wordCountType: 'words',
} ) as WcBlocksConfig; } ) as WcBlocksConfig;
export const WC_BLOCKS_IMAGE_URL = blocksConfig.pluginUrl + 'images/'; export const WC_BLOCKS_IMAGE_URL = blocksConfig.pluginUrl + 'assets/images/';
export const WC_BLOCKS_BUILD_URL = blocksConfig.pluginUrl + 'assets/client/blocks/'; export const WC_BLOCKS_BUILD_URL = blocksConfig.pluginUrl + 'assets/client/blocks/';
export const WC_BLOCKS_PHASE = blocksConfig.buildPhase; export const WC_BLOCKS_PHASE = blocksConfig.buildPhase;
export const SHOP_URL = STORE_PAGES.shop?.permalink; export const SHOP_URL = STORE_PAGES.shop?.permalink;

View File

@ -11,37 +11,37 @@ class ProductUpdater {
const DUMMY_PRODUCTS = [ const DUMMY_PRODUCTS = [
[ [
'title' => 'Vintage Typewriter', 'title' => 'Vintage Typewriter',
'image' => 'images/pattern-placeholders/writing-typing-keyboard-technology-white-vintage.jpg', 'image' => 'assets/images/pattern-placeholders/writing-typing-keyboard-technology-white-vintage.jpg',
'description' => 'A hit spy novel or a love letter? Anything you type using this vintage typewriter from the 20s is bound to make a mark.', 'description' => 'A hit spy novel or a love letter? Anything you type using this vintage typewriter from the 20s is bound to make a mark.',
'price' => 90, 'price' => 90,
], ],
[ [
'title' => 'Leather-Clad Leisure Chair', 'title' => 'Leather-Clad Leisure Chair',
'image' => 'images/pattern-placeholders/table-wood-house-chair-floor-window.jpg', 'image' => 'assets/images/pattern-placeholders/table-wood-house-chair-floor-window.jpg',
'description' => 'Sit back and relax in this comfy designer chair. High-grain leather and steel frame add luxury to your your leisure.', 'description' => 'Sit back and relax in this comfy designer chair. High-grain leather and steel frame add luxury to your your leisure.',
'price' => 249, 'price' => 249,
], ],
[ [
'title' => 'Black and White Summer Portrait', 'title' => 'Black and White Summer Portrait',
'image' => 'images/pattern-placeholders/white-black-black-and-white-photograph-monochrome-photography.jpg', 'image' => 'assets/images/pattern-placeholders/white-black-black-and-white-photograph-monochrome-photography.jpg',
'description' => 'This 24" x 30" high-quality print just exudes summer. Hang it on the wall and forget about the world outside.', 'description' => 'This 24" x 30" high-quality print just exudes summer. Hang it on the wall and forget about the world outside.',
'price' => 115, 'price' => 115,
], ],
[ [
'title' => '3-Speed Bike', 'title' => '3-Speed Bike',
'image' => 'images/pattern-placeholders/road-sport-vintage-wheel-retro-old.jpg', 'image' => 'assets/images/pattern-placeholders/road-sport-vintage-wheel-retro-old.jpg',
'description' => 'Zoom through the streets on this premium 3-speed bike. Manufactured and assembled in Germany in the 80s.', 'description' => 'Zoom through the streets on this premium 3-speed bike. Manufactured and assembled in Germany in the 80s.',
'price' => 115, 'price' => 115,
], ],
[ [
'title' => 'Hi-Fi Headphones', 'title' => 'Hi-Fi Headphones',
'image' => 'images/pattern-placeholders/man-person-music-black-and-white-white-photography.jpg', 'image' => 'assets/images/pattern-placeholders/man-person-music-black-and-white-white-photography.jpg',
'description' => 'Experience your favorite songs in a new way with these premium hi-fi headphones.', 'description' => 'Experience your favorite songs in a new way with these premium hi-fi headphones.',
'price' => 125, 'price' => 125,
], ],
[ [
'title' => 'Retro Glass Jug (330 ml)', 'title' => 'Retro Glass Jug (330 ml)',
'image' => 'images/pattern-placeholders/drinkware-liquid-tableware-dishware-bottle-fluid.jpg', 'image' => 'assets/images/pattern-placeholders/drinkware-liquid-tableware-dishware-bottle-fluid.jpg',
'description' => 'Thick glass and a classic silhouette make this jug a must-have for any retro-inspired kitchen.', 'description' => 'Thick glass and a classic silhouette make this jug a must-have for any retro-inspired kitchen.',
'price' => 115, 'price' => 115,
], ],