Table of Contents
Overview
When a customer adds a product in shopping cart, it allows the customer to select or skip Gift Wrap option. Once the customer selects the Gift wrap option, the system displays various images of gift wrap and then will be added as fee. Customer can also enter Gift message, like “Happy birthday to Joe”. The order information includes this Gift message as well.
Installation Steps for Gift Wrapper (Magento 1)
Please follow the Steps below to install Gift Wrapper in Shopping Cart Page:
1. Extract the files inside Magento Installation Root
Magento_App_Root folder is same as your Magento Installation directory
2. Folder structure for default theme
Magento_App_Root/app/design/frontend/base/<default>/template Where <default> folder is based on default theme. If you are using theme in your website, please copy the template folder into your specific theme folder.
Example: Magento_App_Root/app/design/frontend/default/modern/template/catalog/product where “modern” is website theme/template.
Steps to be followed in admin panel
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.
Admin Panel ->Catalog -> Manage Products -> Add Product ( Screen 1)
Note: Choose attribute set as “default” while adding a new product.
Admin Panel -> Catalog -> Manage Categories -> Add Gift Wrapper Category (Screen 2)
Step 2: Add a new Static block for Gift Wrapper
Admin Panel -> CMS -> Static blocks -> Add New block
Page Title: Choose Gift Wrapper
Self URL: giftwrap
Status: Enabled
Content: {{block type="catalog/product_list" category_id="3" columnCount="5" template="catalog/product/choosegiftwrapper.phtml"}}
Please replace your category id which you had noted from Screen 2 Gift wrapper Category id
If magento version 1.9.2.x, Please follow the below the steps,
Add a new Static block for Gift Wrapper
Admin Panel -> CMS -> Static blocks -> Add New block
Page Title: Choose Gift Wrapper
Self URL: giftwrap
Status: Enabled
Content:
{{block type=”catalog/product_list” category_id=”3″ block_name=”catalog/product_list” template=”catalog/product/choosegiftwrapper.phtml”}}
Please replace your category id which you had noted from Screen 2 Gift wrapper Category id
Then,
Admin >> System >> Permissions >> Blocks >> Click on Add New Block Button
after that in Block Name filed add your block name = catalog/product_list
and set Is Allowed = Yes click on save block button
Add Gift Wrap Block in Cart Page Using layout xml :
Add below code in checkout_cart_index.xml file.
<block type=”cms/block” name=”giftwrap”>
<action method=”setBlockId”><block_id>giftwrap</block_id></action>
</block>
Step 3: Finally, Refresh the Cache in Cache Management in admin panel.
Admin Panel -> System -> Cache Management
Step 4: Test Giftwrap Options in Cart Page
Open your Website -> Select a product -> Add to Cart -> View Shopping Cart page
Test gift wrap feature as described below:
How to disable Gift wrap options in cart page
Admin Panel -> CMS -> Static blocks -> Choose Gift Wrapper
Set Status: Disabled
Refresh Magento cache as described in Step 3
Steps to Uninstall the Gift Wrapper Extension
Please follow the instructions below to uninstall Gift Wrapper Extension and remove from your website.
Step 1: Go to the location app/etc/modules/Globalecom_Giftwrapper.xml.
Find the line of code true
and change it to false
Refresh the Cache in admin panel->System->Cache Management
Step 2: Remove the file choosegiftwrapper.phtml in the following location.
app/design/frontend/base/default/template/catalog/product/
Similarly roll back cart.phtml, success.phtml files in the following locations app\design\frontend\base\default\template\checkout
This path maybe vary as per the website theme/template used.
If there is Theme template folder then please follow this location
app/design/frontend/default/(Your Theme Folder)/template/catalog/product
Step 3: Please disable or delete the Choose Gift Wrapper CMS Page or Choose Gift Wrapper Static Block in your admin panel.
If you have any questions or issues, please contact technical support team via http://mage-extensions-themes.com/support/