Move prestashop to new domain
Update your database go to "PHPMyAdmin" and log into your PrestaShop database. Go to the table "ps_configuration" and locate the records for PS_SHOP_DOMAIN and PS_SHOP_DOMAIN_SSL. Change these to the new…
Update your database go to "PHPMyAdmin" and log into your PrestaShop database. Go to the table "ps_configuration" and locate the records for PS_SHOP_DOMAIN and PS_SHOP_DOMAIN_SSL. Change these to the new…
$productId = 'SOME_PRODUCT_ID'; $product = Mage::getModel('catalog/product')->load($productId); $productMediaConfig = Mage::getModel('catalog/product_media_config'); $baseImageUrl = $productMediaConfig->getMediaUrl($product->getImage()); $smallImageUrl = $productMediaConfig->getMediaUrl($product->getSmallImage()); $thumbnailUrl = $productMediaConfig->getMediaUrl($product->getThumbnail()); more info: http://www.anyknowledge.com/magento-get-original-image-url-of-a-product/ http://www.magentocommerce.com/boards/viewthread/69911/
Mage::app()->getStore($storeId)->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK);
// Magento XML products exporter // by nirav chauhan // http://niravchauhan.wordpress.com/ require_once 'app/Mage.php'; umask( 0 ); Mage::app( "default" ); Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID); $_urlPath = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB); $_imagePath = $_urlPath . "media"; $_logFileName =…
setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID); //echo getcwd(); $_urlPath = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB); $_imagePath = $_urlPath . "media"; $_logFileName = getcwd()."export_products.log"; $_xmlPath = getcwd()."/var/export"; $xmlFile = $_xmlPath . "/" . "productexport.xml"; $doc = new DomDocument('1.0', 'UTF-8'); $doc->preserveWhiteSpace…
put End of the page: Ex: like custome order custom index menagement , custom add to cart etc in the end: $message = ('Your cart has been updated successfully.'); Mage::getSingleton('checkout/session')->addSuccess($message);…
Show Error Message in frontend $message = $this->__('Email Id Already Exist.'); Mage::getSingleton('core/session')->addError($message); Show Success message in frontend $message = $this->__('You have Register Successfully'); Mage::getSingleton('core/session')->addSuccess($message); Show Error Message in Admin page…
open /modules/homefeatured/homefeatured.php file find this : $products = $category->getProducts((int)($params->id_lang), 1, ($nb ? $nb : 10)); directly after that code, add this : if ($products) { shuffle($products); array_splice($products, ($nb ? $nb…
<a name="fb_share" type="button" href="http://www.facebook.com/sharer.php?u=">Share
You can easily find out number of online customer by the code in the content section useOnlineFilter(); echo “Online Customer “.count($collection); ?> Finding the Online Customer in magento You can…