View Full Version : List the products from a single merchant
Confuscius
10-07-07, 12:44
http://www.shopwindow.com/category.php?c=0&m=65 - this is the construct that I would have expected to return all of the products for merchant 65 across all categories but it seems that this is not possible. Shame!
I also notice that the 'Show all' is not built properly - 'c=' and clearly the merchant does not have products in every category - so several issues to be resolved in order to do what I would like to do.
Is this a bug or a feature that is not availble?
Anyone got any thoughts on how this might be resolved? Or does anyone have a way of listing all products from one merchant across multiple categories?
Paul
easy paul
take out the "C" GET and it'll work as expected
eg:
http://www.shopwindow.com/category.php?m=65
Confuscius
11-07-07, 15:24
Hi Andy
I had already tried that! Still returns no results! What am I missing?
Please advise further.
Paul
it did work and I based a verylarge part of my shopwindow on the fact that it did work.
Now it doesn't a large part of my shopwindow is f***ed
Any chance that DigiWin could put this functionality back into their back end please?
Hi Guys,
Will get our dev team to look into this first thing.
Cheers
Amo
Hi Guys,
This should now have been resolved.
Let me know if you get any further problems.
Cheers
Amo
Confuscius
12-07-07, 11:15
Hi Amo
Thanks for the fix - now more ideas to play with!
Paul
Is it possible to do this with the client s'ware?
This would be the line to change:
<a href="{$oFeaturedMerchant->sCategoryMerchantLink}">View products</a>
Cheers
Confuscius
14-07-07, 13:15
These kinds of changed are not achieved through the template but in the underlying code - i.e. where the link is generated.
So, for example, if you wanted to change the view products link under Featured merchants so that the link showed ALL products for each merchant accross all categories instead of products within the current category then you need to faind the following line in includes/elements/featured_merchants.php :
$oNewMerchant->sCategoryMerchantLink= shopcore::buildUrl(T_CATEGORY, '', '', $oMerchant->iId, $iCategoryId);
and change it to :
$oNewMerchant->sCategoryMerchantLink= shopcore::buildUrl(T_CATEGORY, '', '', $oMerchant->iId, '0');
You could of course create a completely new variable and pass that through Smarty to then show a new link on Featured Merchants. There are lots of things to play with!
Paul
Paul
That's a great help. You've filled a 'big hole' in my understanding of the software. This will help a great deal.
As you say, it will give me lots of things to play with!
THANKS - an excellent example of what the forum can do for us all.