X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   Sub-category default view list instead of thumbnail (https://forum.x-cart.com/showthread.php?t=69912)

kokeyuk1 09-01-2014 01:27 AM

Sub-category default view list instead of thumbnail
 
Hi,

We are look for a way to change our default view on certain sub-categories. We have a browse by model category which is a page of brand logos, we then want sub category 1 to be in a list as default with no thumbnails, but then sub-category 2 to revert back to thumbnails showing the products available for subcategory 1.

Is this possible? I know the list format can be clicked, but we want it to be a default for all customers as the amount of sections in sub 1 looks very messy with thumbnails.

Thanks :-)

totaltec 09-01-2014 05:08 AM

Re: Sub-category default view list instead of thumbnail
 
I think this is very possible. Perhaps just a module that adds a checkbox on the category page, allowing you to toggle "display in list".

tony_sologubov 09-03-2014 03:32 AM

Re: Sub-category default view list instead of thumbnail
 
It would be a combination of following modules:

http://forum.x-cart.com/showthread.php?p=375725#post375725
http://kb.x-cart.com/pages/viewpage.action?pageId=7504837#Webinar2-10Apr2014-DesignchangesinX-Cart5(Custom...insteadofGrid?

So, you should take condition from the first mod and define list type depending on this condition.

kokeyuk1 09-04-2014 03:08 AM

Re: Sub-category default view list instead of thumbnail
 
Quote:

Originally Posted by tony_sologubov
It would be a combination of following modules:

http://forum.x-cart.com/showthread.php?p=375725#post375725
http://kb.x-cart.com/pages/viewpage.action?pageId=7504837#Webinar2-10Apr2014-DesignchangesinX-Cart5(Custom...insteadofGrid?

So, you should take condition from the first mod and define list type depending on this condition.


Thanks, will give this a try.

Do you think this would be a good addition as a default option when creating categories?

tony_sologubov 09-04-2014 12:43 PM

Re: Sub-category default view list instead of thumbnail
 
It depends on how often you create categories. Do you often create them?

kokeyuk1 09-05-2014 04:58 AM

Re: Sub-category default view list instead of thumbnail
 
We have an expanding catalog, not just for us, i think it would be a good feature for anyone, having list as a default cleans big categories up and makes the site look a lot neater.

Back to the problem and the steps you said to solve it. I followed the steps to create the module, but upon resetting cache the store gets stuck on step 6 of 11. I deleted the created module and did the cache again and it got the store out of maintenance mode. Any idea why the store keeps getting stuck?

tony_sologubov 09-05-2014 05:39 AM

Re: Sub-category default view list instead of thumbnail
 
1) Do you have any error messages in the <X-Cart>/var/log/ folder? If so, please send them to me.
2) In order to reset the cache rebuilding process please follow the instruction here:
http://kb.x-cart.com/display/XDD/What+to+do+if+you+cannot+access+your+store+and+it+ says+we+are+deploying+new+changes

Tony.


All times are GMT -8. The time now is 02:59 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.