Summary below the basket link

cgan

Avatar: cgan

2013-01-30 23:45

How to display the ordered product's summary below the quantity at the basket link?

» Quick.Cart v6.x

cgan

cgan

Avatar: cgan

2013-01-31 13:30

In menu1 I want to show the summary of the products added to basket just below the line
"Products in basket: x"
Example:
Products in basket: 4
Total: 560 EUR

cgan

cgan

Avatar: cgan

2013-01-31 16:11

I don't know if this solution is correct from a programmers point of view but it seems to work.
In core/pages.php find this:
$content .= '"> <a href="'.$aData['sLinkName'].'">'.$aData['sName'].'</a>'.( !empty( $GLOBALS['config']['basket_page'] ) && $aData['iPage'] == $GLOBALS['config']['basket_page'] ? '<span>'.$GLOBALS['lang']['Basket_products'].':&nbsp;<strong>'.$GLOBALS['iOrderProducts'].'</strong></span>' : null ).$aData['sSubContent'].'</li>';

change to this:
$content .= '"> <a href="'.$aData['sLinkName'].'">'.$aData['sName'].'</a>'.( !empty( $GLOBALS['config']['basket_page'] ) && $aData['iPage'] == $GLOBALS['config']['basket_page'] ? '<span>'.$GLOBALS['lang']['Basket_products'].':&nbsp;<strong>'.$GLOBALS['iOrderProducts'].'</strong><br />'.$GLOBALS['lang']['Summary'].'&nbsp;'.$GLOBALS['config']['currency_symbol'].':&nbsp;<strong>'.displayPrice( $_SESSION['fOrderSummary'.LANGUAGE]).'</strong></span>' : null ).$aData['sSubContent'].'</li>';

cgan

interkob

Avatar: interkob

2013-01-31 22:20

This is the solution for v5. Try it on v6

http://opensolution.org/Quick.Cart/docs_v5.x/?id=en-tips#23

cgan

Avatar: cgan

2013-01-31 22:42

Yes I used that solution for v5. I tried it for v6 but there is no menus.tpl and there is no variable #$fOrderSummary in index.php. At least I couldn't find it.
I'm sure there might be a smarter solution than mine.

cgan

interkob

Avatar: interkob

2013-02-01 12:07

Open core/pages.php

the line below shows basket name, quantity. Try to do some modifications here, instead of menu.tpl

$content .= '">  <a href="'.$aData['sLinkName'].'">'.$aData['sName'].'</a>'.( !empty( $GLOBALS['config']['basket_page'] ) && $aData['iPage'] == $GLOBALS['config']['basket_page'] ? '<span>'.$GLOBALS['lang']['Basket_products'].':&nbsp;<strong>'.$GLOBALS['iOrderProducts'].'</strong></span>' null ).$aData['sSubContent'].'</li>';



I'm don't have time to test it at these days...

cgan

Avatar: cgan

2013-02-01 12:48

interkob - it's exactly there I have made my modifications.
I have added this code into the line:
<br />'.$GLOBALS['lang']['Summary'].'&nbsp;'.$GLOBALS['config']['currency_symbol'].':&nbsp;<strong>'.displayPrice( $_SESSION['fOrderSummary'.LANGUAGE]).

And it still works. I thought maybe we could find a smarter solution.
But maybe it's smart enough...

cgan

Back to top
about us | contact