Problem with start page revision

dheghel

Avatar: dheghel

2007-10-28 18:09

Guys...i need ur help, i use QC v1.4 and i want left menu will be start page ( one of this categories = New products!, Promotions, Desktop PC, LCD Displays or Notebooks ) + Products list below.

I had tried :

1.
----------------------------------------------------------------------------
edit file "index.php"
and find:

if( !isset( $_GET['p'] ) || $_GET['p'] == '' )
$_GET['p'] = $config['start_page'];

replace to:
<?php
if( !isset( $_GET['p'] ) || $_GET['p'] == '' ){
$_GET['p'] = 'productsList';
$_GET['iCategory'] = 8; // 8 is id of New Products!
}
?> -----------------------------------------------------------------------------
but browser error i got message : Parse error: syntax error, unexpected '<' in C:\Apache2\htdocs\fat\index.php on line 18. Then i tried

2.
In the config/lang_en.php file, edit the start page in the config variable on (around) line 21. You'll want it to be p_8 ( 8 is my id for new products!). browser start with new products! but without the products list.

That i want is browser start with New Products and Products list below, I need ur help to solve this problem thanks...

» Quick.Cart v1.x

merci

No avatar

2007-10-29 08:46

dheghel - don't put '<?php' and '?>' markers in code you replace

dheghel

Avatar: dheghel

2007-10-29 13:19

Ok. i already to replaced <?php' and '?>' markers in code, but browser now always start with contact page, i change in admin menu for start page with other menu, but still show with contact page....is there another way merci?

thx 4 ur answer...

merci

No avatar

2007-10-30 07:22

dheghel - I'm not sure if you understand me... edit index.php and following code:

if( !isset( $_GET['p'] ) || $_GET['p'] == '' )
  
$_GET['p']  = $config['start_page'];

replace with:

 if( !isset( $_GET['p'] ) || $_GET['p'] == '' ){
  
$_GET['p']  = 'productsList';
  
$_GET['iCategory'] = 22// enter here your id
}

It should works as somebody tested it - http://opensolution.org/Quick.Cart/forum/?p=readTopic&nr=2259

dheghel

Avatar: dheghel

2007-10-30 16:20

sorry merci...I did it but Start Page is "Contact" now. I changed many times number of category and it is still "Contact". like somebody ask it - http://opensolution.org/Quick.Cart/forum/?p=readTopic&nr=4303...maybe there is another script to change or replace again. Maybe u can test it self in ur browser too...i'm sorry. I try to make this case can clear.

merci

No avatar

2007-10-31 09:30

dheghel - contact page is loaded if id of page is not defined. I checked it and it worked. If you have Q.C 1.4 your code looks a little bit different - you have to replace this:

if( !isset( $p ) || $p == '' ){
  
$p  $config['start_page'];
}

to the following code:

if( !isset( $p ) || $p == '' ){
  
$p  'productsList';
  
$iCategory 4// enter here your id
}

and id of category you enter must exist.

dheghel

Avatar: dheghel

2007-10-31 18:24

merci - i make mistake because i don't tell u that i use Q.C 1.4 loaded version and Q.C. 1.4 loaded fat version, now after i try Q.C 1.4 Original version that's script is working. But what i must do to make that script working in Q.C 1.4 loaded version and make that version to loading the id of category like i want. Thanks for ur all attentions

merci

No avatar

2007-11-02 09:20

dheghel - ok, I tested it on loaded version and it also works properly. Try again, it must work.

dheghel

Avatar: dheghel

2007-11-02 12:07

merci - Ok. thanks....i will check again

Back to top
about us | contact