Thursday, March 24, 2011

Short Notes --> Magento

To generate Custom Link use this for the category items

echo Mage::getUrl('buy-now.html');

http://xhtmlandcsshelp.blogspot.com/2010/11/create-custom-login-session-in-magento.html

http://indianicorange.wordpress.com/2009/09/14/how-to-set-session-and-get-session-in-magento/

http://www.exploremagento.com/magento/run-magento-code-outside-of-magento.php

http://mysillypointofview.richardferaro.com/2010/03/25/how-to-run-magento-version-1-4-0-1-session-to-external-site/

http://www.magentocommerce.com/go/support/kb/entry/name/configure-authorizenet-payment-method

http://www.magentocommerce.com/wiki/4_-_themes_and_template_customization/0_-_theming_in_magento/package

http://blog.decryptweb.com/product-id-and-product-name/

http://www.magentocommerce.com/boards/viewthread/41350/

http://www.magentocommerce.com/boards/viewthread/22185/

http://www.magentocommerce.com/wiki/4_-_themes_and_template_customization/catalog/adding_a_product_to_the_cart_via_querystring


http://www.cliostar.com/checkout/cart/add?product=1&qty=1

http://www.cliostar.com/store/checkout/cart/add?product=965&qty;=1&coupon;_code=CLSLM

http://www.cliostar.com/arrive?coupon_code=CLSLM&gotopage;=http://www.google.com

http://www.cliostar.com/arrive?coupon_code=CLSLM

http://www.magentocommerce.com/boards%20/viewthread/44934/#t229596

http://stackoverflow.com/questions/4040267/magento-set-discount-code-for-specific-product-on-fly 

Link Master --> Word Press

Monday, March 21, 2011

Add own jquery functions in magento

Kindly follow the below steps

1. download your requiring jquery libs and script.

2. upload the js files in your theme js folder like "skin/frontend/base/theme_name/js"

3. Add your css script in "style.css" of  "/skin/frontend/base/theme_name/css"

4. add your jquery function script in "head.phtml" of "app/design/frontend/base/theme126/template/page/html". Kindly check the script with no confilit.

var $j = jQuery.noConflict(); 

$j(document).ready(function(){
    $j("#test").css("padding","10px");
});

5. Finally you can put your html code wherever you need on magento pages.

Mangento Home javascript slider sample

<script type="text/javascript">// <![CDATA[

var imgs1 = new Array("http://www.cliostar.com/skin/frontend/base/theme126/images/banners/Cliostar1.png","http://www.cliostar.com/skin/frontend/base/theme126/images/banners/Cliostar2.png");

var lnks1 = new Array("http://www.cliostar.com/index.php/why-cliostar.html","http://www.cliostar.com/index.php/t-pyramid-concept.html");

var alt1 = new Array("Alt Text for Image 1","Alt Text for Image 2");

var currentAd1 = 0;

var imgCt1 = 2;

function cycle1() {

  if (currentAd1 == imgCt1) {

    currentAd1 = 0;

  }

var banner1 = document.getElementById('adBanner1');

var link1 = document.getElementById('adLink1');

  banner1.src=imgs1[currentAd1]

  banner1.alt=alt1[currentAd1]

  document.getElementById('adLink1').href=lnks1[currentAd1]

  currentAd1++;

}

  window.setInterval("cycle1()",4000);

// ]]></script>

<p><a id="adLink1" target="_top"> <img id="adBanner1" src="http://www.cliostar.com/skin/frontend/base/theme126/images/banners/Cliostar1.png" border="0" alt="" width="600" height="400" /></a></p>

Tuesday, March 8, 2011

Use Full LInks

http://www.longtailvideo.com/support/forums/addons/using-plugins/8189/hd-movie-streaming-is-too-slow


http://ffmpeg-php.sourceforge.net/


Magento bulk

Bulk Import magento

sample csv magento customer
magento logo adjustment

http://www.magentocommerce.com/boards/viewthread/204592/#t265948

Magento Paypal logo remove
 
Regarding PayPal: are you sure you’ve disabled it completely? Panel/System/Configuration/Advanced/Advanced - turn off both Mage_Paypal and Mage_PaypalUk. This should do the trick. Naturally, refresh your cache in System/Cache Management as well in order to see the changes.

http://www.magentocommerce.com/boards/viewthread/37562/


http://www.magentocommerce.com/boards/viewthread/25371/

http://midpart.wordpress.com/2009/12/19/add-a-image-slider-banner-in-magento-home-page/


http://spaceforaname.com/galleryview

http://www.stunningmesh.com/2010/11/100-jquery-plugins-for-image-galleries-with-source-files/


http://sree.cc/magento_ecommerce_tips/magento-enable-contact-form-add-custom-field-link-to-top-menu


http://www.magentocommerce.com/wiki/4_-_themes_and_template_customization/css/creating-css-buttons-vs-image-buttons

http://www.magentocommerce.com/boards/viewthread/217743/#t296235

http://chosencollective.com/technology/magento-integration-session-login

http://www.magentocommerce.com/boards/viewthread/16187/

http://www.templatemonster.com/help/eoc/magento/article4.html

http://www.magentocommerce.com/boards/viewthread/21707/

http://www.magentocommerce.com/wiki/4_-_themes_and_template_customization/navigation/add_home_link_to_menu_bar

http://www.magentocommerce.com/boards/viewthread/5835/

http://stackoverflow.com/questions/5357225/magento-check-for-customers-first-order

http://digitalsymmetry.marksserver.com/magento/orders/get-order-details.htm

http://www.unexpectedit.com/magento/magento-customer-by-order-total-report-sql

http://stackoverflow.com/questions/2195743/get-order-increment-id-in-magento

http://subesh.com.np/2010/03/ordered-items-detail-order-id-magento/

http://www.magentocommerce.com/wiki/5_-_modules_and_development/catalog/using_collections_in_magento 

Saturday, March 5, 2011

Short Notes to install FFMPEG in Windows with PHP

Here i am giving the details about to install FFMPEG in windows. But if any dll Compiling problem will come there means kindly check the sources with your windows and web server versions

Ok, Now we can see the steps to install

step 1:

Download FFMPEG from the below URL

http://www.mediafire.com/?7j897g07hgm03ft

step 2:

Extract The downloaded file on your local drive C, like

C:/ffmpeg/ffmpeg.exe

step 3:

Now just open your DOS Commend Prompt and then check with below code

"c:/ffmpeg/ffmpeg.exe -i d:/path/input_file.mpg d:/path/output_file.flv"

If that above working fine means you have installed ffmpeg successfully.

step 4:

Download ffmpeg-php system32 files in below url

http://www.mediafire.com/?39x88wsh54cufa1

step 5:

Extract the folder and then copy all dll files to "c:/windows/system32/".

step 6:

Download ffmpeg-php ini config file from this below url

http://www.mediafire.com/?bu1e1c3eccbc9bc

step 7:

Find your php extension_dir in phpinfo() and then extract the above downloaded folder. Now copy the "php_ffmpeg.dll" to that "php/ext/" folder.

step 8:

Then open your php.ini file which is the current running one. This you can check using phpinfo() on info.php. Then add below line in "Dynamic Extension" section with other dll configurations

extension=php_ffmpeg.dll


step 9:

Now just restart your webserver and then check info.php file if there is enabled the "ffmpeg-php". If it is enabled means you can work with that. Otherwise check if your are getting any compiled error means try some other dll library.

step 10:

If you have installed php successfully means you can execute the below script in your test.php file.

exec('c:/ffmpeg/ffmpeg.exe -i d:/path/input_file.jpg d:/path/output_file.png',$output);

If you are getting the output means your ffmpeg started to work.