{"id":8172,"date":"2024-09-02T20:33:09","date_gmt":"2024-09-02T15:03:09","guid":{"rendered":"https:\/\/pheonixsolutions.com\/blog\/?p=8172"},"modified":"2024-09-03T08:59:59","modified_gmt":"2024-09-03T03:29:59","slug":"to-update-sm-market-theme-in-a-magento2-local-server","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/to-update-sm-market-theme-in-a-magento2-local-server\/","title":{"rendered":"TO UPDATE SM MARKET THEME IN A MAGENTO2 LOCAL SERVER"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">STEP 1: <\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>First you need to Install the required version of magento2 in your local server with the PHP extensIons.<\/li>\n\n\n\n<li>The Magento2 latest version is 2.4.7,but you can install which required version you want.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">STEP 2:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Purchase the sm market theme in the official website and  download the file of the sm market theme in your local and move to the magento2 directory.<\/li>\n\n\n\n<li>After moved to the local server you need to compress and unzip the file .<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">STEP 3:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>After unzipped the file , you need to active the sm extensions in your magento2 directory .<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><em>          php bin\/magento setup:upgrade<\/em><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>This command is used for the updating database schema and if you added or deleted or changed php  versions this changed only required database changes.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">STEP 4:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>After upgrade the sm extensions , you need to run a deploy command,<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><em>          php bin\/magento setup:static -content:deploy -f<\/em><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>It is used to compiles and deploys static assests to  pub\/static directory . The -f is used to force the deployment static in the production mode <\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">STEP 5:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>After deployment you need to give permissions to required folders, <\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><em>         chmod -R 777 pub<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>        chmod -R 777 generated<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>        chmod-R 777 var<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>        chmod-R 777 app\/etc<\/em><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">STEP 6:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Then Move to magento2 admin panel and navigate to the <em>Content -&gt;Design -&gt; Configuration -&gt; Edit Default store  -&gt; Sm Market <\/em><\/li>\n\n\n\n<li>In the theme section select required sm market theme and click the <em>save configuration<\/em> button.Then you need to clear the cache for the changes to see in Home page.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><em>          php\/bin magento cache:clean<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>          php\/bin magento cache:flush<\/em><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>By using this command you are able to clear the cache.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">STEP 7:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Then navigate to <em>stores -> configuration -> sm market <\/em> ,in that you need to click on the Theme installation.<\/li>\n\n\n\n<li>And then select on the<em> import static blocks  <\/em> option click on the <em>Static blocks<\/em><\/li>\n\n\n\n<li>In Bottom of the page there are Demo pages of sm market ,select any one of them and click on the save configuration.<\/li>\n\n\n\n<li>Then you need to clear the cache, you need to give a clear cache every time you made changes.<\/li>\n\n\n\n<li>After cleared the cache move to home page to see the changes were successfully done.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>STEP 1: STEP 2: STEP 3: php bin\/magento setup:upgrade STEP 4: php bin\/magento setup:static -content:deploy -f STEP 5: chmod -R [&hellip;]<\/p>\n","protected":false},"author":511,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1022],"tags":[],"class_list":["post-8172","post","type-post","status-publish","format-standard","hentry","category-web-architecture","psol-cat-web-architecture"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/phn2x7-27O","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/8172","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/511"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=8172"}],"version-history":[{"count":0,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/8172\/revisions"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=8172"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=8172"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=8172"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}