Post by tsloc » Sat Nov 25, 2017 4:02 am

Dear all OC friends!

I wonder if it´s possible to disable a specific module for a specific page?

I´m using a snowflake module during the christmas season and I have a wish to disable it when the customer visit the check out area. The module is just a simple xml-file.

Best regards Thomas

New member

Posts

Joined
Thu Feb 09, 2017 7:15 am

Post by IP_CAM » Sat Nov 25, 2017 12:56 pm

Well, none of the Snowflake Mods I tested would be able to do this by default,
all of them have the Script placed in the Bottom Section, so, it's valid everywhere.
You would have to place it in every file, where you want it to display, I guess.
And for some unknown reason, my Test Installation only produces Snowflakes on
the Category- and Brand Listing- Pages, the Script probably collides with some
other Javascript somewhere, I assume. Just to mention this... :laugh:
Ernie
---
http://www.evelo.li/shop/index.php?rout ... ry&path=33
---

Ernie's OpenCart v.1.5.6.5 LIGHT + OpenShop Admin v.1.75 Test Sites
http://www.bigmax.ch - http://www.evelo.li - http://www.openshop.li
Image


User avatar
Guru Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by opencartboost » Sat Nov 25, 2017 3:26 pm

Yes it is possible.
You need add conditional to check route. How to check route, you read this https://www.opencart.com/forum/viewtopi ... 0&t=171486
If route is not checkout/checkout,
echo your code.

Active Member

Posts

Joined
Thu Jul 09, 2015 5:59 am

Post by tsloc » Sat Nov 25, 2017 7:00 pm

Thanks all for your feedback!

This is the module: https://www.opencart.com/index.php?rout ... n_id=28611

Even if I´m not a code expert, the file looks pretty simple. It´s just one xml-file. I preciate the time you spent if someone take a closer look.


Best regards Thomas

New member

Posts

Joined
Thu Feb 09, 2017 7:15 am

Post by cyclops12 » Sat Nov 25, 2017 8:13 pm

I have amended viethemes xml file to do just this before.
Feel free to test it out.

Hope you dont mind viethemes :)

Attachments


Active Member
Online

Posts

Joined
Sun Sep 27, 2015 1:10 am

Post by tsloc » Sat Nov 25, 2017 10:34 pm

Perfect! Works like I want now! I just edit the URL to quickcheckout/checkout instead because I´m using a quick checkout module as well.

Thanks for the support!


Best regards Thomas

New member

Posts

Joined
Thu Feb 09, 2017 7:15 am

Post by cyclops12 » Sat Nov 25, 2017 11:37 pm

Glad it works for you.
Happy selling

Active Member
Online

Posts

Joined
Sun Sep 27, 2015 1:10 am

Post by IP_CAM » Sun Nov 26, 2017 12:15 pm

One more Piece of Wisdom, to end up locally, for possible later use ! Thank you :D
Ernie

Ernie's OpenCart v.1.5.6.5 LIGHT + OpenShop Admin v.1.75 Test Sites
http://www.bigmax.ch - http://www.evelo.li - http://www.openshop.li
Image


User avatar
Guru Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland
Who is online

Users browsing this forum: No registered users and 4 guests