Discovered something in 4.3 beta 3:
One of my favorite mods forces any category with only one product to display the product page when the category is selected:
http://forum.x-cart.com/showthread.php?t=23339
This mod works in all 4.1 versions. Do not know about 4.2 - and I can verify that it does not work in version 4.3 beta 3.
Maybe has something to do with clean urls?
Anyone know how I can edit this:
Code:
{if $products|@count eq 1}
{assign var="prodURL" value="product.php?productid=`$products.0.productid`&cat=$cat&page=1"}
{php}
header( "Location: " . $GLOBALS[smarty]->_tpl_vars[prodURL] );
{/php}
{/if}
I know that for CDSEO (basic) Jon provided an edit. I wonder if the clean URLs also require some kind of edit in 4.3?
==== EDIT =====
This works:
Code:
{assign var="prodURL" value="`$http_location`/`$products.0.page_url`"}
Thanks,
Jeremy