Page 3 of 3
Re: Latest products feeds
Posted: Mon Jan 30, 2012 9:24 pm
by Concept211
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.
Re: Latest products feeds
Posted: Mon Jan 30, 2012 9:30 pm
by ikhlief
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??
Re: Latest products feeds
Posted: Mon Jan 30, 2012 10:04 pm
by straightlight
No, not specifically. This was an aside note I was stating since I noticed it while analyzing the code.
Re: Latest products feeds
Posted: Tue Apr 10, 2012 8:08 am
by arames
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

Re: Latest products feeds
Posted: Tue Apr 10, 2012 8:35 am
by straightlight
Would it be possible to provide your URL and which OC version are you currently using ?
Re: Latest products feeds
Posted: Mon Apr 23, 2012 8:52 pm
by JasonF
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.
Re: Latest products feeds
Posted: Mon Apr 23, 2012 9:45 pm
by Concept211
Hmmm...I don't have time to look into it now but maybe someone else could give us some suggestions on that?
Re: Latest products feeds
Posted: Tue Jun 12, 2012 6:01 pm
by Tiggerito
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.
Re: Latest products feeds
Posted: Wed Jul 25, 2012 7:28 am
by a2z
Any one has this working for 1.5.3.1? Can you please provide me the mod.