Remove Category menu and random product

re-aktor

No avatar

2006-09-18 06:47

Sorry for my bad english...

Is it possible to remove Category menu and random product when the basket and the next step (where xou put in ypur name, adress,...)is shown? my QC is in an frame and there is not enough space...

any ideas? greetings

re-aktor

No avatar

2006-09-18 08:58

ok i found out that i cannot put php in the tpl, i have to call it with $xyz
but my php knowledge isnt that good... i thaught about something like this:

$p $_GET["p"];
if (
$p=='ordersBasket') {echo "";}
if (
$p=='ordersDelivery') {echo "";}
else {echo 
"$sCategoriesMenu;";}



but i dont know where and and how i could call it with an variable. and i dont understand this one http://opensolution.org/Quick.Cart/forum/?p=readTopic&nr=2260

could please somebody help? or all my work will be useless :-(

treewood (OpenSolution)

Avatar: treewood

2006-09-18 15:27

re-aktor - try this one:

$p $_GET["p"];
if (
$p=='ordersBasket') { $sData 'someInfo'; }
if (
$p=='ordersDelivery') { $sData 'someInfo'; }
else {}

Next step is to edit templates for example templates/orders_basket.tpl and after add $sData variable to block LIST_HEAD or LIST_FOOTER

re-aktor

No avatar

2006-09-19 01:04

just copy the code somewhere in the index.php? i copied it (cause someone said so in another topic) before this line in the index.php

echo $tpl->tbHtml'page.tpl''HEAD'.$sBlockPage ).$content.$tpl->tbHtml'page.tpl''FOOTER'.$sBlockPage );


but i only get this error
"Notice: Undefined index: p in /srv/www/htdocs/web211/html/shopsystem/index.php on line 186"
when add $sData to the page.tlp

i suppose with the code above i could add some info when at the basket, but i want to the srcipt to NOT show the $sCategoriesMenu!

thank a lot for your help!!!

re-aktor

No avatar

2006-09-19 11:23

mhh iam testing arround but with no solution! anybody an idea?

treewood (OpenSolution)

Avatar: treewood

2006-09-19 15:03

Then delete this $p = $_GET[''p'']; and copy code before: if( is_file( $sActionFile ) ) in file index.php
I think it will work

re-aktor

No avatar

2006-09-19 15:53

mhh i can use that feature very well ^^

but it doesnt make the categories invislbe or disabled when go to order basket and orders delivery. i dont know if you understand what i mean...

sorry for all the trouble!!!

re-aktor

No avatar

2006-09-21 17:01

please help anybody... thx ;-)

treewood (OpenSolution)

Avatar: treewood

2006-09-21 18:30

re-aktor - but i dont understan. You want to show some info in selected $p ... what more?

re-aktor

No avatar

2006-09-21 19:44

mhh no i want NOT to show the categorie menu and the randominfo when somebody enters any site of the cart...
mhh should look like this with modification
http://nonkonform-design.de/shopsystem/1.jpg

it looks like this rigt now!
http://nonkonform-design.de/shopsystem/1.jpg

link to shop:
http://nonkonform-design.de/shoptest.php

sorry for all the trouble and abig thank for your patience!

re-aktor

No avatar

2006-09-21 19:45

mh sorry link to: it looks like this rigt now! is
http://nonkonform-design.de/shopsystem/2.jpg

Claps

Avatar: Claps

2006-09-22 10:28

re-aktor- inf index.php locate the code

$sCategoriesMenu = listCategories( 'categories_menu.tpl', 1, true, Array( $iCategory ) );


and replace it with

if (!($p=='ordersBasket') && !($p=='ordersDelivery'))
$sCategoriesMenu = listCategories( 'categories_menu.tpl', 1, true, Array( $iCategory ) );
.
Basically, the code adds condition that if page is not ordersBasket or ordersDelivery to generate categories menu. In case that page is ordersBasket or ordersDelivery categories menu is not generated.
Hope that solve your problem.

re-aktor

No avatar

2006-09-22 14:10

thank you very much!!! Claps and treewood thank you wasting your time for me!!!rthats works for me very well!!! greets felix

tiux

Avatar: tiux

2017-11-11 11:07

Hello!

I have the same question as re-aktor.
But dont see this kind of code in index.php
Can anyone help?
How to remove products menu on the left from the page?

Back to top
about us | contact