Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Mod for subcategories in columns with descriptions and icons

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #301  
Old 09-22-2009, 03:24 PM
  ESvideo's Avatar 
ESvideo ESvideo is offline
 

Advanced Member
  
Join Date: Feb 2009
Posts: 34
 

Default Re: Mod for subcategories in columns with descriptions and icons

Quote:
Originally Posted by chawla@moviesandgamesonli
Can someone please enter the complete code for this mod as its quite confusing at the moment.


Did anyone ever answer with the complete working code for 4.2?
__________________
v 4.2.0
Reply With Quote
  #302  
Old 09-28-2009, 09:32 AM
 
presson83 presson83 is offline
 

Senior Member
  
Join Date: Sep 2008
Posts: 143
 

Default Re: Mod for subcategories in columns with descriptions and icons

I'm wondering this as well - how the heck do you get the sub-category description to appear under the thumbnail on the sub-category list (or anywhere on the page for that matter)? What's the point of having a description for a sub-category if it doesn't appear anywhere? QT needs to remedy this.
__________________
v 4.1.11, v 4.2
Reply With Quote
  #303  
Old 09-28-2009, 04:07 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: Mod for subcategories in columns with descriptions and icons

in includes/func/func.category.php around line 539
Code:
if ($short_list === X_CATEGORIES_FOR_SELECT_BOX) { $to_search = " $sql_tbl[categories].categoryid as cid, $sql_tbl[categories].categoryid, $sql_tbl[categories].parentid, $sql_tbl[categories].categoryid_path, $sql_tbl[categories].category"; } elseif ($short_list) { $to_search = " $sql_tbl[categories].categoryid as cid, $sql_tbl[categories].categoryid, $sql_tbl[categories].parentid, $sql_tbl[categories].categoryid_path, $sql_tbl[categories].category, $sql_tbl[categories].avail, $sql_tbl[categories].order_by"; } else { $to_search = "$sql_tbl[categories].categoryid as cid, $sql_tbl[categories].*"; }

to this

Code:
if ($short_list === X_CATEGORIES_FOR_SELECT_BOX) { $to_search = "$sql_tbl[categories].description, $sql_tbl[categories].categoryid as cid, $sql_tbl[categories].categoryid, $sql_tbl[categories].parentid, $sql_tbl[categories].categoryid_path, $sql_tbl[categories].category"; } elseif ($short_list) { $to_search = "$sql_tbl[categories].description, $sql_tbl[categories].categoryid as cid, $sql_tbl[categories].categoryid, $sql_tbl[categories].parentid, $sql_tbl[categories].categoryid_path, $sql_tbl[categories].category, $sql_tbl[categories].avail, $sql_tbl[categories].order_by"; } else { $to_search = "$sql_tbl[categories].description, $sql_tbl[categories].categoryid as cid, $sql_tbl[categories].*"; }

Then in subcategories_t.tpl call the description with this.

{$subcategory.description}
__________________
xcart 5.1.2
Reply With Quote

The following 3 users thank ARW VISIONS for this useful post:
ESvideo (09-30-2009), presson83 (09-29-2009), Walteru (03-25-2010)
  #304  
Old 09-29-2009, 06:30 AM
 
presson83 presson83 is offline
 

Senior Member
  
Join Date: Sep 2008
Posts: 143
 

Default Re: Mod for subcategories in columns with descriptions and icons

Works perfectly Ashley, THANK-YOU!!!!
__________________
v 4.1.11, v 4.2
Reply With Quote
  #305  
Old 10-06-2009, 01:19 PM
 
voodoo1967 voodoo1967 is offline
 

X-Adept
  
Join Date: Sep 2009
Posts: 431
 

Default Re: Mod for subcategories in columns with descriptions and icons

I have the same issue re sub cats etc but
All these little tweaks and changes are all well and good.But it really doesnt give me much confidence in the product.
I have been here before with other carts, you make a little change here, a little tweak there , and before you know it you have a very customised design. The problem then comes when you need to upgrade to the latest version, and yuou then lose all those little tweaks , or even worse your upgrade doesnt work.

How do you guys overcome this problem ?
__________________
x-cart Gold Plus 4.7.12
CDSEO Pro latest ver
ReDux template xcartmods.co.uk - it's great
php 7.x
Reply With Quote
  #306  
Old 10-08-2009, 05:45 AM
 
robertswww robertswww is offline
 

X-Adept
  
Join Date: Jul 2003
Posts: 586
 

Default Re: Mod for subcategories in columns with descriptions and icons

Quote:
Originally Posted by voodoo1967
The problem then comes when you need to upgrade to the latest version, and you then lose all those little tweaks, or even worse your upgrade doesn't work.

How do you guys overcome this problem ?
Hi Voodoo,

Yes, it is a hassle with any cart, to have to re-apply your custom changes after an upgrade.

Some people do not want to deal with those upgrade hassles you mentioned, and choose to either use a Shopping Cart As-Is, or maybe just customize with only simple style mark-up changes that can be done via the CSS file without touching the templates.

Others may choose an integrated store, such as Ecwid, that is updated automatically for you, as it is just a widget that fits into an existing web site.

But, for those of us who like our shopping carts to be highly customized, one of the best ways to proceed is through the use of heavy documentation.

We keep a Word Doc of every customized file in our Cart. We also add comments to every file that we customize.

When we are ready to upgrade to the newest version we just go through our list of files with custom mods, and manually insert them into the new files...

First, we download and unpack the latest version of the cart to our local hard drive. Then, we open each old file and new file side-by-side and copy and paste each mod into the new file. Then, we FTP the new files up to the test server. Next, we run the Database updater script on a copy of our database. Test everything out, make any adjustments that might be required, and we are good to go. Now, we can move all the files to our live site and run the DB updater on the live site.

Robert
__________________
X-cart 4.1.10
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 08:58 AM.

   

 
X-Cart forums © 2001-2020