![]() |
Detailed Recommends List
I am almost finished with a custom mod that shows details of the products that show up under the Recommends List. I only have one problem, which I hope you all can help me with, and that is I am unable to get it to display the price. Instead it says: "Enter your price !" as if the products have no prices. The description, product title, and image thumbnail works though. Here is the code:
Code:
{* $Id: recommends.tpl,v 1.3 2004/03/01 16:26:00 salsabeel Exp $ *} Thanks in advanced! |
any update on this? I would love to see this working.
|
Does anyone know? I'm pretty sure it has to do with the following part:
Code:
{if $recommends[num].price ne 0} |
the problem lies in the xcart source code itself - which doesn't grab the price out of the database. If you want this to work you will have to go further than just the templates.
|
Im sorry, but i cant believe that what you said.
Everything can displayed, so it has to be a way to display the price of the recommended product. If you want to display the list price, this works. In case it has to be way for displaying the actual price, too |
if you use the debug window and alter the smarty.php file as below you will see all active variables
find Code:
$smarty->debug_tpl="file:debug_templates.tpl"; change to Code:
$smarty->debug_tpl="file:debug.tpl"; :wink: |
Quote:
theres a sql select statement in the php coding which doesn't grab the price - hence the templates see the price as 0 - (enter your price!). You have to remember that the list price is just one figure. The selling price can be different for different type of customers, and unforently this is not in the recommend products coding. |
All times are GMT -8. The time now is 12:38 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.