Page 4 - Premium Plugin
-
- 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
I have a downloadable product. After I order the product and when my order is complete, I am able to download the product links from ‘My Downloadable Products’ menu in Customer Account section.
I go to ‘My Downloadable Products’ section and I click on the links to download. However, the PDF file opens in the browser itself. I would like to have the feature that asks to download / save as instead of directly opening in the browser.
It is fine with ZIP files. It asks to download and save. However, the PDF files, Images, HTML files, etc. are directly opened in the browser. I want them to download and save. So, a window appearing and asking to save and download the file is what I want.
Solution:
There is a very easy solution to this.
By default, Magento has the Configuration settings to make those files open in the browser itself. You can adjust the configuration settings in Magento Admin to ask for download files instead of opening in the browser.
- Go to
-
- January 11, 2014
When you add jquery in your magento .
if you are got following error comes.
1) You can`t add product in magento shopping cart,
2) Product image not shown correctly in product view.
Solution :
open the file in
{magento root folder}/app/design/frontend/default/{your magento theme}/template/page/html/head.phtml
and
Paste the following lines
<script type="text/javascript">// <![CDATA[jQuery.noConflict();
// ]]>after
<!--[if lt IE 7]>
........
.........
<![endif]--> -
- January 11, 2014
Here we discuse about how to add vTiger Sales Order item detail in any where in your vTiger , for example if you want to add Sales Order Item detail in your email .you just need that is just add simple function . if you want to add salesorder item view using single function.
getDetailAssociatedProducts('SalesOrder',$focus);
to youse the above function you got all the detail in your html format .
-
- 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