Magento - Remove existing Media Gallery and add new one

Here is a set of functions, you can use to add multiple images after imports.


<?php

class Ayasoftware_SQLupdate_Model_Importconfigurableproducts {

......

/**
	 * Removes existing Media Gallery and add new one
	 *
	 */
	
	public function addImageToMediaGallery() {
		ini_set ( "memory_limit", "1024M" );
		$mediaGallery = $this->getImagesList ();
		
		for($j = 0; $j <= sizeof ( $mediaGallery ) - 1; $j ++) {
			foreach ( $mediaGallery [$j] as $key => $value ) {
				$product = Mage::getModel ( 'catalog/product' );
  

Magento Extension: Print orders with full credit card number.

If you process orders manually, you will probably need to print your order prior deleting all the information stored in the database.
By default, Magento does not allow you to print the full credit card number. When printing payment info, Magento automatically hides the first digits of the credit card number (xxxx-1234).


This extension works with orders placed through Saved Credit Card Payment (CSaved).
You can't print full credit card numbers for orders from Authorize.net, PayPal Pro, or from any merchant account provider.

Magento Direct SQL Update

Magento has made available to its users, a collection of functions that allows them to access and modify data in a very safe way. However, saving each individual product can take a long time when updating a large set of data. 

Magento Extension: Hide Pricing for Non-Logged In Users

Not all manufacturers allow website owners to display pricing for their products on the frontend for Non-Logged In Users. This extension allows you to hide pricing where ever they are displayed (Categories, Product details page, search results, product comparison, etc).

Magento will not display the "add to cart" button, product options and the price will be replaced with some configurable text. Once the user is logged in, he will able to see product pricing, product options and can add product to the cart.

Import Affiliate Product Feed Into Magento

Magento Affiliate product Feed Pack is a tool that helps affiliates easily import their product feeds into the Magento system.

Extension features:

How to create cron jobs dynamically in Magento.

Magento allows you to schedule custom tasks in an XML configuration, in a similar manner to the UNIX crontab style.



.....



        
     
     
       
            
                * * * 12 *
                mymodel/observer::runScheduledFunction
            
        
    
...


How to Override Mage Directory Model Currency class

For blocks and models (not controllers), the override is pretty simple. Unless you want to make a module portable to other projects, you can copy the model you want to override from core/ to local/..

Create Magento Size Charts Using Static Blocks and Javascript

In my Old post I showed you how to create a size chart using a
link that pop-ups an external php page.

In this tutorial, I will show you how to use static blocks and JavaScript to create size charts .

Suppose you want to create a size chart for the product type Jackets.

Magento how to create bundle products

Magento allows store owners to sell customizable products (eg. Product with more options to select from).
In this tutorial, we will show you how to:

  • Creae a new computer bundle, composed of the following user-selectable options: System Color, Operating System and Monitors.
  • Selections (eg. Pure White, Plum Purple) within each Option (eg. System Color) are composed from Simple Products. This means that you have to create your simple products first.

How to import configurable products from CSV File into Magento System

Unlikely the default Magento import module, this fully customizable bulk import module allows you to import configurable products through CSV feed.
Module features:

  • Import from CSV feed
  • Create CSV for import
  • Import configurable products and their associated simple products.
  • Import images / multiple images / gallery images from remote server.
  • Supports cron job
Syndicate content