Posts

Showing posts with the label magento

How to change the content of button of comment section in drupal?

How to change the content of button of comment section in drupal? if you want to change the content of button of comment box section submit button so follow this path yoursite/modules/comment and open this file  comment.module and search the keyword in this page  $form['submit'] = array('#type' => 'submit', '#value' => t('Save') replace the word Save to your desire word it will show on your comment section submit button.

How to use 301 url redirect in magento via htacess?

Make a .htaccess file on root of your magento paste this code on this file and change path of site..... <IfModule mod_rewrite.c> DirectoryIndex index.php RewriteEngine on RewriteCond $1 !^(index\.php|media|skin|js|robots\.txt) RewriteRule ^typefaceselection.aspx$ /insignedesigncom/index.php/$1 [R=301,L] RewriteRule ^contact.aspx$ /insignedesigncom/index.php/contacts/$1 [R=301,L] RewriteRule ^thankyou.aspx$ /insignedesigncom/index.php/thankyou.aspx/$1 [R=301,L] </IfModule>

How can i remove 24X7 customer service image in magento?

Follow the path which is define below You need to comment all code in app/design/frontend/Your theme/default/template/callouts/left_col.phtml file now refresh the cache and check its works pefectly :)

why Images are not Showing on Frontend as well as Backend on Godaddy Server in magento?

Images are not Showing on Frontend as well as Backend on Godaddy Server in magento recent i transfer my project one to another server every thing is working fine on my local server but when i upload this project on another server images are not showing on frontend and  backend of products. I surfed many magento help sites with many of the suggestions and tried everything but that that was not working for me and finally after a lot of hectic trials i got the solution for it. Just Rename your .htaccess file inside the /media directory to .htaccess-old. This will absolutely work for your site. if its works for you don't forget to say thanks to this blog :)

How to Check if current page is Homepage or not in magento?

Simply add this code in your page this code will check if current page is Homepage or not in magento. <?php if($this->getUrl('') == $this->getUrl('*/*/*', array('_current'=>true, '_use_rewrite'=>true))): echo "yes homepage of magento"; else: echo "this is not Homepage"; endif; ?>

How to remove right column from product details page in magento?

go to this directory app/design/frontend/base/default/layout/ open catalog.xml and search  <label>Catalog Product View (Any)</label> you can find this line around 180 line of this page code will be like this <catalog_product_view translate="label">         <label>Catalog Product View (Any)</label>         <!-- Mage_Catalog -->         <reference name="root">             <action method="setTemplate"><template>page/2columns-right.phtml</template></action>         </reference> change 2columns-right.phtml to 1column.phtml  <catalog_product_view translate="label">         <label>Catalog Product View (Any)</label>         <!-- Mage_Catalog -->         <reference name="root">             <action method="setTemplate"><template>page/1column.phtml</template></action>         </reference&

How to get the path of downloadable product's file of associated product or group product which was upload during add downloadable product?

How to get the path of  downloadable product's file of associated product or group product which was upload during add downloadable product? This will return you full path of downloadable product  $file =''; $home_url = Mage::helper('core/url')->getHomeUrl(); $static_path = $home_url."media/downloadable/files/links"; $productLinks = $ $product ->getTypeInstance(true)->getLinks($product); foreach($productLinks as $key=>$val) {       $val = trim($productLinks[$key]->link_file);         if($val!='')         {         $file = $val;         }         else         {         $file = '';         } } echo $file_path = $static_path.$file;

HOW TO GET GET BASE URL, SKIN URL, GET MEDIA URL, GET STORE URL AND OTHER URLS IN MAGENTO?

HOW TO GET  GET BASE URL, SKIN URL, GET MEDIA URL, GET STORE URL AND OTHER URLS IN MAGENTO? HERE IS SOME USEFULL URL FOR YOU WHICH CAN HELP YOU TO USE THE DEFINE URL IN MAGENTO HOPE THIS WILL HELP YOU. To get Media URL {{media url='/sampleimage.jpg'}} To get Store URL {{store url='mypage.html'}} To get Base URL {{base url='yourstore/mypage.html'}} TO Retrieve URL path in PHTML Note: In editing PHTML don't forget to enclode the following code with PHP tag Not secure Skin URL: <?php echo $this->getSkinUrl('images/sampleimage.jpg') ?> Secure Skin URL <?php echo $this->getSkinUrl('images/ sampleimage.gif', array('_secure'=>true)) ?> Get  Current URL $current_url = Mage::helper('core/url')->getCurrentUrl(); Get Home URL $home_url = Mage::helper('core/url')->getHomeUrl(); Get Magento Media Url Mage::getBaseUrl(

How to know product type in magento?

How to know product type in magento that product is group or simple or downloadable. echo $product->getTypeId();

How to get the id of associated products in magento from the array of associated products?

Get the id of associated products in magento from the array of associated products. i was getting rid that i have array of associated product but unable to get the id of associated product. after so much search i found this solution check this it will works for you .... $associatedProducts = $_product->getTypeInstance(true)->getAssociatedProducts($_product); foreach($associatedProducts as $assoc_id) { $aid = $assoc_id->getId(); echo "id of associated products is = ".$aid; echo "<br/>"; }

How to get the array of associated product of group product in magento?

For get the array of associated product of group product in magento you to add simple this line in code where you are getting group product details. $associatedProducts = $_product->getTypeInstance(true)->getAssociatedProducts($_product); print_r( $associatedProducts ); it will return to you all associated products array of group product now you can use this array as you want. and you want to get the associated product ids only then you can simple add this like below above code foreach($associatedProducts as $assoc_id) { $aid = $assoc_id->getId(); echo "id of associated products is = ".$aid; echo "<br/>"; }

How to get count of cart item in magento?

simply copy and paste where you want to get count of cart item in magento <?php $mageFilename = 'app/Mage.php'; require_once $mageFilename; umask(0); Mage::app(); Mage::getSingleton('core/session', array('name'=>'frontend')); $session = Mage::getSingleton('checkout/session'); $output = ""; foreach ($session->getQuote()->getAllItems() as $item) {     $output .= $item->getQty() . "<br>"; } print $output; ?>

How to create a page which show only subcategory or how to show all category on one page in magento?

Go to the admin Now follow the step CMS->PAGES->Add new page Insert these data in the form Step 1:- insert in Page Information tab Titile-> categories URL Key *-> categories Status *->Enabled Step 2:- insert in Content Content Heading->anything according to you and paste this code in the textarea box {{block type="catalog/navigation" name="catalog.categories" template="catalog/navigation/category_listing.phtml"}} Step 3:- select in Page Layout Layout *->select   2 columns with right bar After this save the page Now add new page and in this directories App/design/frontend/base/default/templates/catalog/navigation/ category_listing.phtml And add this code in this page <?php $_category  = $this->getCurrentCategory();  $collection = Mage::getModel('catalog/category')->getCategories($_category->entity_id); $helper     = Mage::helper('catalog/category'); ?>

How to show Currency Options drop down on homepage or header in magento?

show Currency Options drop down on homepage or header in magento? and if not showing  Currency Options drop down somewhere so follow these steps. - Follow these steps to show store specific currency:- - Go to System -> Configuration -> GENERAL -> Currency Setup - In left sidebar at top, you will see “Current Configuration Scope” - Select your desired store from the selection list - Now, under “Currency Options“, you will see “Default Display Currency” - Select your desired currency from the selection list You are done. In frontend, select the store for which you did the above changes. You will see the price in your desired currency. and put this line of code where u you want to display currency converter <?php echo $this->getLayout()->createBlock('directory/currency')->setTemplate('directory/currency.phtml')->toHtml(); ?>

How to show category on right side or left side in magento?

First of all you have to create a new block in xml to show the category Navigate to /app/design/frontend/default/default/layout/catalog.xml Open this page and search this keyword " Default layout, loads most of the pages " and put this code in block <reference name="right"> <block type="catalog/navigation" name="catalog.righthomenav" template="catalog/navigation/right_home_nav.phtml" /> </reference> you can change layout position in mageto to change the  reference name as ( right, left, footer, etc ) create a new and directory like this path  /app/design/frontend/default/default/template/ catalog/navigation/ right_home_nav .phtml and paste this code in that in new page  right_home_nav .phtml <h2>Browse</h2> <div class="block"> <ul id="nav_category" class="nav_category"> <?php foreach ( $this -> getStoreCategories ( ) as $_category ) :

How to show featured products on home page in magento?

If you want to show featured products on home page in magento so here is code for you... IF you still have not add featured attribute in magento so first of all you have to add arrtibute in  Manage Attributes Step 1: Create new Featured attribute Create a new attribute by going to Catalog > Attributes > Manage Attributes > Add New Attribute. Attribute Properties Attribute Identifier: featured Scope: Store View Catalog Input Type for Store Owner: Yes/No Unique Value (not shared with other products): No Values Required: No Input Validation for Store Owner: None Apply To: All Product Types Front End Properties Use in quick search: No Use in advanced search: Yes Comparable on Front-end: No Use In Layered Navigation (Can be used only with catalog input type ‘Dropdown’): No Visible on Catalog Pages on Front-end: Yes Manage Label/Options Default: Featured Product Save the new attribute and go to Catalog ? A

How to edit footer or modified footer in magento?

Want to edit footer or modified footer in magento follow these steps For the frontend: app\design\frontend\default\default\template\page\html\footer.phtml For the backend: (If you want to edit footer in back end): app\design\adminhtml\default\default\template\page\footer.phtm You can find here head file, breadcrumbs file to change different static contant.

How to remove or change index.php from url in magento

you want to remove or change index.php from url in magento through admin and by page so please follow this steps.... i m sure it will work for you example: http://website.com/index.php/category to http://website.com/category then use the following steps 1) Login to admin section by using the URL http://websitecom/index.php/admin 2) then go to “System >>  Configuration >>Web >> Search Engines Optimization” Use Web Server Rewrites : YES 3) Go to “System >>  Configuration >>Web >>Secure” Use secure URL Frontend: YES 4)Then create the .htaccess file under your the magento installed folder. If the magento installed under document root ( /home/username/public_html) then add follogig rules into .htaccess  file <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> and

Setting Up Google Checkout or How to set Google Checkout?

Setting up Google Checkout ADMIN > Configuration > Sales > Google API > Google Checkout Overview Magento Go allows you to integrate your store with Google Checkout. With Google Checkout, customers can pay for purchases in their shopping cart using the Google Checkout payment processing system. For field descriptions, see Configuration: Google API - Google Checkout . Step 1: Open a Google Checkout Merchant Account The first step is to establish a Google Checkout merchant account. As you go through the process, take note of the following information, which you will need to complete the configuration in Magento Go: Merchant ID Merchant Key For more information about opening a Google Checkout merchant account for your Magento Go store, see the Google Checkout website . Step 2: Configure Google Checkout in Magento Go From the Admin panel, select System > Configuration . From the Configuration panel on the left, under Sales, select the Google API tab. Expand th