Post by cosmicx » Thu Aug 23, 2018 10:25 pm

I will buy you a coffee if you can help me, here goes.

I'm developing my personal store using OC 3.0.2.0 - it's on localhost.

I'm modifying a FREE MOD done by Slava Chusoff, so it can work in OpenCart 3.0.2.0

MOD was downloaded from this topic, file posted by agatha65:
viewtopic.php?t=173034

I managed to make it work (sort of) in OC 3.0.2.0 but there is one slight problem (note: I'm not a coder).
I'm testing the ocmod.xml file by placing it inside the system folder.

The Problem
I can't load the:

Code: Select all

<meta name="robots" content="noindex,follow"
in category pages with URL Parameter; page, limit, order

Here's the ocmod code specifically made for OC 2.x:

Code: Select all

<file path="catalog/controller/product/category.php">
	<operation>
		<search><![CDATA[$this->document->setTitle(]]></search>
		<add position="after"><![CDATA[
		if (
		isset($this->request->get['page']) ||
		isset($this->request->get['limit']) ||
		isset($this->request->get['order'])
		) {
			$this->document->setRobots('noindex,follow');
		}
		]]></add>
	</operation>
</file>

Question:
What's the right code for OC 3.0.2.0?

Active Member

Posts

Joined
Mon Jan 09, 2012 6:27 pm

Post by OSWorX » Fri Aug 24, 2018 3:22 pm


Forum Rules [en]: viewtopic.php?f=176&t=200480
Forumregeln [de]: viewtopic.php?f=37&t=114208
Commercial Request: viewforum.php?f=88

Image


User avatar
Expert Member

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by mupcku » Wed Jan 30, 2019 3:50 am

I cant run it on 2.1.0.1 ONLY on category page...

New member

Posts

Joined
Tue Jan 24, 2017 8:12 pm
Who is online

Users browsing this forum: No registered users and 7 guests