VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: johk on November 18, 2012, 03:03:01 AM

Title: product detail page view override doesn't work on hosting server
Post by: johk on November 18, 2012, 03:03:01 AM
Hi,

I have a problem with the product details page view override.
This seem to work fine o my localhost but when loaded on to the hosting server it doesn't seem to work as it should.

I have create a new view that I want to apply for one particular product. This owkr great on the localhost (see attached image). But when I try the same on the the hosting server it seems the product details view assigned to the product is ignored and it is instead suing the default view.
Link to shop http://vu.bohemiadesign.com.au/index.php?option=com_virtuemart&view=category&virtuemart_category_id=6&Itemid=732

The product assigned with different view is Registration form.


If anyone can shed some light on this would be much appricated.

Thanks,
johk


[attachment cleanup by admin]
Title: Re: product detail page view override doesn't work on hosting server
Post by: johk on November 21, 2012, 13:52:32 PM
Hi,
Even if I apply the modified view to another product I still have the same problem – ie view doen't change. The view shouldn't have an image. As I mentioned it works ok on my local setup (WAMP) but for some reason not on the hosting server running php 5.3.13

Thanks,
johk
Title: Re: product detail page view override doesn't work on hosting server
Post by: PRO on November 21, 2012, 18:30:49 PM
johk

did you do a layout override?

http://forum.virtuemart.net/index.php?topic=90935.msg298367#msg298367
Title: Re: product detail page view override doesn't work on hosting server
Post by: johk on November 22, 2012, 10:19:03 AM
Yes that is what I have done -  sorry could comeup with the right acronym.

Would really baffels me is that it is working on my localhost but not on the server ??

Thanks,
johk
Title: Re: product detail page view override doesn't work on hosting server
Post by: PRO on November 24, 2012, 16:25:09 PM
how did you assign the "view"

are you overriding the default view?

if not, does that work?

Title: Re: product detail page view override doesn't work on hosting server
Post by: johk on November 24, 2012, 23:53:30 PM
Hi,
It seems no matter what view I am trying to override with it always pick the 'default' view.
If I for example  select my customised view for product layouts under Configuration/Templates it still show the default view.
Please attached 2 screen shot of my settings.

Thanks,
johk


[attachment cleanup by admin]
Title: Re: product detail page view override doesn't work on hosting server
Post by: jenkinhill on November 25, 2012, 11:17:52 AM
In the product editor you have Product Details Page set to No override. It should be set to Default (ie you do not even click in that box) or to Regf if that is the name of your override file.
Title: Re: product detail page view override doesn't work on hosting server
Post by: johk on November 26, 2012, 11:03:38 AM
Hi,

Thanks for replying.

I have tried setting Product Details Page to Regf as well but it still doesn't work – it still shows the default view.
I have also tried to set Default under Configuration/Templates for Product Details Page and then override this for those product where required – but it still doesn't work.
As I mentioned it works on my localhost but for some reason it doesn't work on the server.

Thanks,

johk
Title: Re: product detail page view override doesn't work on hosting server
Post by: bytelord on November 26, 2012, 11:19:45 AM
Hello,

Where have you place this override files? Under joomla_folder/templates/your_joomla_template/html/com_virtuemart/productdetails?

What's the name of file you have placed? default.php? or something else?


Regards
Title: Re: product detail page view override doesn't work on hosting server
Post by: johk on November 26, 2012, 11:30:37 AM
Hi,

I changed the name from Regf.php to regf.php and it now works - ie all characters lowercase.
I remeber I had similar issue a while ago with a different component (can't rememeber which one) and all it was that I had an capitalisedthe file name.

johk
Title: Re: product detail page view override doesn't work on hosting server
Post by: bytelord on November 26, 2012, 12:32:22 PM
Hello,

This is not related to vm or joomla, capitalize letters have influence when using linux hosting, because linux file system works like that. On your local installation using windows as operating system this is not an issue, but on linux the have to call the file with the exact file name :)

Regards