Enable SEO friendly URLs in Opencart

We can easly create the SEO friendly URL in Opencart. Just followed the some steps in opencart admin and add the some code on .htaccess file.

Kindly follow the steps:

Login to your OpenCart admin panel.
Navigate to System > Settings and click the “Edit” link.
On the “Server” tab, set “Use SEO URL’s” to “Yes” and save the changes.
Now go to the category/product and click on edit link, then go to the Data Tab and write your desire url in SEO Keyword field.

And add this code on .htaccess file

 

RewriteBase /

RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
RewriteRule ^download/(.*) /index.php?route=error/not_found [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]

If your project are located in folder then add the folder name

For example :

RewriteBase / (If project located on root)
RewriteBase /add folder name here/ (If project located in any folder)

 

Bug JTableMenu: :_getNode adding components Joomla

Problem

I am not sure where to start here. I have the same error showing up and new components simply don’t show up in the Joomla 3.5.6 admin Components menu. The components are installed into the site OK but no sign within Admin.

exception ‘UnexpectedValueException’ with message ‘JTableMenu: :_getNode(1, ) failed in /path/libraries/joomla/table/nested.php:1522

Solution

Adding this in the installation or upgrade, etc

INSERT INTO `prefix_menu` (`id`, `menutype`, `title`, `alias`, `note`, `path`, `link`, `type`, `published`, `parent_id`, `level`, `component_id`, `checked_out`, `checked_out_time`, `browserNav`, `access`, `img`, `template_style_id`, `params`, `lft`, `rgt`, `home`, `language`, `client_id`) VALUES
(1, '', 'Menu_Item_Root', 'root', '', '', '', '', 1, 0, 0, 0, 0, '0000-00-00 00:00:00', 0, 0, '', 0, '', 0, 137, 0, '*', 0)

Add custom page title and meta description only product pages in shopify

Go to the theme.liquid file in editor and replace these lines with your existing title and meta description code.

<!---- Title and description ---->
<title>
{% if product %}
Buy {{ product.title }} Online India – {{ shop.name }} {% else %}
{{ page_title }} {% if current_tags %} | tagged "{{ current_tags | join: ', ' }}"{% endif %}{% if current_page != 1 %} | Page {{ current_page }}{% endif %}{% unless page_title contains shop.name %} | {{ shop.name }}{% endunless %}
{% endif %}
</title>

{% if product %}
<meta name="description" content="Buy {{ product.title }} at {{ shop.name }}. Enjoy best deals, free shipping, offers and much more on it. Shop Now!">
{% else %}
{% if page_description %}
<meta name="description" content="{{ page_description | escape }}">
{% endif %}
{% endif %}

Read more

How to add cononical tag in opencart

We have found the way to add the canonical tag on OpenCart website in a easy way…

First we find the catetory.php file from the category folder

catalog/controller/product/category.php file

Find this line:

if ($category_info) {

and add the following lines after that

$can_url=$this->url->link("product/category","path=".$this->request->get[‘path’]); $this->document->addLink($can_url,”canonical”);

Second we find the catalog controllers file

catalog/controllers/common/home.php

Find this line:

$this->document->setDescription($this->config->get(‘config_meta_description’));

and add the above code after that

$can_url=$this->url->link(‘common/home’);
$can_url=str_replace(‘index.php?route=common/home’, ”, $can_url);
$this->document->addLink($can_url,’canonical’);

How can I make a dynamic canonical tag on Magento

We generally recommend to hide internal site search from getting indexed

/app/design/frontend/{your_package}/{your_theme}/template/page/html/head.phtml

Add this code:

<?php
// code for show canonical tag on all page
$current_url = Mage::helper('core/url')->getCurrentUrl();
if(!empty($current_url))
{
$url2 = substr($current_url, 0, strpos($current_url, '?'));
if(!empty($url2)) {
?>
<link rel="canonical" href="<?php echo $url2; ?>" />
<?php } else { ?>
<link rel="canonical" href="<?php echo $current_url; ?>" />
<?php } } ?>

Changing the Contact Redirect Page Joomla 3.4.6

  • Log into your Joomla 3.4.6 admin dashboard
  • In the top menu, click Menus and then click on the menu where your contacts menu item is.
  • In the list of menu items, click on the Contacts menu item you want to change the redirection of
  • Click the Advanced Options tab towards top of the page
  • Click Mail Options to expand the available options under this setting.
  • Find the Contact Redirect setting, enter a url to redirect users to after the form has been submitted, and then click Save in the top left of the page.

Breadcrumbs for Product page

Add additional breadcrumbs links to Product Page.
If customers go to product page via current url-link, via browser or via search (Google, Yahoo), or search in Magento – customer will see short breadcrumbs. Like “Home->Product Name”. This normal.
But in Search systems (like Google) – will not show breadcrumbs for product page.

The module Breadcrumbs for Product page – will help with breadcrumbs for Product. Now in Google search result will show breadcrumbs for Product, of course if product has categories and not blocked it 🙂 .
So, with extension Breadcrumbs for Product page – will breadcrumbs like “Home->Category1->Category2->Product Name”

We got this blog from www.magentocommerce.com for blog more information Click Here