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.ikhlief wrote:Ok I disappled SEO url's and it's working now, is there any way to activate it with SEO urls??
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
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
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

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
Thanks for this, it works great except for one thing for me.Concept211 wrote:Hey all,
I updated this script again to auto-display the SEO URLs if enabled in the store settings
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.
Hmmm...I don't have time to look into it now but maybe someone else could give us some suggestions on that?
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:
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.
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>';
Tony McCreath
Who is online
Users browsing this forum: No registered users and 5 guests