Tuesday, October 12, 2010
Magento Developer Paradise on Twitter
Also, more information on Magento's blog: Developer Paradise Kick-OFF
Sunday, April 25, 2010
URLs in Magento
- getBaseUrl()
-getSkinUrl()
Next, when you create a link it's easy just to say:
.... href="http://www.blogger.com/customer/account"
instead you should use: ... href="<?php $this->getBaseUrl(); ?>customer/account" ...
For images:
img src="/skin/frontend/default/SKIN_NAME/images/rss.png"
instead you should use: img src="<?php $this->getSkinUrl('images/rss.png');?>" ...
Friday, May 01, 2009
Magento installation - login problems on localhost
Monday, April 27, 2009
Magecamp
Starting tomorrow I'll be attending Mage::Camp... I'll have to register first for my VIP pass, hope that does not take long...
My agenda includes the Keynote speech from Varien (Roy Rubin), Magento Enterprise Edition and I'll see maybe some Internet World sessions...
Magento Enterprise Edition is a platform with great potential to cover the needs of a medium/large e-tail company... I have in mind a lot of eCommerce companies in Romania that would benefit from that, lower TCO, better change management and more features for their front end ...
Also, offline retailers could benefit from promoting at least their products in an online environment, attracting new customers and so on...
I'd like to see Mobexpert, which now uses oscommerce based solution just for a catalog... or Bricostore, Praktiker, and so on using a solution that can offer lots of functionalities for getting the most out of their promotions, bundles, cross-selling, up-selling, etc...
I'll post some more opinions during tomorrow... So stay tuned...
Tuesday, January 06, 2009
Magento 1.2.0.1 - small fixes from 1.2
- Fixed checking customer ID in download controller
- Fixed “Incorrect table name…” SQL error during upgrade on some MySQL versions
- Added downlodable product type
- Implemented fulltext search
- Added layered navigation to search results
- Added option to disable Google checkout for selected products
- Added fixed amount product taxes
- Upgraded ZF library to version 1.7.2
Sunday, December 28, 2008
Zend Framework Quickstart - MySQL version
C:\web\Apache2.2\htdocsZend Framework library:
C:\web\Apache2.2\htdocs\ZendFramework-1.7.2\libraryand I've set in php.ini:
include_path = ".;c:\php\includes;C:\web\Apache2.2\htdocs\ZendFramework-1.7.2\library"1. Create a folder and unzip Quickstart sample application in that folder:
C:\web\Apache2.2\htdocs\zfquickstart #in my case2. Setup application paths Because you will not build a single application with ZF I don't see a good idea in including ZF within each application (that library folder in sample application folder). I keep it outside in htdocs and I've setup in php.ini include_path so I won't need to override include_path using set_include_path... So, if you want to change include_path in your php.ini you can do that. Or you can change index.php:
#set_include_path(APPLICATION_PATH . '/../library' . PATH_SEPARATOR .get_include_path());
set_include_path('C:/web/Apache2.2/htdocs/ZendFramework-1.7.2/library'.PATH_SEPARATOR . get_include_path());
So start your browser and go to:
http://localhost/zfquickstart/public/
You will see a success message from IndexController:
Hello, from the Zend Framework MVC! I am the index controllers's view script.View file is application/scripts/index/index.phtml Another thing that we need to fix is the base url, because css file for example is included as /css/global.css and we are in /zfquickstart/public/ and the correct path should be /zfquickstart/public/css/global.css There are many ways to solve that, using Zend_Router and so on... In bootstrap.php find:
$frontController->setControllerDirectory(APPLICATION_PATH . '/controllers');
#add this (you can create a piece of code to extract this from url):
$frontController->setBaseUrl('/zfquickstart/public');
#also find:
$view = Zend_Layout::getMvcInstance()->getView();
$view->doctype('XHTML1_STRICT');
#and add this line
$view->baseUrl = Zend_Controller_Front::getInstance()->getBaseUrl();
and in layouts/scripts/layout.phtml:
headLink()->appendStylesheet($this->baseUrl.'/css/global.css') ?>And now you have a nice css added to your layout. Now open public/.htaccess and replace:
RewriteRule ^.*$ /index.php [NC,L] #with RewriteRule ^.*$ index.php [NC,L]3. Setting up database for Zend Framework QuickStart application - MySQL version Create database and grant access:
create database zfquickstart; grant all on zfquickstart.* to 'zfquickstart'@'localhost' identified by 'zfquickstart'; flush privileges;schema.mysql.sql:
CREATE TABLE `zfquickstart`.`guestbook`( `id` INT (8) UNSIGNED NOT NULL AUTO_INCREMENT, `email` VARCHAR (50), `comment` TEXT, `created` DATETIME, PRIMARY KEY(`id`) ) TYPE = MyISAM;data.mysql.sql
INSERT INTO guestbook (email, comment, created) VALUES
('email.email@zendfoo.com', 'Hello! Hope you enjoy this sample zf application!', NOW());
INSERT INTO guestbook (email, comment, created) VALUES
('foo@bar.com', 'Baz baz baz, baz baz Baz baz baz - baz baz baz.', NOW());
You can run the above sql with phpmyadmin/some mysql gui... or you can create a version for load.mysql.php in scripts folder to load this sql intro database...
Now, setting up config. In application/config/app.ini, add this section:
[development] database.adapter = "PDO_MYSQL" database.params.host = "localhost" database.params.username = "zfquickstart" database.params.password = "zfquickstart" database.params.dbname = "zfquickstart"Note: in bootstrap.php the environment is development:
defined('APPLICATION_ENVIRONMENT')
or define('APPLICATION_ENVIRONMENT', 'development');
That's it for now...
Next episode: Creating a todo list application with Zend Framework
Friday, December 26, 2008
Magento 1.2 Alpha is available on SVN
Thursday, December 25, 2008
Magento introduction
$proxy = new SoapClient('http://mymagento.localhost/api/soap/?wsdl');
$sessionId = $proxy->login('api-user', 'your-api-key-here');
First we talk about this autentication part and then we shall import and export some products, customers maybe interaction with an open source CRM like vTiger and Sugar CRM.


