any chance to displaying at same position?

lokomot

No avatar

2009-02-25 16:12

hello,

I have little problem..

Is any chance to display any opened page in same length from top like page before?
example:..i have big logo - every time when someone click to open some page in my quickcart, he dont se almost nothing except logo..every time he must to move down..and I want to open page in same level like page before.

thanx for help

» Quick.Cart v3.x

beholder

Avatar: beholder

2009-02-25 17:18

it is easy to do.
Go through templates pages_default.tpl and products_default.tpl and find several times the expression $aData[sLinkName]
Immediately after this expression add #jump, like this
$aData[sLinkName]#jump

Then just edit the container.tpl or pages_default.tpl to set up a named anchor in a place of your liking, just put this text there:
<a name="jump"></a>

beholder

Avatar: beholder

2009-02-25 17:23

Oh, you also have to go through more files (menu1.tpl, etc) to find more occurences of $aData[sLinkName] -- list is here:
templates/menu2.tpl (block LIST)
templates/menu3.tpl (block LIST)
templates/menu4.tpl (block LIST)
templates/orders_basket.tpl (block BASKET_LIST)
templates/orders_form.tpl (block ORDER_PRODUCTS_LIST)
templates/pages_default.tpl (blocks SUBPAGES_LIST_1, SUBPAGES_LIST_2, PRODUCTS_LIST, PRODUCTS_IMAGE)
if using plugin RandomProduct also templates/container.tpl (block RANDOM_PRODUCT)

then modify this line in core/pages.php:
$this->mData[] = '<a href="'.$this->aPages[$this->aPagesParents[$iPage]]['sLinkName'].'">'.$this->aPage s[$this->aPagesParents[$iPage]]['sName'].'</a>';
to:
$this->mData[] = '<a href="'.$this->aPages[$this->aPagesParents[$iPage]]['sLinkName'].'#jump">'.$this-> aPages[$this->aPagesParents[$iPage]]['sName'].'</a>';


and modify this line in core/products.php:
$sTree .= '<a href="'.$oPage->aPages[$iPage]['sLinkName'].'">'.$oPage->aPages[$iPage]['sName'].'< ;/a>';
to:
$sTree .= '<a href="'.$oPage->aPages[$iPage]['sLinkName'].'#jump">'.$oPage->aPages[$iPage]['sName'] .'</a>';

lokomot

No avatar

2009-02-25 17:51

Thank you much guys...Im absolutly php noob:) then I hope Ill do it right

Back to top
about us | contact