Forums / General Questions / Is there a reason I can't override currencies sidebox?

Is there a reason I can't override currencies sidebox?

Started by s_mack on 28 Jul 2015, 10:10 PM · Views: 546

Results 1 to 10 of 10
28 Jul 2015, 10:10 PM
#1
s_mack avatar

s_mack

Totally Zenned

Join Date:
Jun 2005
Location:
Kelowna, BC Canada
Posts:
1,033
Plugin Contributions:
4

Is there a reason I can't override currencies sidebox?

I'm not new at this. I understand the override system (I think). I'm beating my head against a wall because I see no reason this shouldn't work.

I have my new files:

/includes/templates/CUSTOM/sideboxes/tpl_currencies.php
/includes/modules/sideboxes/CUSTOM/currencies.php

yet they are being ignored. I've confirmed that the system is still looking at /includes/modules/sideboxes/currencies.php instead of the one in CUSTOM.

28 Jul 2015, 10:53 PM
#2
lruskauff avatar

lruskauff

Totally Zenned

Join Date:
Sep 2008
Location:
WA
Posts:
559
Plugin Contributions:
0

Re: Is there a reason I can't override currencies sidebox?

Wild guess but what are the permissions on your new files

28 Jul 2015, 10:59 PM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Is there a reason I can't override currencies sidebox?

Did you go into the Tools ... Layout Boxes Controller ... and turn on the sidebox for your template?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

29 Jul 2015, 4:38 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Is there a reason I can't override currencies sidebox?

You wrote "CUSTOM". Is that literally the name of the folder of the template you've currently got active? If the foldername of the template you've made active is "classic" or "fred" then it will be looking for "classic" or "fred" as the foldername, not "CUSTOM".

And then, as Ajeh mentioned, you'll need to enable that sidebox using the layout controller.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

29 Jul 2015, 5:07 AM
#5
s_mack avatar

s_mack

Totally Zenned

Join Date:
Jun 2005
Location:
Kelowna, BC Canada
Posts:
1,033
Plugin Contributions:
4

Re: Is there a reason I can't override currencies sidebox?

I thought about permissions so I made sure everything was 755/644 before I posted.

Yes, I enabled in admin. I tried left/right and single and both.

No Dr Byte, it isn't CUSTOM, that just seems to be a convention 'round here for examples so I went with it. I've got modules overridden just fine, as well as another sidebox. I wondered if something was up with currencies in particular. This is my first kick at 1.5.4 so I also wondered if something changed that hasn't been documented.

29 Jul 2015, 1:59 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Is there a reason I can't override currencies sidebox?

s_mack:

I also wondered if something changed that hasn't been documented.
No, nothing intentionally changed in that area, so nothing to document.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

29 Jul 2015, 4:54 PM
#7
s_mack avatar

s_mack

Totally Zenned

Join Date:
Jun 2005
Location:
Kelowna, BC Canada
Posts:
1,033
Plugin Contributions:
4

Re: Is there a reason I can't override currencies sidebox?

Ok. I can't imagine it is something I did since it is a fresh copy of 1.5.4 with no mods other than within templates.

Well, almost fresh. It was with an updated-from-139 database. Could that matter?

Anyway, if nobody has done a test to confirm they can override that particular box then I might suggest you try to make sure you don't have a bug, otherwise don't worry about it. I've just made a backup of the original file and modified rather than overrided.

29 Jul 2015, 6:21 PM
#8
s_mack avatar

s_mack

Totally Zenned

Join Date:
Jun 2005
Location:
Kelowna, BC Canada
Posts:
1,033
Plugin Contributions:
4

Re: Is there a reason I can't override currencies sidebox?

Just started over (yet ANOTHER fresh install) and same thing. Can't override that sidebox.

Weird thing that I noticed this time that may or may not have been the case last time (probably was) is that in the admin->tools->layout boxes controller the correct overridden path is shown in red for that sidebox. Yet in the front office, it absolutely is not being used. The default one is.

Weird.

29 Jul 2015, 8:33 PM
#9
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,748
Plugin Contributions:
56

Re: Is there a reason I can't override currencies sidebox?

I could have sworn I did this. I'll give it a shot tonight.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

29 Jul 2015, 9:10 PM
#10
s_mack avatar

s_mack

Totally Zenned

Join Date:
Jun 2005
Location:
Kelowna, BC Canada
Posts:
1,033
Plugin Contributions:
4

Re: Is there a reason I can't override currencies sidebox?

Nevermind... I figured it out. It has something to do with my database because I started yet again with a clean DB and it works.