Post by dashy1981 » Fri Sep 22, 2017 5:44 pm

Hi All,

After reading a lot about having WP install in a folder on primary domain rather than as subdomain, I have done it so.

Now next, how can I integrate/link it to my opencart site ?

At present I plan to have a menu item which will link to WP folder.

Any suggestions considering blog is to, increase the traffic to my site ?

Cheers

Newbie

Posts

Joined
Tue Aug 23, 2016 2:11 pm

Post by webcorvo » Fri Sep 22, 2017 6:05 pm

The only way to do that is install OC on a subdomain
ex: shop.domain.com
and at the menu of WP put one link to there ;)

Opencart Developer - For custom work and support contact @ webcorvo@gmail.com


User avatar
Active Member

Posts

Joined
Mon Mar 20, 2017 11:42 pm
Location - Lisbon, Portugal

Post by thekrotek » Fri Sep 22, 2017 7:20 pm

Why in the world do you need to create such monstrosity? Adding a link to the store is one thing, but integrating OC in WP is absolutely another. If you want to integrate, please, forget about it like a nightmare. But if you want just to put a link, this is what you have to do in WP, not in OC.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by webcorvo » Fri Sep 22, 2017 7:23 pm

thekrotek wrote:
Fri Sep 22, 2017 7:20 pm
Why in the world do you need to create such monstrosity? Adding a link to the store is one thing, but integrating OC in WP is absolutely another. If you want to integrate, please, forget about it like a nightmare. But if you want just to put a link, this is what you have to do in WP, not in OC.
Yes, that is what i said ;)

Opencart Developer - For custom work and support contact @ webcorvo@gmail.com


User avatar
Active Member

Posts

Joined
Mon Mar 20, 2017 11:42 pm
Location - Lisbon, Portugal

Post by dashy1981 » Fri Sep 22, 2017 10:48 pm

Thx together for quick replies. But I am not a native english speaker, so am unable to understand what is the suggestion here.
May be I was not clear in my question. Here's my situation:
Opencart is installed on my root domain. And WP is installed as a folder on root domain.
Plan is to run blog and direct traffic from blog to main shop via product links on the WP posts.

If I follow you correctly then suggestion is to have WP on the subdomain instead of folder?

Newbie

Posts

Joined
Tue Aug 23, 2016 2:11 pm

Post by thekrotek » Sat Sep 23, 2017 3:17 am

The suggestion is to install the blogging extension for OpenCart and have it all in one framework.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by KDNovelties » Sun Oct 01, 2017 2:08 am

Hi, I recently installed Opencart 2.3 and noticed that my WordPress blogs are not working. The home page for the blog shows up, but not the individual blogs. There has to be something to tell OC to ignore everything in a specific folder so the blog will work. Is there?

Thanks

User avatar
New member

Posts

Joined
Sat May 27, 2017 12:12 am

Post by thekrotek » Sun Oct 01, 2017 2:30 am

KDNovelties wrote:
Sun Oct 01, 2017 2:08 am
There has to be something to tell OC to ignore everything in a specific folder so the blog will work. Is there?
No, it is not, but you can set some rules in .htaccess. This is actually how redirect/deny/allow operations are implemented.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by KDNovelties » Sun Oct 01, 2017 2:56 am

Yep thanks! Got it to work putting the following in the WP folder htaccess:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
</IfModule>

User avatar
New member

Posts

Joined
Sat May 27, 2017 12:12 am
Who is online

Users browsing this forum: No registered users and 442 guests