Community Forums

Sitemap generator For Opencart 1.40

Coding & concept discussion for OpenCart v1.x development

Sitemap generator For Opencart 1.40

Postby alex.lin » Wed Jun 02, 2010 4:28 pm

This Sitemap generator is a plugin for Opencart 1.40. You could use it to generate google site map for your own website.

sitemap.jpg
sitemap.jpg (33.25 KiB) Viewed 8344 times


The sitemap.xml , here is the example:

http://www.tylsoft.com/sitemap.xml

You could download that from

http://www.tylsoft.net/Opencart-SiteMap

Also you could download that from

http://www.cnopencart.com/viewforum.php?f=7

Or download here

sitemap-1.4.zip
(14.76 KiB) Downloaded 1237 times
PHP,Java and rails Developer

My site.
- http://www.cnopencart.com opencart中文站
- http://www.tylsoft.net/Minimum-Order-Plus
- http://www.tylsoft.net/Banner-AD-Module

More modules at http://www.tylsoft.net, Tylsoft supply perfect module, template and custom service.
alex.lin
 
Posts: 107
Joined: Wed Jun 02, 2010 4:15 pm

Re: Sitemap generator For Opencart 1.40

Postby Qphoria » Wed Jun 02, 2010 5:19 pm

Doesn't 1.4.0 come with a google sitemap feed already?
Image Image
Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
User avatar
Qphoria
Administrator
 
Posts: 18212
Joined: Mon Jul 21, 2008 7:02 pm
Donate to Qphoria

Re: Sitemap generator For Opencart 1.40

Postby Xsecrets » Wed Jun 02, 2010 6:55 pm

why yes it does. I have a store running 1.3.4 and it had the sitemap and base feeds.
Xsecrets
 
Posts: 5042
Joined: Sat Oct 24, 2009 7:51 pm
Location: FL US

Re: Sitemap generator For Opencart 1.40

Postby ifyouseek » Wed Jun 02, 2010 11:11 pm

i think google will alway search domain.com/sitemap.xml for a sitemap; also Google does take into account the neatness of file structure and site navigation when ranking a page, so maybe it would be preferable for it to be located here. ???
ifyouseek
 
Posts: 158
Joined: Thu May 06, 2010 8:40 am

Re: Sitemap generator For Opencart 1.40

Postby alex.lin » Thu Jun 03, 2010 1:14 am

Qphoria wrote:Doesn't 1.4.0 come with a google sitemap feed already?


this sitemap is used to submit to google, so that google could index your page better.

here is some reference :

A New Standard: Search Engine Giants Adopt the XML Protocol
In 2005, the search engine Google launched the Sitemap 0.84 Protocol, which would be using the XML format.
A sitemap is a way of organizing a website, identifying the URLs and the data under each section. Previously, the sitemaps were primarily geared for the users of the website. However, Google's XML format was designed for the search engines, allowing them to find the data faster and more efficiently.
PHP,Java and rails Developer

My site.
- http://www.cnopencart.com opencart中文站
- http://www.tylsoft.net/Minimum-Order-Plus
- http://www.tylsoft.net/Banner-AD-Module

More modules at http://www.tylsoft.net, Tylsoft supply perfect module, template and custom service.
alex.lin
 
Posts: 107
Joined: Wed Jun 02, 2010 4:15 pm

Re: Sitemap generator For Opencart 1.40

Postby Qphoria » Thu Jun 03, 2010 2:24 am

Yea, OpenCart already comes with the google sitemap option. It is under "Extension->Feeds"
Image Image
Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
User avatar
Qphoria
Administrator
 
Posts: 18212
Joined: Mon Jul 21, 2008 7:02 pm
Donate to Qphoria

Re: Sitemap generator For Opencart 1.40

Postby alex.lin » Thu Jun 03, 2010 3:40 am

ha, I know that. this is just one more option for opencart user, and also could customize the Change frequency and Priority.
:)
PHP,Java and rails Developer

My site.
- http://www.cnopencart.com opencart中文站
- http://www.tylsoft.net/Minimum-Order-Plus
- http://www.tylsoft.net/Banner-AD-Module

More modules at http://www.tylsoft.net, Tylsoft supply perfect module, template and custom service.
alex.lin
 
Posts: 107
Joined: Wed Jun 02, 2010 4:15 pm

Re: Sitemap generator For Opencart 1.40

Postby SolidSite.co.uk » Wed Jun 16, 2010 12:25 pm

If you change your .htaccess file as follows google (and other search engines) will find the sitemap at the standard location.

After the lines:
RewriteEngine On
RewriteBase /

Add:
RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L,QSA]
I'm Chris, SolidSite.co.uk is my website - Thanks to Roboform for screwing up the username field...
User avatar
SolidSite.co.uk
 
Posts: 5
Joined: Wed Feb 10, 2010 1:27 am
Location: Hove, UK

Re: Sitemap generator For Opencart 1.40

Postby yukai.lin » Thu Jun 17, 2010 4:05 am

thanks for your remind~ :)
http://www.tylsoft.net - supply opencart extensions,opencart template,etc.
opencart中文站 - http://www.cnopencart.com
yukai.lin
 
Posts: 13
Joined: Fri Dec 18, 2009 1:13 pm

Re: Sitemap generator For Opencart 1.40

Postby tdweb » Wed Sep 01, 2010 2:44 pm

Qphoria wrote:Yea, OpenCart already comes with the google sitemap option. It is under "Extension->Feeds"


I active Google Sitemap option on my store (8748 products) and I'm geting this error:

"Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 86 bytes) in /home/computer/public_html/loja/system/database/mysql.php on line 29"

Can any buddy help me?
tdweb
 
Posts: 23
Joined: Fri Jun 04, 2010 2:35 pm

Re: Sitemap generator For Opencart 1.40

Postby dbassa » Wed Sep 29, 2010 9:19 pm

Same for me... :(
User avatar
dbassa
 
Posts: 229
Joined: Mon May 18, 2009 4:11 pm
Location: Spain

Re: Sitemap generator For Opencart 1.40

Postby kgkaraoke » Mon Jun 27, 2011 5:53 am

Qphoria wrote:Doesn't 1.4.0 come with a google sitemap feed already?


Yes, but with apologies to Daniel, it's far from optimum. On the plus side it's free, so it's up to you.

On our site http://store.kgkaraoke.com we use the xml-sitemaps stand-alone sitemap generator and it works like a charm.
You can see the results at: http://store.kgkaraoke.com/sitemap.xml

We don't want any of the "funny" urls showing up (the one's with the question marks) so we locked-out in the sitemap generator any such url by placing ? in the ignore box.

The generator's only $19.99USD and it's well worth it. We've disabled the standard sitemap generator and configured XML-Sitemap to output the sitemap as sitemap.xml in the home directory (the sitemap needs write permission, chmod 666).

http://www.xml-sitemaps.com/
kgkaraoke
 
Posts: 89
Joined: Fri Oct 29, 2010 1:06 am

Re: Sitemap generator For Opencart 1.40

Postby DrunkMunki » Wed Jul 20, 2011 10:01 am

or you could use the inbuilt system for free.

in version 1.5 it can be found at Extensions -> Product Feeds -> Google Sitemap (disabled by default)
DrunkMunki
 
Posts: 15
Joined: Sun Jul 17, 2011 10:02 am

Re: Sitemap generator For Opencart 1.40

Postby onlinephilately » Thu Aug 04, 2011 12:41 pm

Hi,

I can't get the Google Sitemap in v1.5.1 to work. I have the standard data feed url but when I go to that page nothing shows.

How to solve it?
onlinephilately
 
Posts: 40
Joined: Wed Jan 26, 2011 7:14 pm

Re: Sitemap generator For Opencart 1.40

Postby pirate » Thu Oct 20, 2011 8:08 pm

Getting following error while loading http://www.myweb.com/index.php?route=fe ... le_sitemap

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 17480140 bytes) in /root/html/system/library/cache.php on line 37


What is the the reason ?
pirate
 
Posts: 39
Joined: Sat Sep 03, 2011 5:28 am

Re: Sitemap generator For Opencart 1.40

Postby AnonyMoose » Tue Jan 24, 2012 7:59 pm

Google sitemap feed that OC comes with isn't perfect as it does not list any extra pages. I've got around 40 pages of FAQ and Blog on my sites (both added by extensions) and these are not listed. I use external tool to generate sitemap and upload it to my store once in a while. Not sure if it's OK to post links but plenty of free generators are in google. :)
AnonyMoose
 
Posts: 96
Joined: Wed Jul 20, 2011 9:35 am

Re: Sitemap generator For Opencart 1.40

Postby bigmuz » Wed May 02, 2012 3:21 am

I have a large store and this is a problem that I can't solve.

I have upped the memory limit via php.ini to 512M and I get this error;

Fatal error: Out of memory (allocated 189530112) (tried to allocate 79 bytes) in /home/xxxx/public_html/shop/system/database/mysql.php on line 38

I have approximately 30,000 items and will have more.

My php.ini is;

magic_quotes_gpc = Off;
register_globals = Off;
default_charset = UTF-8;
memory_limit = 512M;
max_execution_time = 18000;
upload_max_filesize = 16M;
post_max_size = 16M;
safe_mode = Off;
mysql.connect_timeout = 20;
session.use_cookies = On;
session.use_trans_sid = Off;
session.gc_maxlifetime = 12000000;
allow_url_fopen = on;
zend_extension="/usr/local/IonCube/ioncube_loader_lin_5.3.so"

Maybe my host doesn't allow enough memory? This file is in my public_html folder and in my opencart subdomain.

Thanks in advance!

Muz
bigmuz
 
Posts: 6
Joined: Fri Feb 17, 2012 4:05 am

Re: Sitemap generator For Opencart 1.40

Postby bigmuz » Wed May 02, 2012 4:18 am

Sorry this is in WAY the wrong forum.
bigmuz
 
Posts: 6
Joined: Fri Feb 17, 2012 4:05 am

Re: Sitemap generator For Opencart 1.40

Postby jabelburns » Fri Feb 01, 2013 4:31 pm

whenever I try to go to the product feeds under extentions I get.
Fatal error: Class 'Controllerextensionfeed' not found in /home/crazmur5/public_html/system/engine/front.php on line 44
Any Ideas? here is my front php.

Code: Select all
1<?php
2final class Front {
3   protected $registry;
4   protected $pre_action = array();
5   protected $error;
6   
7   public function __construct($registry) {
8      $this->registry = $registry;
9   }
10   
11   public function addPreAction($pre_action) {
12      $this->pre_action[] = $pre_action;
13   }
14   
15   public function dispatch($action, $error) {
16      $this->error = $error;
17         
18      foreach ($this->pre_action as $pre_action) {
19         $result = $this->execute($pre_action);
20               
21         if ($result) {
22            $action = $result;
23           
24            break;
25         }
26      }
27         
28      while ($action) {
29         $action = $this->execute($action);
30      }
31   }
32   
33   private function execute($action) {
34      $file   = $action->getFile();
35      $class  = $action->getClass();
36      $method = $action->getMethod();
37      $args   = $action->getArgs();
38
39      $action = '';
40
41      if (file_exists($file)) {
42         require_once($file);
43
44         $controller = new $class($this->registry);
45         
46         if (is_callable(array($controller, $method))) {
47            $action = call_user_func_array(array($controller, $method), $args);
48         } else {
49            $action = $this->error;
50         
51            $this->error = '';
52         }
53      } else {
54         $action = $this->error;
55         
56         $this->error = '';
57      }
58     
59      return $action;
60   }
61}
62?>

jabelburns
 
Posts: 2
Joined: Fri Feb 01, 2013 4:29 pm


Return to Concepts

Who is online

Users browsing this forum: No registered users and 15 guests

Hosted by Arvixe Web Hosting