Post by Concept211 » Mon Jan 30, 2012 9:24 pm

ikhlief wrote:Ok I disappled SEO url's and it's working now, is there any way to activate it with SEO urls??
Unfortunately, I'm not quite sure why it wouldn't work for you. It works fine on my sites (make sure you have the SEO URL keywords specified for each product. Also, does the standard Google feed that come pre-installed on OpenCart work for you? Because the SEO URL code is basically the same as that feed.

User avatar
New member

Posts

Joined
Fri Oct 14, 2011 1:40 am

Post by ikhlief » Mon Jan 30, 2012 9:30 pm

straightlight wrote:No problem. Also take note of that htmlspecialchars. htmlentities with ENT_QUOTES and UTF-8 should rather be used since OpenCart is strictly based on UTF-8. ;)
Does UTF-8 issue has something in this??

Active Member

Posts

Joined
Wed Nov 24, 2010 9:15 pm

Post by straightlight » Mon Jan 30, 2012 10:04 pm

No, not specifically. This was an aside note I was stating since I noticed it while analyzing the code.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by arames » Tue Apr 10, 2012 8:08 am

I tried your Feed for OpenCart 1.5.2.1

In firefox it shows me an empty feed :(

In explorer it gives me
Internet Explorer cannot display this feed

This feed contains code errors.

When I try to check for the errors, it seems that ALWAYS the FIRST product gets:
guid must be a full URL, unless isPermaLink attribute is false

Any help please :-[

New member

Posts

Joined
Fri Mar 09, 2012 8:27 pm

Post by straightlight » Tue Apr 10, 2012 8:35 am

Would it be possible to provide your URL and which OC version are you currently using ?

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by JasonF » Mon Apr 23, 2012 8:52 pm

Concept211 wrote:Hey all,

I updated this script again to auto-display the SEO URLs if enabled in the store settings ;)
Thanks for this, it works great except for one thing for me.

Can you tell me how to get it to display the "special" price of a discounted product, as it's still showing the original price for me (example here).

Thanks.

New member

Posts

Joined
Sat Oct 01, 2011 12:46 am

Post by Concept211 » Mon Apr 23, 2012 9:45 pm

Hmmm...I don't have time to look into it now but maybe someone else could give us some suggestions on that?

User avatar
New member

Posts

Joined
Fri Oct 14, 2011 1:40 am

Post by Tiggerito » Tue Jun 12, 2012 6:01 pm

Thanks for the code.

I also made a few mods. Many feed readers need a guid or date so they can determine if they have already read an item, so I added them:

Code: Select all

$output .= '<guid>' . str_replace('&', '&', $this->model_tool_seo_url->rewrite(HTTP_SERVER . 'index.php?route=product/product&product_id=' . $product['product_id'])) . '</guid>';
$output .= '<pubDate>' . date('r',strtotime($product['date_added'])) . '</pubDate>'; 
I also added a link back to the product page in the description. This means if people re-publish your feed you have a better chance that they will link back to your product page.

Tony McCreath


User avatar
Newbie

Posts

Joined
Tue Jun 12, 2012 5:54 pm
Location - Adelaide, South Australia

Post by a2z » Wed Jul 25, 2012 7:28 am

Any one has this working for 1.5.3.1? Can you please provide me the mod.

a2z
New member

Posts

Joined
Tue May 01, 2012 9:43 am
Who is online

Users browsing this forum: No registered users and 10 guests