Entries by admin

Entry without preview image

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, […]

jQuery Sticky Navigation Effect

To create a sticky effect on the main navigation bar above when a user scrolls passed beyond it. Use below jquery code jQuery(function(){ var menuOffset = jQuery(‘#site-navigation’)[0].offsetTop; jQuery(document).bind(‘ready scroll’,function() { var docScroll = jQuery(document).scrollTop(); if(docScroll >= menuOffset) { jQuery(‘#site-navigation’).addClass(‘fixed’).css(‘width’,jQuery(‘#masthead’).width()); } else { jQuery(‘#site-navigation’).removeClass(‘fixed’).removeAttr(“width”); } }); }); Fairly basic jQuery code. It will add a class […]

Entry with Post Format “Video”

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, […]

htaccess for magento in subdirectory

htaccess for magento in subdirectory Steps 1. Install Magento to /public_html/magento/ normally. Do not change Base URL during installation. 2. Copy /public_html/magento/.htaccess to /public_html/.htaccess 3. Copy /public_html/magento/index.php to /public_html/index.php 4. Edit /public_html/index.php line 32 to read: $mageFilename = ‘magento/app/Mage.php’; 5. Log into Magento Admin. Go to System > Configuration > Web 6. Under Unsecure change […]

Reset wordpress default jquery for front site

Reset wordpress default jquery for front site. Use below code in template functions.php file and you’r done! if( !is_admin()){ wp_deregister_script(‘jquery’); wp_register_script(‘jquery’, (“http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js”), false, ‘1.10.2’); wp_enqueue_script(‘jquery’); }

How To Show Page for Particular User Group In Magento

Show Page for Particular User Group In Magento To show a page for a specific user group in Magento, you need to implement customer group restrictions using layout updates or custom modules. One effective way is by leveraging Magento’s customer session and layout XML updates. First, identify the customer group using Magento\Customer\Model\Session and apply conditions […]

Get create account url in magento

Get create account url in magento If you want to add create “Register” or “Create an account” link in top navigation section then simply open customer.xml file in layout folder and you have to put below code in <customer_logged_out> area <action method=”addLink” translate=”label title” module=”customer”><label>Creat an acoount</label><url helper=”customer/getRegisterUrl”/><title>Creat an acoount</title><prepare/><urlParams/><position>9</position><liParams/><aParams>id=”register”</aParams></action>

Remove Price Display from Customs Options on Single Products in the Product View in Magento

Remove Price Display from Customs Options on Single Products in the Product View in Magento To sort out this problem simply do below: 1) Open app/design/frontend/default/your theme/template/catalog/product/view/price_clone.phtml 2) Comment out the below code: <?php echo $this->getPriceHtml($_product, false, ‘_clone’) ?> like this <? /* php echo $this->getPriceHtml($_product, false, ‘_clone’) */ ?>

Change column-layout of contact form in Magento

Change column-layout of contact form in Magento Here is simple method to do it : 1. Find contacts.xml in the base layout folder 2. Copy the contacts.xml in your theme layout folder app/design/frontend/default/your theme folder/layout/ and then find below code around line 41 page/2columns-right.phtml and you can change layout as you need.