Home
Forum
Extensions
Developer Portal
VirtueMart Forum
VirtueMart & Joomla! - The Future of eCommerce
Home
Help
Search
Login
Register
Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Support the VirtueMart project and become a
member
VirtueMart Forum
»
VirtueMart 2 + 3
»
General Questions
»
Template overrride filename length
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Template overrride filename length (Read 307 times)
coffeetogo
Beginner
Posts: 6
A beginner
Template overrride filename length
«
on:
February 18, 2021, 10:44:31 am »
PHP 7.4.6
VirtueMart 3.8.8 10472
Joomla! 3.9.24
Hi,
Just wanted to check on something in regards to template overrrides.
I couldn't get the overrrides to work. I created a template in the productdetails overrride folder but everytime I picked my template from the "Product Details Page" dropdown box in a product and saved it just went back to the default.
Finally tracked down that this happens if the filename (excluding .php) is 17 characters or more. Change the filename to 16 characters or less and its fine.
Is there a limit on the length of filenames?
Thanks
D
Logged
coffeetogo
Beginner
Posts: 6
A beginner
Re: Template overrride filename length
«
Reply #1 on:
February 18, 2021, 11:21:55 am »
More info as I noticed that there are long filenames using an "_". This is when the filename doesn't have an underscore i.e "1234567890123456.php". Same result in a TemplateToaster template and the VMBeez3 template.
Logged
jenkinhill
UK Web Developer & Consultant
Global Moderator
Super Hero
Posts: 28071
Always on vacation
Re: Template overrride filename length
«
Reply #2 on:
February 18, 2021, 13:46:16 pm »
I can't duplicate this on my server. Even this override file worked OK as an override. defaulttemplatetestinarowoffour.php
Logged
Kelvyn
Jenkin Hill Internet
,
Lowestoft, Suffolk, UK
Unsolicited PMs/emails will be ignored.
Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum
Currently using VirtueMart 3.8.9.10473 on Joomla 3.9.24 PHP 7.4.14
coffeetogo
Beginner
Posts: 6
A beginner
Re: Template overrride filename length
«
Reply #3 on:
February 19, 2021, 15:03:00 pm »
Hi Kelvyn,
done some testing. Setup two new sites on two different hosting services. Only joomla and virtuemart installed and still get the issue with the filename length.
Tried changing the PHP level but had no effect. Not sure what else to try as I've changed nothing from the original installation other than currency.
Any thoughts appreciated.
Thanks
D
Logged
Jörgen
Global Moderator
Sr. Member
Posts: 3350
VirtueMart Version: 3.4.x
Re: Template overrride filename length
«
Reply #4 on:
February 19, 2021, 15:17:18 pm »
What template are You using besides this homemade override ? Tried to use VMBeez and add this override ?
Jörgen
Logged
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.
coffeetogo
Beginner
Posts: 6
A beginner
Re: Template overrride filename length
«
Reply #5 on:
February 19, 2021, 15:37:43 pm »
Hi Jorgen,
I get the same result on all three installled default templates (Beez, VMBeez and protostar).
The sites are just for testing this issue so if you'd like a login to see what's happening I can send you it to you.
Thanks
D
Logged
jenkinhill
UK Web Developer & Consultant
Global Moderator
Super Hero
Posts: 28071
Always on vacation
Re: Template overrride filename length
«
Reply #6 on:
February 19, 2021, 16:19:40 pm »
I just re-read your op and it mentions "in a product". I apply product layout overrides in (usually) a specific category or for all products in Config/templates and can state that long filenames work OK there. But I just tried for a single product and can confirm that a long filename is not saved there. Strange.
Logged
Kelvyn
Jenkin Hill Internet
,
Lowestoft, Suffolk, UK
Unsolicited PMs/emails will be ignored.
Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum
Currently using VirtueMart 3.8.9.10473 on Joomla 3.9.24 PHP 7.4.14
coffeetogo
Beginner
Posts: 6
A beginner
Re: Template overrride filename length
«
Reply #7 on:
February 19, 2021, 16:32:52 pm »
Hi Kelvyn,
Glad you have been able to reproduce it. Thought I was going bonkers or doing something silly.
Good to know I can use the category overide and I will just make sure the override names are short enough when I get to my miscellanious category where a number of layouts are need.
Thanks for your time and help.
Regards
D
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
VirtueMart Forum
»
VirtueMart 2 + 3
»
General Questions
»
Template overrride filename length
We use cookies, just to track visits to our website, we store no personal details.
OK
Learn more