{"id":1294,"date":"2018-06-22T06:59:11","date_gmt":"2018-06-22T06:59:11","guid":{"rendered":"http:\/\/global-ecommerce-services.com\/wiki\/?page_id=1294"},"modified":"2023-04-04T10:06:39","modified_gmt":"2023-04-04T10:06:39","slug":"gift-wrapper-magento-2-installation","status":"publish","type":"page","link":"https:\/\/global-ecommerce-services.com\/wiki\/gift-wrapper-magento-2-installation\/","title":{"rendered":"Gift wrap extension User guide &#8211; Magento 2"},"content":{"rendered":"<div id=\"toc_container\" class=\"no_bullets\"><p class=\"toc_title\">Table of Contents<\/p><ul class=\"toc_list\"><li><a href=\"#Overview\"><span class=\"toc_number toc_depth_1\">1<\/span> Overview\u00a0<\/a><\/li><li><a href=\"#Installation_Steps_for_Gift_Wrapper_magento_2_Extension\"><span class=\"toc_number toc_depth_1\">2<\/span> Installation Steps for Gift Wrapper magento 2 Extension:<\/a><ul><li><a href=\"#1Upload_Extension_files_to_the_server\"><span class=\"toc_number toc_depth_2\">2.1<\/span> 1.\u00a0\u00a0Upload Extension files to the server<\/a><\/li><li><a href=\"#2_Run_Installation_commands_in_SSH\"><span class=\"toc_number toc_depth_2\">2.2<\/span> 2. Run Installation commands in SSH<\/a><\/li><li><a href=\"#3_Verify_if_the_module_is_listed\"><span class=\"toc_number toc_depth_2\">2.3<\/span> 3. Verify if the module is listed:<\/a><\/li><\/ul><\/li><li><a href=\"#Configuration\"><span class=\"toc_number toc_depth_1\">3<\/span> Configuration<\/a><ul><li><a href=\"#1Setup_Gift_wrap_products_and_category_in_admin_panel\"><span class=\"toc_number toc_depth_2\">3.1<\/span> 1.\u00a0Setup Gift wrap products and category in admin panel<\/a><\/li><li><a href=\"#2Add_a_new_Static_block_for_Gift_Wrapper\"><span class=\"toc_number toc_depth_2\">3.2<\/span> 2:\u00a0Add a new Static block for Gift Wrapper<\/a><\/li><\/ul><\/li><li><a href=\"#Testing\"><span class=\"toc_number toc_depth_1\">4<\/span> Testing<\/a><ul><li><a href=\"#1_Gift_wrap_function_in_front_end\"><span class=\"toc_number toc_depth_2\">4.1<\/span> 1. Gift wrap function in front end<\/a><\/li><li><a href=\"#2_Verify_Gift_wrap_data_in_Admin_back_end\"><span class=\"toc_number toc_depth_2\">4.2<\/span> 2. Verify Gift wrap data in Admin back end<\/a><\/li><\/ul><\/li><li><a href=\"#Questions\"><span class=\"toc_number toc_depth_1\">5<\/span> Questions<\/a><\/li><\/ul><\/div>\n<h2><span id=\"Overview\"><span class=\"mw-headline\">Overview\u00a0<\/span><\/span><\/h2>\n<p>Gift Wrap magento 2 extension offers customers to choose gift wrap option to products and add personalized gift message. Best Magento gift wrap plugin available in the market for magento 2 at lower price. Easy to setup.<\/p>\n<h2><span id=\"Installation_Steps_for_Gift_Wrapper_magento_2_Extension\">Installation Steps for Gift Wrapper magento 2 Extension:<\/span><\/h2>\n<h3><span id=\"1Upload_Extension_files_to_the_server\">1.\u00a0\u00a0Upload Extension files to the server<\/span><\/h3>\n<p>Upload the extension files inside Magento Installation folder.\u00a0 Magento_App_Root folder is same as your Magento 2 Installation directory. It is recommended to take a backup of the Magento files before replacing<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-1540\" src=\"http:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2018\/06\/gitwrap-magento-extension-upload.png\" alt=\"gitwrap-magento-extension-upload\" width=\"688\" height=\"213\" srcset=\"https:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2018\/06\/gitwrap-magento-extension-upload.png 688w, https:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2018\/06\/gitwrap-magento-extension-upload-150x46.png 150w, https:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2018\/06\/gitwrap-magento-extension-upload-300x93.png 300w\" sizes=\"(max-width: 688px) 100vw, 688px\" \/><\/p>\n<h3><span id=\"2_Run_Installation_commands_in_SSH\">2. Run Installation commands in SSH<\/span><\/h3>\n<p>Login\u00a0to your server with SSH (using putty or similar tool).\u00a0 Go to your Magento root folder (Usually public_html folder) and run commands below. This is the standard Magento extension installation procedure.<\/p>\n<p><strong>2 a)\u00a0Enable Gift wrap modules using command below:<\/strong><\/p>\n<p><em>php bin\/magento module:enable Globalecom_Giftwrapper<\/em><\/p>\n<p><em>php bin\/magento module:enable Globalecom_Giftmessage<\/em><\/p>\n<p><strong>2 b) Run upgrade command: <\/strong>(This is a standard Magento command)<\/p>\n<p><em>php bin\/magento setup:upgrade<\/em><\/p>\n<p><strong>2 c) Run di Compile command (Optional)<\/strong><\/p>\n<p><em>php -d memory_limit=-1 bin\/magento setup:di:compile<\/em><\/p>\n<p><strong>2 d) Redeploy static content\u00a0(Optional) <\/strong><\/p>\n<p><em>php\u00a0-d memory_limit=-1\u00a0bin\/magento setup:static-content:deploy<\/em><\/p>\n<h3><span id=\"3_Verify_if_the_module_is_listed\">3. Verify if the module is listed:<\/span><\/h3>\n<p><strong>List modules<\/strong><br \/>\nphp -d memory_limit=-1 bin\/magento module:status<\/p>\n<h2><span id=\"Configuration\">Configuration<\/span><\/h2>\n<h3><span id=\"1Setup_Gift_wrap_products_and_category_in_admin_panel\"><strong>1.\u00a0Setup Gift wrap products and category in admin panel<\/strong><\/span><\/h3>\n<p>Step 1: Add Products and Assign under Giftwrapper Category. These products are like Gift wrap options. Example: Green Gift Wrap. These options are displayed in Shopping cart page.<\/p>\n<p><strong>1 a) Admin Panel-&gt;&gt;Products -&gt; &gt;Catalog -&gt; &gt;Add Product<\/strong><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-large\" src=\"https:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2018\/06\/gift-screen5.png\" alt=\"\" width=\"1332\" height=\"675\" \/><\/p>\n<p>Note: Choose attribute set as \u201cdefault\u201d while adding a new product.<\/p>\n<p><strong>1 b) Admin Panel-&gt;&gt;Products -&gt; &gt;Categories -&gt; &gt;Add Gift Wrapper Category. <\/strong>Note down Category Id<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-large\" src=\"https:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2018\/06\/gift-screen6.png\" alt=\"\" width=\"1321\" height=\"608\" \/><\/p>\n<h3><span id=\"2Add_a_new_Static_block_for_Gift_Wrapper\"><strong>2:<\/strong>\u00a0Add a new Static block for Gift Wrapper<\/span><\/h3>\n<p><strong>Admin Panel -&gt; Content -&gt; Blocks -&gt; Add New block<\/strong><\/p>\n<p>Page Title:\u00a0<strong>Choose Gift Wrapper<\/strong><br \/>\nSelf URL: <strong>giftwrap<\/strong><br \/>\nStatus: Enabled<\/p>\n<pre>Content: <b>{{block class=\"Magento\\Framework\\View\\Element\\Template\" name=\"catalog.product.choosegiftwrapper\"\u00a0 columnCount=\"5\" template=\"Globalecom_Giftwrapper::product\/choosegiftwrapper.phtml\"}}<\/b><\/pre>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-large\" src=\"https:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2018\/06\/gift-screen7.png\" alt=\"\" width=\"1242\" height=\"654\" \/><\/p>\n<p><strong>3. Set category id in front end phtml file<\/strong><\/p>\n<p><span style=\"text-decoration: underline;\">Step 1<\/span>:<\/p>\n<p><strong>Add Gift Wrap Block in\u00a0Cart\u00a0Page Using layout xml :<\/strong><\/p>\n<p>Add below code in <strong>\/vendor\/magento\/module-checkout\/view\/frontend\/layout\/checkout_cart_index.xml.<\/strong><\/p>\n<p><strong>Note: File Path may vary based on theme.<\/strong><\/p>\n<p>&lt;block class=&#8221;Magento\\Cms\\Block\\Block&#8221; name=&#8221;giftwrap&#8221;&gt;<\/p>\n<p>&lt;arguments&gt;<br \/>\n&lt;argument name=&#8221;block_id&#8221; xsi:type=&#8221;string&#8221;&gt;giftwrap&lt;\/argument&gt;<br \/>\n&lt;\/arguments&gt;<br \/>\n&lt;\/block&gt;<\/p>\n<p style=\"text-align: center;\"><strong>OR<\/strong><\/p>\n<p>Add the below code at end of the cart.phtml file, you can find the file path of cart.phtml by enabling template hints and viewing\u00a0shopping cart page<\/p>\n<pre><b>echo $block-&gt;getLayout()-&gt;createBlock('Magento\\Cms\\Block\\Block')-&gt;setBlockId('giftwrap')-&gt;toHtml();<\/b><\/pre>\n<p><span style=\"text-decoration: underline;\">Step 2<\/span>: Open <strong>choosegiftwrapper.phtml<\/strong> file\u00a0from the following location app\/code\/Globalecom\/Giftwrapper\/view\/frontend\/templates\/product<\/p>\n<p>Add gift wrapper category id in line no 35 in that file.\u00a0Scroll up and Refer this section &#8211; Configuration # 1b to know the\u00a0category id that you noted in admin.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-large\" src=\"https:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2018\/06\/gift-screen8.png\" alt=\"\" width=\"1013\" height=\"608\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span lang=\"EN-IN\" style=\"font-size: 10.5pt; font-family: 'Arial','sans-serif'; color: #333333;\">Step 3: Finally clear cache of the website .Admin-&gt;&gt;System-&gt;&gt;Cache Management<\/span><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-large\" src=\"https:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2018\/06\/gift-screen9.png\" alt=\"\" width=\"1341\" height=\"664\" \/><\/p>\n<h2><span id=\"Testing\">Testing<\/span><\/h2>\n<h3><span id=\"1_Gift_wrap_function_in_front_end\">1. Gift wrap function in front end<\/span><\/h3>\n<p>Open your Website -&gt; Select a product -&gt; Add to Cart -&gt; View Shopping Cart page<\/p>\n<p>Then add gift products\u00a0 to cart and give message<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-large\" src=\"https:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2018\/06\/gift-screen10.png\" alt=\"\" width=\"1260\" height=\"676\" \/><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-large\" src=\"https:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2018\/06\/gift-screen11.png\" alt=\"\" width=\"1307\" height=\"676\" \/><\/p>\n<h3><span id=\"2_Verify_Gift_wrap_data_in_Admin_back_end\">2. Verify Gift wrap data in Admin back end<\/span><\/h3>\n<p>You can see gift wrap item and gift message in Admin-&gt;&gt;Sales-&gt;&gt;Orders<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-large\" src=\"https:\/\/global-ecommerce-services.com\/wiki\/wp-content\/uploads\/2018\/06\/gift-screen12.png\" alt=\"\" width=\"1364\" height=\"706\" \/><\/p>\n<h2 style=\"background: white; margin: 0in 0in 7.5pt 0in;\"><span id=\"Questions\">Questions<\/span><\/h2>\n<p style=\"background: white; margin: 0in 0in 7.5pt 0in;\"><span lang=\"EN-IN\" style=\"font-size: 10.5pt; font-family: 'Arial','sans-serif'; color: #333333;\">If you have any questions or issues, please contact technical support team via\u00a0<\/span><span lang=\"EN-IN\"><a href=\"https:\/\/mage-extensions-themes.com\/support\/\" target=\"_blank\" rel=\"noopener\"><span style=\"font-size: 10.5pt; font-family: 'Arial','sans-serif'; color: #428bca;\">https:\/\/mage-extensions-themes.com\/support\/<\/span><\/a><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Table of Contents1 Overview\u00a02 Installation Steps for Gift Wrapper magento 2 Extension:2.1 1.\u00a0\u00a0Upload Extension files to the server2.2 2. Run Installation commands in SSH2.3 3. Verify if the module is listed:3 Configuration3.1 1.\u00a0Setup Gift wrap products and category in admin panel3.2 2:\u00a0Add a new Static block for Gift Wrapper4 Testing4.1 1. Gift wrap function in ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/global-ecommerce-services.com\/wiki\/gift-wrapper-magento-2-installation\/\" title=\"read more...\">Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"full-width-template.php","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"https:\/\/global-ecommerce-services.com\/wiki\/wp-json\/wp\/v2\/pages\/1294"}],"collection":[{"href":"https:\/\/global-ecommerce-services.com\/wiki\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/global-ecommerce-services.com\/wiki\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/global-ecommerce-services.com\/wiki\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/global-ecommerce-services.com\/wiki\/wp-json\/wp\/v2\/comments?post=1294"}],"version-history":[{"count":29,"href":"https:\/\/global-ecommerce-services.com\/wiki\/wp-json\/wp\/v2\/pages\/1294\/revisions"}],"predecessor-version":[{"id":1659,"href":"https:\/\/global-ecommerce-services.com\/wiki\/wp-json\/wp\/v2\/pages\/1294\/revisions\/1659"}],"wp:attachment":[{"href":"https:\/\/global-ecommerce-services.com\/wiki\/wp-json\/wp\/v2\/media?parent=1294"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/global-ecommerce-services.com\/wiki\/wp-json\/wp\/v2\/categories?post=1294"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/global-ecommerce-services.com\/wiki\/wp-json\/wp\/v2\/tags?post=1294"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}