Saturday, November 11, 2017

SEO tips you should know to enhance ranking and traffic to your Magento shopping cart website

Learn & Copied from Internet :) Sharing for others ...

1. Update the Latest Version Of Magento Platform

You need to make sure that you are using the latest version of Magento. New releases will have best SEO support because it has improved security, bug fixes. This is the first thing you should give attention if you want to get high rank in search engine.

2. Optimize URLs  

It is better if URLs of your website do not have any codes. Follow these steps to clean URLs: System => Configuration =>Web =>Search Engine Optimization => URL Options, and then set Add Store Code to “No”. After this configuration is saved, product/category codes will not be automatically added to your URLs, which make it more SEO- friendly.
To radically clean URLs, in Search Engine Optimization menu, turn Server URL Rewrites to “Yes” . The phrase “index.php” will be removed from your URLs as well.
3. Use proper keywords
Magento has default sample content for product title and description, but it is not standard for SEO. You need to edit them by go to Configuration => Design => HTML Head. Meta title and description should be keyword-rich and unique. With the title, one rule is putting important keywords near beginning of your title as much as possible in order for search engines to realize them more easily. One more thing is eliminating words like “the”, “and” from your title. Do a similar action for category title and description, you will have a more SEO-friendly site.

4. Optimize product images

Don’t forget to optimize product images on your site. Make sure that titles can tell about the meaning of images other than a seri of meaningless words and numbers. In addition, similar to other titles, image’s title also should contain relevant keywords. Alt tags are as important as title and URL. Add alt tags to images to get best visibility in search system.

5. Avoid Duplicate Content

When the same product is shown in different categories in your site, or even a piece of content appears in two pages, it is a mistake called duplicate content. Google will not appreciate sites with duplicate content. Let modify canonical link to figure out this problem. Go to System =>Configuration =>Catalog =>Search Engine Optimization and set Canonical Link Meta Tags for Products and Categories to Yes.
6. Speed up your site
Loading speed can influence the site ranking. As Google has stated, low loading sites are not preferable. Only one lower second can drop the the site ranking. There are various ways to speed up your site, below is some simple but easy ways for you:
> Enable all caching features (System => Cache Management)
> Enable Flat Catalog Categories and Flat Catalog Product  (System => Configuration, Catalog => Catalog,Frontend)
> Merge CSS and JS files System => Configuration, Advanced => Developer => JavaScript Settings/ CSS Settings
> Reduce the number of external files that can be downloaded from your server

7. Generate a Google Sitemap

With some simple steps, you can generate a Google sitemap on your site, which helps you provide information about site link for search engines to crawl.
1. Go to Catalog => Google Sitemap => Add new.
2. In Filename, type “sitemap.xml”
3. In Path field, fill out with the directory on server that the sitemap.xml file will be saved.
4. In Store View, select the store view you set up the sitemap for
5. Save and Generate

8. Modify Robots.txt File

Why should we take a look at robots.txt file? In case you create a site without real products, Magento adds a robots.txt file to your site so that search engines will not index it. Your site is real, right? So don’t let robots.txt file prevent search engine find out your site.
By default, Robot setting is “NOINDEX, NOFOLLOW”, which make your site cannot appear on search results. To solve this problem, go to System => Configuration => Design => Default Robots, and then change it to “INDEX, FOLLOW”.
8 tips above can bring better organic traffic for your site, increase site rankings and search engine visibility.


================================================================
https://www.milople.com/blogs/magento/add-featured-product-magento-store-homepage.html

How to add featured product on Magento Store homepage


You may not aware of SEO advantages of having featured product 0n Magento store homepage. Many store owners have found the solution to make updates in sites regularly by adding featured products and most of them have noticed improvement in indexing. Another feature to point out regarding SEO is having featured product on homepage will get higher priority in searches compared to other products. One can promote products and let them showcase in a better way to your customers and that can result in boost of sales of your store. Here I have described five steps to make featured product attribute and to display it on home page.
STEP: 1. To make featured product attribute.
  • Login to Magento admin area.
  • Now add attribute from tab
Catalog–>Attribute –> Manage Attribute–>Add New Attribute.
Attribute Properties to be set
  • Attribute Identifier: featured
  • Scope: Store View
  • Catalog Input Type For Store Owner: Yes/No
  • Unique Value (not shared with other product): No
  • Values Required: No
  • Input Validation for Store Owner: None
  • Apply To: All Product Types
Front End Properties to be set
  • Use In quick Search: No
  • Use In Advance Search: Yes
  • Comparable on Front-end: No
  • Use In Layered navigation (Can be used only with catalog input type ‘Dropdown‘): No
  • Visible on Catalog Pages On Front-end: Yes
Manage label/options to be set
  • Default: Featured Product
  • English: Featured Product
Now add featured product attribute in attribute set:
Go toCatalog –>Attributes–>Manage Attribute sets.
Our featured product attribute will be displayed in “Unassigned attribute” in right end side of the screen. Now drag and drop our “featured product” attribute in ‘General’ tab of “Groups” displayed in left end side of screen. Now click on “save attribute set” button. See the screen shot for reference.
Edit-attribute-set
STEP: 2. Create featured product block file.
  • Go to Local directory app/code/local/ and create directory.
  • Create directory level
“Featured Product/Catalog/Block/Product/Featured.php”
Copy and paste this code in Featured.php file.
STEP: 3. Create template file for featured product.
Go to directory “app/design/frontend/my_theme/template/catalog/product/” and make featured.phtml file.
Replace my_theme with your current theme name.
Copy and paste this code in featured.phtml file.
STEP: 4. Add new block to the app/etc/local.xml
Add the following code after the global tag ends:
STEP: 5. Add featured product block in home page.
Copy and paste this featured product block on home page
Now the featured product on your home page can be seen”¦..



Thursday, November 9, 2017

php question and answer for BIT UCSC UoM Final year student project

php question and answer for BIT UCSC UoM Final year student project


Issue:
Values retrieved from database in textbox missing after spaces ...

Solution:
Value attribute of inputs should be with quotes too:

value='" . $value . "'
echo "Employee Name: <input type='text' name='EmployeeName' value='". $row['employee_name'] ."'><br/>";


Issue:
Multiple table row values inset to datbase as an array

Solution:
multiTableInsert

=================================================================
View -  mark array textbox
<tr>
  <td><input type="text" name="alert_Column1[]" value=<?php echo $row[1]; ?>></td>                                                  
</tr>

module,
$alert_Column1 = filter_var($_POST['alert_Column1'], FILTER_SANITIZE_STRING);

    foreach ($_POST["alert_Column1"] as $rec => $value) {
        $alert_Column1 = $_POST["alert_Column1"][$rec];

        $query = "INSERT INTO tbl_alert_1 SET alert_Column1 = :alert_Column1 ";
        $stmt = $conn->prepare($query);
        $stmt->bindParam(':alert_Column1', $alert_Column1);
        $stmt->execute();
    }

=================================================================

are php sessions secure
are php functions case sensitive
are php variables case sensitive
are php variables global
are php files safe
are php and python similar
are php sessions cookies
are php objects passed by reference
are php developers in demand
are php namespaces case sensitive
can php run on iis
can php run without server
can php be compiled
can php be embedded in html
can php be used for desktop applications
can php session be hacked
can php access local storage
can php connect to sql server
can php code be seen
can php and node.js work together
php did you mean
php did you mean search
phpunit did not finish successfully
php did not respond properly to the request
php did you mean script
php did you forget a use statement
php did not show error
php did not working
when did php 7 come out
do php files need to be executable
do php arrays start at 0
do php sessions expire
do php online
do php function on button click
do php sessions use cookies
do php comments affect performance
do php function onclick
do php loop
do php function
does php support multiple inheritance
does php require a compiler
does php compile
does php need a server
does php 7 support mysql
does php have classes
does php support overloading
does phpmyadmin work with mariadb
does php have garbage collection
php had removed
php have_posts
php have_rows
php have string
php have key
php have headers been sent
php have_posts function
php have property
php have array value
php have dynamic variables
must have phpstorm plugins
how php works
how php session works
how php generate html
how php and javascript interact
how php works with html
how php interpreter works
how php code is parsed
how php mail function works
how php works with apache
how php-fpm works
is php case sensitive
is php a programming language
is php dead
is php object oriented
is php dying
is php still relevant
is php hard to learn
is php open source
is php easy to learn
is php outdated
should php files be executable
should php classes be in separate files
should php still be used
php should not be called statically
phpunit should throw exception
phpspec should throw exception
php should i close mysql connection
phpspec should be called
phpunit should be called
phpunit should not throw exception
phpmyadmin was not found on this server
php was not found on this server
php was developed by
php was not closed
phpmyadmin was not found on this server linux
phpmyadmin was not found on this server centos
phpmyadmin was not found on this server ubuntu 18.04
phpmyadmin was unable to kill thread
phppgadmin was not found on this server
phpunit was not expected to be called
what php version
what php stands for
what php version am i running
what php can do
what php version for wordpress
what php means
what php is used for
what php is my site running
what php developer do
what php version does wordpress use
when php session expire
when php was developed
when php will die
when php session end
when php destructor is called
when php 8
php when to use static methods
php when to use traits
php when to use interface
php when to use abstract class
where php.ini
where php is used
where php.ini file is located
where php.ini ubuntu
where phpmyadmin store databases
where php.ini wordpress
where php.ini centos
where php error log
where php.ini mac
where php installed in linux
which php version
which php.ini
which php version to use
which php version should i use
which php.ini is being used
which php.ini am i using
which php framework is best
which php version for wordpress
which php framework is easy to learn
which php is apache using
who phoned me
who php works
who.php file
who php programming language
php who am i
php who called function
php who is online
php who is logged in
php who called me
php who uses it
why php is used
why php is better
why php is called hypertext preprocessor
why php is dying
why php is scripting language
why php 7 is faster
why php is loosely typed language
why php is better than java
why php logo is elephant
why php is good
will php die
will php survive
will php ever die
will php be replaced
will php work in html file
will php code work in .html
will php mail work in localhost
will phpunit
will php become obsolete
will php run on iis
php could not load
would you use php

Sunday, February 12, 2017

Monday, December 19, 2016

Change timezone to Apache server , PHP and MySql in XAMPP

Change timezone to Apache server , PHP and MySql in XAMPP
I have installed XAMPP in my Windows machine and I want to alter the timezone in Apache HTTP server, PHP module and MySql in order to see proper dates in server error.log, access.log and php_error_log output.
After some searching I found the solution:

1. In httpd.conf (\xampp\apache\conf\httpd.conf) , add the following line:

1
2
# Set timezone to Europe/Athens UTC+02:00
SetEnv TZ Europe/Athens

2. Edit php.ini (\xampp\php\php.ini) date.timezone value in [Date] section:

1
date.timezone = "Europe/Athens"
You can find the available PHP timezones in http://php.net/date.timezone

3. In my.ini (\xampp\mysql\bin\my.ini) add or replace

1
default-time-zone = "Europe/Athens"
Now restart Apache HTTP and MySQL server and you are done!
Set timezone to Africa/Harare




Import database in phpmyadmin XAMPP if got error like this... "No data was received to import. Either no file name was submitted, or the file size exceeded the maximum size permitted by your PHP configuration."

try to edit after change into php.ini :
upload_max_filesize = 10M 
post_max_size = 20M 
memory_limit = 128M

MSc BIT BSc HND Edxcel PHP Web Application Projects Assignments Guidance.
London A/L O/L ICT Class
Individual / Group / Online classes in English / Sinhala / Tamil. Sample PHP Projects/Assignments Exam Papers, Tutorials, Notes and Answers will be provided. Call +94 777 33 7279 | eMail itclasssl@gmail.com | Skype ITClassSL

Sunday, June 12, 2016

IT6105 BIT UCSC Interim Report Chapters Guidelines Bachelor of information technology university of colombo

IT6105 - INDIVIDUAL PROJECT GUIDELINES by PROJECT EXAMINATION BOARD (PEB)


Ref : http://bit.cmb.ac.lk/sites/default/files/bit_docs/IT6105%20Project%20Guidelines_2016.pdf



Title Page
This comprises the title of the dissertation, candidate’s name, BIT registration number, index number, the name(s) of the supervisor(s), the date of submission (month and year), and the following statement “This dissertation is submitted in partial fulfilment of the requirement of the Degree of Bachelor of Information Technology of the University of Colombo School of Computing”. The title of the dissertation should be clear and should describe the main area of work and will identify the name of the client. Do not include any abbreviations in the title. Refer the sample template for further details

Abstract 
The abstract should help a prospective reader decide whether to read the entire dissertation or not. A good abstract could be written using just a few paragraphs. For example, a four paragraph abstract could contain the following. The problem that you have solved can be given as the first paragraph. The second paragraph can elaborate on the first paragraph for example by giving the scope of your project and functionalities of the developed system. The third paragraph can contain the methodologies, technologies, tools, languages and databases that you used in the design and implementation of the solution and the last paragraph can contain the status of your project like for example whether it achieved the anticipated benefits

Contents 
Contents identify all sections of the dissertation under the given preface, chapter and appendix headings along with their page numbers. It is recommended that sections are numbered up to three levels e.g., 5.2.1. Chapter 1 begins on page 1. Use roman numerals for all previous pages excepting the title page. That is, the numbering should start with the declaration page with page number ii. The overall structure of dissertation content should show a clear progression of logical thought. Choose self-explanatory section and subsection titles relevant to the topic under consideration. 20 List of Figures All figures in the dissertation should be numbered and named using an appropriate caption. Numbering is done using chapter number and a sequence number (e.g. Figure 3.2 for second figure in Chapter 3). Figures in the appendices are numbered using the Appendix letter (e.g. Figure C.2 for second figure in Appendix C).

List of figures 
consists of figure number, captions and page numbers. List can be generated using features of a word processing package. All figures used in the main chapters must be described in text prior to its use and must be referred to using its figure number. For example, in Section 3.5 of this document Figure 3.1 is referred to in text in the paragraph before the figure. List of Tables All tables in the dissertation should be numbered and named using an appropriate caption. Numbering is done using chapter number and a sequence number (e.g. Table 3.2 for second table in Chapter 3). Tables in the appendices are numbered using the Appendix letter (e.g. Table C.2 for second table in Appendix C).

List of tables 
consists of table number, captions and page numbers. List can be generated using features of a word processing package. All tables used in the main chapters must be described in text prior to its use and must be referred to using its table number. In section 5.1 of this document Table 5.2 is referred to in text in the paragraph numbered as (18).

List of Acronyms
Provides the meanings of all abbreviations used in the dissertation in alphabetical order. Refer page (ix) for an example.

Chapter 1 – Introduction This is one of the most important components of the report. The motivation for the project should be argued here. Then a brief introduction to the project should be provided indicating its objectives and scope. Finally, a paragraph containing an outline of the remaining chapters (starting with Chapter 2) is recommended.

Chapter 2 – Analysis In this chapter, information on the existing system should be provided through a TopLevel Use Case Diagram. Note: The candidates can incorporate different types of diagrams to describe the processes and functionalities of the existing system. However they should select only the diagrams that are most appropriate to their project. Also they should also be judicious in picking the right amount of detail that the reader- especially the PEB- will appreciate and relegate any detailed diagrams to the appendix B. The candidate should review at least two existing software that are similar to the proposed system. The review must be comprehensive and up-to-date. It may be appropriate to incorporate criticisms of these systems where needed (and to justify the criticisms). This review will also help you identify the ideas from these software that are useful and can be applied to your project and those that are not. Also note that everything used should be cited by reference to the ``References'' section at the end of the dissertation. An analysis of the requirements should also be provided in this chapter. For example, the requirements of the system could be listed. A specification of the number of users, the frequency of use, and the jobs of the users could be provided. Functional requirements covering system functionality expected by the users and non-functional requirements covering reliability, portability, and response and processing times should be addressed with detailed justification. Description of the prerequisites that must be applied for the system to be used (called success factors) should be given. Include a section to the end of the analysis chapter to describe the selected methodology. Here candidate can describe the selected methodology such as Rapid Application Development (RAD), Rational Unified Process (RUP), an Agile Process, etc.

Chapter 3 – Design In this chapter the candidate should consider different competing design strategies (“alternate solutions” as given in dissertation evaluation form –see Table 6.1) for his system. The different strategies may involve the way of development (developing from 22 scratch, using open-source components, etc.,), the development platform (stand-alone personal computer, client-server environment, etc.,), choice of system software (Windows, Linux, etc.). The candidate should compare how the project requirements are satisfied through each alternative as well as the costs involved in each and select with justification a single design strategy for implementation. The design of the proposed system should be another major section of this chapter. The structure of the system should be clear to the reader after reading this chapter. There should be evidence of a methodical approach to the design of the system. In this chapter, the candidate should describe the design of the system referring to different types of diagrams/models; for example, if non-object oriented methodology has been selected then include use case diagrams, use case narratives, activity diagrams, and entity relationship diagrams, and if object oriented methodology has been selected then include use case diagrams and use case narratives, class diagrams, sequence diagrams, etc. Note: Do not forget to refer all figures and tables in text. User interface design is the next major section of this chapter. The candidates should describe the design considerations for designing user interfaces of the system and justify the design decisions that were made. Layouts of relevant interfaces should be included in order to clarify the design decisions taken.

References 
It is very important to acknowledge any of the work of others that the candidate used or adapted in the project, or that provided the essential background or context to the dissertation. Please note that IEEE is the recommended referencing and citation style for your dissertation. The details of these references are provided in References section of the dissertation. You should include any web links too. This is how the referencing should be done. In the main body of text, external work may be referred for example in the following ways:

Example 1: Systems analysis and design techniques are considered essential for developing client/server and web-centric applications [6, 7].
Example 2: Software testing [8] is an iterative process.
Example 3: “Plagiarism is an act of fraud. It involves both stealing someone else's work and lying about it afterward” [9].

In the References section, each citation should be listed in the relevant format (Refer to an IEEE referencing and citation style guide). For example, the reference section entries for the above two examples would be; [6] J.L. Whitten and L.D. Bentley, Systems Analysis and Design Methods, 7th ed. Tata McGraw-Hill, 2007. [7] UCSC, The Virtual Learning Environment for the BIT Students, 2006. [Online] Available: http://vle.bit.lk , [Accessed: 30 Oct, 2013]
[8] I. Sommerville, Software Engineering, 8th ed. Addison-Wesley, 2006.
 [9] Plagiarism.org - Best Practices for Ensuring Originality in Written Work, "What is Plagiarism?", 2015. [Online]. Available: http://www.plagiarism.org/plagiarism- 101/what-is-plagiarism/. [Accessed: 29- Dec- 2015].
Please note that every item included in the references should be cited within the text of the dissertation. Use a referencing and citation style guide from IEEE. The candidate may refer to IEEE Editorial Style Manual [11].

Page Number
All pages should be numbered including Chapter 1 beginning from page 1. Use roman numerals for pages before that as used in this guidelines document.

Report writing style should be of the passive form. It is considered very bad style in a formal report to make explicit references to what the candidate himself did as in for example “I decided...”. Scientific papers never use the first person in this way. The passive form as in “it was decided...” is strongly preferred. In the dissertation, the first person could be used judiciously in the introduction and conclusions, but the use of “we” is recommended over “I”. The use of first person writing should be avoided everywhere else in the dissertation

The suggested chapter structure for the dissertation is given in section 5.2.2. If needed, the candidate should carefully decide on suitable sections and sub-sections for each chapter. Section and sub-section headings should be short, meaningful, and similar in tone. It is not recommended to keep more than two levels of subsections, unless it is absolutely necessary. Note that when a section of text is subdivided, there should ordinarily be at least two sub-sections (e.g., If there is no Section 1.2, you should never number a section as Section 1.1 as then a reader would look for a non-existent Section 1.2)

Please note that in writing, only the first letter of a proper noun should be capitalized at the middle of a sentence. All the others should be written in lowercase. If you are not sure whether to capitalize or not, use lower-case.

Note also that you should not use shortened word forms in writing. Thus for example, have not should be used instead of haven’t, is not instead of isn’t, do not instead of don’t and so on.

Plagiarism is the presentation of another person’s thoughts or words as though they were candidate’s own. The candidate should avoid this when writing his dissertation. All sentences or passages quoted in report from other people’s work have to be specially acknowledged by clear cross-referencing to author, work and page(s). Direct quotations from published or unpublished work of others should always be clearly identified as such by being placed inside quotation marks, and full reference to their source should be provided in the proper form. Equally, if another person’s ideas or judgements are summarized, the candidate should refer to that person in the main text of the dissertation, and include the work referred to in the references section of the dissertation. Failure to observe these rules may result in an allegation of cheating.





What Are the Differences Between Inventory & Stock Control System?


Inventory

Inventory includes a small business's finished products, as well as the raw materials used to make the products, the machinery used to produce the products and the building in which the products are made. In other words, anything that goes into producing the items sold by your business is part of its inventory.

Stock

Stock is the finished product that is sold by the business. In some cases, stock is also raw materials, if the business also sells those products to its customers. For example, a car dealership's stock includes cars, but also can include tires, engine parts or other car accessories.

Differences Between Inventory and Stock

While stock deals with products that are sold as part of the business's daily operation, inventory includes sale products and the goods and materials used to produce them. For example, the cars, car parts and accessories are sold during normal business practices, but the machines that run diagnostic tests on cars or the car lot itself are not. Inventory takes in account all of the assets a business uses to produce the goods it sells and determines the sale price for the stock. The stock determines the amount of revenue a business generates. The more stock that is sold, the higher the revenues.



MSc BIT BSc HND Edxcel PHP Web Application Projects Assignments Guidance.
Sample PHP Projects/Assignments.
London A/L O/L ICT Individual / Group / Online classes in English / Sinhala / Tamil.
 Exam Papers, Tutorials, Notes and Answers will be provided. 
Call +94 777 33 7279 | eMail itclasssl@gmail.com | Skype ITClassSL

Grade 6 Civic 1.3 Self identity, Special individual, Focus your attentio...

Identity and Self-Recognition: Students are encouraged to understand and embrace their own identities. Good qualities and characteristics he...