![]() |
How to Disable Multicolum Format
I DO NOT want the products in multi column format. But for some reason when I put "1" in the # of columns it still give me 2 columns on the featured product page. Any help or ideas?
Chris |
Erase the number from that box all together.
|
Hey bud, did that, it still gives me the 2 column format... Any other suggestions. Thanks a bunch,
Chris |
Sorry, not familar enough with the version you are using to point you in the right direction :( Did the store used to appear in a single column before you played with that setting or has it always appeared in multi columns?
|
it has always done the 2 column.. basically there will only be 3 products in the entire store, and the only place to see them is on the featured products parts. i have the categories list disabled as its not necessary. but yeah the second i put in product #2, it gave me two columns.
Chris |
Any takers on this issue? Its pretty much the last thing holding me up from delivering this to the client. All help would be mucho appriciated. Thanks all :)
Chris |
Turn off multicolum.. Anyone, Anyone, Bueller, Bueller?
Does anyone have any insight on this? Unfortunately this new version has this and its seems impossible to turn it off.. Can you say "Blow out tables"? Can anyone with any insight on getting rid of this option give me any advice? Unfortunately putting a "1" into the place where you specifiy the columns just happens to not work. As this is my 7th or so site using xcart, Im pretty well aware that the logic as far as how to make it do things is a bit, eh, how do you say, bizarre, but I also know somewhere, somehow, there is a fix. If you know that fix, our you have the newest version and its operating in ONE column to display the products, please fill me in on just how this is accomplished. Thanks a ton.
Chris |
Newest version? Your signature says 3.4.3???
|
yeah sorry, this is about my 7th install of this software for multiple clients.... that signature is from the last version i installed (pre multicolumn madness).. the one i have now i just purchased about 5 days ago.
chris |
Try replacing products.tpl and products_t.tpl with the original (if you haven't modified them).
|
unfortunately, its clean install. not sure why this isnt working right out the box, but christ its frustrating to have to hold up delivery over this.. i wish they didnt ad it to begin with.
i cant even find the smarty template that holds the logic for that crap so i can just rip it out. any ideas? |
found it:
{if %product.index% is not odd} <TR> {/if} thats in the products.tpl... that logic doesnt apear to be working what so ever. :roll: no to mention "is not odd"? how could that possibly work? how can that statement test 3 conditions, two of which are odd and determine the difference between 1 and 3, let alone 2 if it even worked.... another x-cart flop? anyways, if you DONT want multicolmn format like me, comment the "if" statments out on the top of the main table and the bottom of the main table in products.tpl. |
Strange, worked fine in 4.0.12, must have botched it up on 4.0.13....
|
I found this some problem, and it seems like the products.tpl template lost some functionality somewhere.
I looked back at a copy of the file on a 3.4.x version of a store I have running, and products.tpl was set up to check the appropriate configuration settings and include products_t.tpl if needed, otherwise it would display a single column product list. I'm working on a 4.0.14 cart right now and see that the products.tpl template has no code at all to even check the $featured variable or any config settings. It will always display everything in a 2 column format. Trying to find where products_t.tpl went, I see that this is now only called from cart_contents.tpl and cart_details.tpl. So.... If you want to "fix" products.tpl to actually pay attention to the configuration settings the way it used to, add this to the top of the products.tpl: Code:
{if $usertype eq "C" and $config.Appearance.products_per_row ne "" and $config.Appearance.products_per_row gt 0 and $config.Appearance.products_per_row lt 4 and ($featured eq "Y" or $config.Appearance.featured_only_multicolumn eq "N")} There are a couple of things to consider on this fix: 1. The original products.tpl inside the {else}{/if} will still be configured to always display in 2 columns. If you want it to default to 1 column (the way it used to be) then you'll need to edit that part of the template. 2. products_t.tpl by default will not display product descriptions. So if you want your products list to appear the way they do in products.tpl, only with variable columns, you'll need to either modify products_t.tpl (which will have side effects in the cart view) or hack products.tpl to include much the same code as in products_t.tpl I think I'll be hacking a version of products.tpl to abide by the settings instead of calling products_t.tpl so if you're interested in this let me know. I'm also making this a pure css (w/o table) implementation, so I'd need to create another version of the template for the more standard table implementation if anyone wants it. Matt |
Thanks for this! That was driving me crazy!
|
All times are GMT -8. The time now is 01:07 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.