Page 4 - Wordpress
-
- January 11, 2014
Step 1:
Go to this folder "{Your vtiger root}/vtlib/ModuleDir/" copy any of the folder you want to create module for which version if vtiger . Paste in to {Your vtiger root}/modules/{Your Module name}.
Step 2:
Go to following directory "{Your vtiger root}/modules/{Your Module name}/" . You have to change the files name as following. Replace "ModuleFile" into {Your Module name}
ModuleFileAjax.php -> {Your Module name}Ajax.php
ModuleFile.js -> {Your Module name}.js
ModuleFile.php -> {Your Module name}.php
Step 3:
edit the following file in your faverot editor "{Your vtiger root}/modules/{Your Module name}/{Your Module name}.php"
change "payslip" into "{Your Module name}" case sensitive
Change "ModuleClass" into "{Your Module name}"
-
- January 11, 2014
In this tutorial we tell you how to retrive the content from database with the use of table name . here is the core help to fetch the content using select query .
$connection = Mage::getSingleton('core/resource')->getConnection('YOUR_DATABASE_NAME');
//I assuming that you created the model for your table
$result = $connection->fetchAll("SELECT *FROM YOUR_TABLE");///just checking the result
print_r($result);Hope this is helps you .
-
- January 11, 2014
how to add wordpress header and footer in magento.after complete my previus tutorial How to integrate magento and wordpress follow my simple steps.
Step 1:(include wordpress header in Your magento store )
Go to this link in your file manager
"
YOUR-MAGENTO-FOLDER/app/design/frontend/default/YOUR-THEME/template/page/html/header.phtml
"
in top of this file u add this simple wordpress function .
"<?php get_header();?>
"
now You check in your magento store wordpress header show nice .
Step 2:(include wordpress footer in Your magento store)
Go to this link in your file manager"YOUR-MAGENTO-FOLDER/app/design/frontend/default/YOUR-THEME/template/page/html/footer.phtml"
open that file delete all coding in that file u add this simple wordpress function only.
"<?php get_footer();?>
"now You check in your magento store wordpress footer show nice .
Note:after adding all this you see some errors in prototype.js file. how to clear this error in next tutorial. -
- January 11, 2014
Magento e-commerce has a standard newsletter function that is useful if you get it to work. This post will highlight the major reasons why your newsletter is not sent to your customers.
- Magento schedules and sends the newsletters using a cronjob script called “cron.php” in your Magento installation root folder. To schedule this cronjob you need to access your web server using SSH (You can use for example Putty). For more information see the Magento wiki.
- If you don’t want to schedule the cronjob you need to go twice to the cron.php file in your browser e.g. www.yoursite.com/cron.php every time you want to send your newsletter. The first time it will schedule the newsletter and the second time it will send it.
- After login with ssh type: crontab -e This will open an editor. The contents may be empty if you have never set up crontabs for the current user.
- To schedule the cronjob every 5 minutes you should enter: */5 * * * * php /absolute/path/to/magento/cron.php
- Save and close
- Now you can
-
- January 11, 2014
1.1 Defining your module
Once you've set up Magento and entered it into the root Magento directory, go into app/code/local/. This will be where your module lives on the system. The first folder is your namespace, usually your company name. Then directory underneath this is your module name.
All your module folders will live underneath this module directory. We will create many here, but for starters just create the etc/ and controllers/ directories. We will also create a file called config.xml in this etc/ directory. This is the main, and incredibly important, the configuration file for your module.
Create this folder structure now. Your directory layout should look as follows:
[magentodir]/app/code/local/NAMESPACE/MODULENAME/etc/config.xml
[magentodir]/app/code/local/NAMESPACE/MODULENAME/controllers/
The content of config.xml should be as follows. It adds this module to the rest of the <modules> in the Magento system. And everything is in a module, even the 'core' Magento classes