VirtueMart Forum

VirtueMart 1.1.x [ Old version - no longer supported ] => Administration & Configuration VM 1.1 => Topic started by: techclan on July 31, 2008, 03:46:57 am

Title: Change category template or flypage but no difference
Post by: techclan on July 31, 2008, 03:46:57 am
When I change the Category template or flypage in the Configuration or even in the Category settings nothing changes. If I completely delete the content of theme.css everything still looks the same.  Am I doing something wrong here ?
Title: Re: Change category template or flypage but no difference
Post by: Billy on July 31, 2008, 20:52:57 pm
I am having the same issue. Is this functionality not activated yet?
Title: Re: Change category template or flypage but no difference
Post by: aravot on August 01, 2008, 01:54:06 am
It works, if you have Joomla cache enabled, disable it.
Title: Re: Change category template or flypage but no difference
Post by: Billy on August 01, 2008, 15:36:08 pm
I had to go into each category and edit them one by one. Changing the default template setings didnt make any differance.
Title: Re: Change category template or flypage but no difference
Post by: techclan on August 02, 2008, 23:18:34 pm
I have joomla cache disabled and still same results.
Title: Re: Change category template or flypage but no difference
Post by: jess116 on August 03, 2008, 22:37:40 pm
I am also having this trouble i think...   I'm trying to change the look of the flypages but nothing is changing.
The file is writeable and i'm editing the code for category template that I've selected in the virtuemart/config/site tab..
actually when i try to change the category templates, save, and refresh the site even 5 times, no matter which template i have selected the site doesn't change. joomla cache is turned off, and i'm doing "super" refresh, rather than just refresh.

I have JUST upgraded to virtuemart 1.1.2, and this is happening. My browse pages look horrible and the text in the browse and product details pages almost spills over the sides onto the menus. It is making my site look unprofessional :(

Didn't the old virtuemart have a section in the config area where you could change the colour of your "add to cart" buttons and how many items per rom and that sort of thing? I can't find that in this new one.
Title: Re: Change category template or flypage but no difference
Post by: jess116 on August 05, 2008, 08:35:09 am
I found the right files to edit for the product browse / product details flypages, after much hair being pulled out...
 
Navigate to components/com_virtuemart/themes/templates/default and they are in there.
My virtuemart config is LOCKED on browse_1.php, and flypage.tpl.php, no matter which i select in the configuration.
So to change the look i just copied the code from the other broswe.php files and pasted them into browse_1.php. This is the only way I could change the look of the flypages.

Why is this happening? Have I messed up some permissions or something somewhere that would be causing virtuemart to lock in these 2 defaults?
Title: Re: Change category template or flypage but no difference
Post by: cassidyb on August 07, 2008, 22:20:43 pm
I am having the same issue . . almost.  I can change the template, but it only effects all the new products I add after the change, it will not go back in and update the old products to the new flypage template I am using.  I had to go into the database and have it changed there for all the old products. 

Title: Re: Change category template or flypage but no difference
Post by: aravot on August 08, 2008, 09:30:25 am
For the last time I revisited this issue, both browse and flypage do change, maybe you guys are doing something wrong, see VirtueMart User Manual (http://virtuemart.net/documentation/User_Manual/Product_Administration.html)
Title: Re: Change category template or flypage but no difference
Post by: miramardesign on August 14, 2008, 03:22:01 am
I am having the same issue . . almost.  I can change the template, but it only effects all the new products I add after the change, it will not go back in and update the old products to the new flypage template I am using.  I had to go into the database and have it changed there for all the old products. 

Same here this is a definite bug in the new Vm grr..
My cache is off and always was.
My menu isn't updating after I make the change so the links are wrong IE  it is still pointing to flypage.tpl instead of garden_flypage.tpl  etc.    :(
Title: Re: Change category template or flypage but no difference
Post by: miramardesign on August 14, 2008, 03:26:56 am
I downloaded the  config file and it's correct/reflects my changes.

/administrator/components/com_virtuemart/virtuemart.cfg.php
It's as if the frontend is ignoring the config file for some reason.
Where would this go awry?   Some modification I made to the template?
Title: Re: Change category template or flypage but no difference
Post by: avik on August 16, 2008, 22:52:34 pm
I am new to Joomla and Virtue Mart but I think I found the bug that is causing the issue.  In virtuemart.cfg.php the flypage is being saved in the define 'FLYPAGE' whereas the shop.product_details.php file that uses this define is looking for "flypage" on line 116.  I just changed it to all uppercase to match and now I can switch the flypages via the admin site. 

Hope this helps.
Title: Re: Change category template or flypage but no difference
Post by: jess116 on August 24, 2008, 06:43:19 am
Thanks Avik! I reckon that has helped. Maybe you should try for Aravots position on the quality and testing team...
(..made me feel quite stupid with his last response, he did.   @_@)
Title: Re: Change category template or flypage but no difference
Post by: fortza on August 26, 2008, 20:08:23 pm
You must not sit and act stupid, I have the same problem ...... good people have not paid money for the shop ...... I have lgeledes tried to get answers to some other problems, without great success, support ....... I try also it says here .........
Title: Re: Change category template or flypage but no difference
Post by: techclan on September 01, 2008, 03:55:38 am
Avik,
what exactly did you change to make it work?
I changed line 116 to "$flypage = vmGet($_REQUEST, "FLYPAGE" );" but still same result...
Title: Re: Change category template or flypage but no difference
Post by: jwkimkc on September 17, 2008, 05:34:04 am
You need to change the default flypage for each category. The default flypage in the configuration only applies to newly created categories
Title: Re: Change category template or flypage but no difference
Post by: King Arthur on September 18, 2008, 11:21:22 am
I'm to stupid. >:(
Only the flypage is on frontpage.  ???
Title: Re: Change category template or flypage but no difference
Post by: birder on September 19, 2008, 13:22:50 pm
I have the same problem in that whatever i do i always get browse_1 and flypage.tpl

Cache is off.

I have tried the flypage to FLYPAGE but still the same

aravot, there is nothing in the manual about this problem but there certainly seems to be several people with the same problem, too mant to brush it to one side

This problem makes VM look crap and everyone here is asking for some help

Title: Re: Change category template or flypage but no difference
Post by: cosg2004 on November 13, 2008, 16:07:07 pm
I have the same problem. Is any of the developers/moderators looking into this? I wonder where else this "upper case" issue occurs. As a matter of fact, is it an issue as only the new categories are affected?
Cheers, Constantine
Title: Re: Change category template or flypage but no difference
Post by: grayceworks on November 23, 2008, 08:43:49 am
I also had this problem. I tried disabling sef as was mentioned in one post, and I disabled Joomla cache as recommended in another, yet no matter what I did, both new and existing categories/products continue to use the default of browse1 and flypage-ask, unless I manually updated each and every category.

I cannot change these at all using the site configuration. Shouldn't the SITE CONFIGURATION update the entire site to match when you change a setting?

This is a bit frustrating, since if as someone suggested, a change would only apply to new categories, what happens if someone has hundreds of products and dozens of categories, and wants to change the default for the site, as it would seem to be possible using the SITE CONFIGURATION. Surely you wouldn't have to go and edit everything using the new layout in order for it to work?

Regardless, I do see where you can change individual category browse options and flypages, on each category's edit page. But again, if you have dozens of categories, this can get a bit tedious if you just want to do a global change.

A suggestion: Have the options in the category settings to use "global" site settings, in addition to being able to set a custom template. That way, any that are set at "global" would use the Site Configuration, and any that have been set with a custom template option would remain custom, rather than ALL the categories essentially being custom configurations.
Title: Re: Change category template or flypage but no difference
Post by: Marc O. on November 23, 2008, 17:25:15 pm
Same issue here. Able to adjust the settings per category, but missing an option to do "global" changes. Also, I'm unable to change the layout of my "Featured products" list.
Title: Re: Change category template or flypage but no difference
Post by: shimmytango on December 23, 2008, 06:54:54 am
hey all!

i think i figured it out! go to product categories and do into the category details. below the category description, there are a couple of drop down menus that determine which flypage should be used for the products within that category. remember, with joomla the menu is what determines how the article is displayed. here in VM, the menu is the category and the article is the product.

good luck!

sam
Title: Re: Change category template or flypage but no difference
Post by: salobon on March 29, 2009, 18:02:23 pm
Solution is already posted on Vitumart forum. But needs to be extended. This is what I fixed and it worked for me.
here is the fix:
In all these lines change flypage to CAPS: FLYPAGE
Code: [Select]
administrator\components\com_virtuemart\html\shop.ask.php (24): $flypage = vmGet($_REQUEST, "flypage", '' );
administrator\components\com_virtuemart\html\shop.basket_short.php (30): $flypage = vmGet($_REQUEST, "flypage", null);
administrator\components\com_virtuemart\html\shop.pdf_output.php (20): $flypage = vmGet( $_REQUEST, 'flypage');
administrator\components\com_virtuemart\html\shop.product_details.php (115): $flypage = vmGet($_REQUEST, "flypage" );
administrator\components\com_virtuemart\html\shop.product_details.php (422): $tpl->set( 'flypage', $flypage );
the idea for solution was taken from this post:
http://forum.virtuemart.net/index.php?topic=43825.msg142138#msg142138
Title: Re: Change category template or flypage but no difference
Post by: mauri on March 29, 2009, 21:43:01 pm
All of you, send your server info, I think this bug is due to a server?
Title: Re: Change category template or flypage but no difference
Post by: sitebuildernow on March 30, 2009, 00:14:12 am
For the new people searching for this answer - changing the flypage globally ONLY effects the display on NEW categories added after making the global change. If you want to change the display on existing categories you have to go into your category list and make the change on every single category - I understand the reasoning - the developers thought this would allow us to display different categories in different ways - unfortunately it has a serious downside of creating a very tedious problem if you do not set your flypage display right before creating all of your categories.
Title: Re: Change category template or flypage but no difference
Post by: webservant on April 01, 2009, 13:32:07 pm
Hi,

I am working on a WAMP local server, Windows XP and have found the same issue and agree with the coments in relations to templates and flypages not being updated. I have read through all the posts and find them accurate.

But I am extremly pleased with Virtumart and I only write this so that you know that there is another testing environmnet that is getting the same results..


Kind Regard

Title: Re: Change category template or flypage but no difference
Post by: bobbennett on April 05, 2009, 17:33:11 pm
I have had limited success when changing the flypage on the Category page.  It works fine when the user chooses a product from the list of products in the category.  But - if they use the previous/next buttons it goes back to the original flypage definition.
Title: Re: Change category template or flypage but no difference
Post by: JoMan on April 28, 2009, 22:05:01 pm
Solution is already posted on Vitumart forum. But needs to be extended. This is what I fixed and it worked for me.
here is the fix:
In all these lines change flypage to CAPS: FLYPAGE
Code: [Select]
administrator\components\com_virtuemart\html\shop.ask.php (24): $flypage = vmGet($_REQUEST, "flypage", '' );
administrator\components\com_virtuemart\html\shop.basket_short.php (30): $flypage = vmGet($_REQUEST, "flypage", null);
administrator\components\com_virtuemart\html\shop.pdf_output.php (20): $flypage = vmGet( $_REQUEST, 'flypage');
administrator\components\com_virtuemart\html\shop.product_details.php (115): $flypage = vmGet($_REQUEST, "flypage" );
administrator\components\com_virtuemart\html\shop.product_details.php (422): $tpl->set( 'flypage', $flypage );
the idea for solution was taken from this post:
http://forum.virtuemart.net/index.php?topic=43825.msg142138#msg142138

This works! Thanks for solution!
Title: Re: Change category template or flypage but no difference
Post by: brandon23 on August 14, 2009, 02:44:43 am
This may have been answered previously but I will repost anyhow.

To update the Category template you need to do it from within the Category editor(Products>List Categories>"My Category")

Updating the Category Template in the Admin>Configuration only works for new Categories created after updating the Admin>Configuration.