Post by SupraTwinTurbo » Mon Apr 04, 2011 12:40 pm

Hi All,

I am trying to integrate Wordpress and Opencart. Wordpress is in the main folder and Opencart is in a subfolder. Both systems share the same database. I am trying to accomplish the following:

1. Show #of cart items in the Wordpress header; so if a user adds items to their cart then leaves the store, the # of cart items is shown in the Wordpress blog header.

2. I would like to automatically show "featured products" on the Wordpress homepage and also in the sidebars.

3. I would like to show the most recent Wordpress blog post somewhere on the Opencart main page.

Has anyone been able to accomplish any of these items?

Thank you,

SupraTT

User avatar
New member

Posts

Joined
Thu Mar 24, 2011 12:43 pm
Location - NYC, NY USA

Post by justinv » Mon Apr 04, 2011 2:15 pm

Two and three would be easy enough, number one would be trickier as it involves session variables on top of db entries.

Number two: you could steal the functions in catalog/model/catalog/product.php - getFeaturedProducts() and format them however you like in wordpress.

Number three: you could create your own little module that accesses one of the wp tables for the latest blog and display it how you like in opencart. My DIY module may be helpful there - it's free and in my signature.

Documentation: OpenCart User Guide
Mods: Total Import PRO | CSV Import PRO | Ecom Tracking | Any Feed | Autosuggest | OpenCart CDN
Image


Active Member

Posts

Joined
Tue Oct 12, 2010 1:24 pm
Who is online

Users browsing this forum: No registered users and 1 guest