Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Design Issue


Mamoonat

Recommended Posts

Hello

First of all i'd like to thank osCommerce for thier really powerfull product, I installed it on my site, and it's working 100% alright, but i have 2 questions...

 

1- I want to make the left taple to be up, i just draw scratch on photoshop to make it clear... you can check it on this page

http://www.5tars.com/demo.jpg

 

2- my other question is, i already added another box to the left, and i want to link it to some category.. how can i do this...

 

3- my final question, how can i make the categiroes, in the main categiory page to show as dropdown menu...

 

please help me to make my system look better...

regards :thumbsup:

Link to comment
Share on other sites

Hello

First of all i'd like to thank osCommerce for thier really powerfull product, I installed it on my site, and it's working 100% alright, but i have 2 questions...

 

1- I want to make the left taple to be up, i just draw scratch on photoshop to make it clear... you can check it on this page

http://www.5tars.com/demo.jpg

 

2- my other question is, i already added another box to the left, and i want to link it to some category.. how can i do this...

 

3- my final question, how can i make the categiroes, in the main categiory page to show as dropdown menu...

 

please help me to make my system look better...

regards :thumbsup:

 

 

1. Without majorly altering every major page in the /catalog/ directory, it would not really be possible to move the category box up as you want.

 

2. The easiest way to do this would be:

- Drill down to the category you wish to link to by visiting it on your website.

- Copy the URL

- edit the url so instead of

 

http://www.yoursite.com/index.php?cpath=10

 

You end up with index.php?cpath=10

- Copy the new url into your new box and link it as needed.

NOTE: the link above may be slightly different depending upon how customized your store is, whether you have SEF URL's turned on or off.

 

3. There is a contribution to make the categories a drop down menu, which can be found here:

http://www.oscommerce.com/community/contributions,46/

 

Hope this helps.

Sincerely,

Bruce

 

19 contributions submitted

Link to comment
Share on other sites

1. Without majorly altering every major page in the /catalog/ directory, it would not really be possible to move the category box up as you want.

 

2. The easiest way to do this would be:

- Drill down to the category you wish to link to by visiting it on your website.

- Copy the URL

- edit the url so instead of

 

http://www.yoursite.com/index.php?cpath=10

 

You end up with index.php?cpath=10

- Copy the new url into your new box and link it as needed.

NOTE: the link above may be slightly different depending upon how customized your store is, whether you have SEF URL's turned on or off.

 

3. There is a contribution to make the categories a drop down menu, which can be found here:

http://www.oscommerce.com/community/contributions,46/

 

Hope this helps.

 

when hardcoding a link to a category, be sure to only use tep_href_link, or you may end up with your cart contents lost ...

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

when hardcoding a link to a category, be sure to only use tep_href_link, or you may end up with your cart contents lost ...

 

Have you run into this problem before Monica? We have hardcoded a few categories for various stores, including creating a custom DHTML drop down menu, without issue of loosing items in a cart. Good example of this is:

 

http://www.mfasco.com

 

But just to be on the safe side, here is two ways using Monika's example to handle it properly :).

 

--------

 

If you are hardcoding HTML / PHP into your new infobox, and using my instructions above, you would:

 

<a href="<?php echo tep_href_link(FILENAME_DEFAULT); ?>?cPath=10">Category Name</a>

 

Where you would replace cPath=10 with your own category ID.

 

If you are using search engine friendly URL's turned on, you should instead use this:

 

<a href="<?php echo tep_href_link(FILENAME_DEFAULT); ?>/cPath/10">Home</a>

 

Hope this helps.

Sincerely,

Bruce

 

19 contributions submitted

Link to comment
Share on other sites

Have you run into this problem before Monica? We have hardcoded a few categories for various stores, including creating a custom DHTML drop down menu, without issue of loosing items in a cart. Good example of this is:

 

http://www.mfasco.com

 

But just to be on the safe side, here is two ways using Monika's example to handle it properly :).

 

--------

 

If you are hardcoding HTML / PHP into your new infobox, and using my instructions above, you would:

 

<a href="<?php echo tep_href_link(FILENAME_DEFAULT); ?>?cPath=10">Category Name</a>

 

Where you would replace cPath=10 with your own category ID.

 

If you are using search engine friendly URL's turned on, you should instead use this:

 

<a href="<?php echo tep_href_link(FILENAME_DEFAULT); ?>/cPath/10">Home</a>

 

Hope this helps.

 

yup Bruce, I've seen hardcoding fail when cookies were not saved. I never ever hardcode links ... or images ... it can create the biggest messes :-), and I know what I'm talking about, I spent most of my Friday cleaning up such a mess from an "inherited" project!

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

I shall take that into consideration before we hardcode any category links in the future Monika :). Thanks.

 

ohh thanks alot guys, but can you please help me to answer my first question about moving the left_table to the top of the page?

please

 

To answer your question Mamoonat:

 

In short, without using my graphical infobox headers contribution with which I could give you direction on how to do it, there is no easy way to do this without totally recoding almost all of the files in the /catalog/ directory.

 

This is due to the way oscommerce pages are laid out.

Sincerely,

Bruce

 

19 contributions submitted

Link to comment
Share on other sites

If you just want to move the search box to the top there it is quite easy to do without having to edit every file. Just the header.php, column_left.php and maybe (depending on how you do it) the search.php

This will only allow you to move the search box and go button. Not all the text and so on... and it will not move up all of the boxes.

 

If this is what you want to do let me know and I will tell you how to do it as best as I know how.

 

Otherwise as was stated you would have to edit every page.

You could edit it in such a way to make you believe the column goes all the way up. That would only take some edits to the header.php to add the box you want, and then some adjusting to make that column line up with your column_left.php.

Could end up being a lot of work if you are unfamiliar with editing the pages but it can be done. I have done it on several sites.

Wendy James

 

Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.

Link to comment
Share on other sites

I could be mistaken, but based upon his demo image and comments, I think he wants to move the entire left column up higher into his header so that the top and part of the search box will be part of his header.

Sincerely,

Bruce

 

19 contributions submitted

Link to comment
Share on other sites

I could be mistaken, but based upon his demo image and comments, I think he wants to move the entire left column up higher into his header so that the top and part of the search box will be part of his header.

 

I think you are right mushindo I understand it that way too, and if this is what is wanted I did it on my site and might assist too, there is a contrib as well serch box anywhere I think

 

example on my site here

 

dahui

Link to comment
Share on other sites

You do not have to use a contribution to move the box to the header.

All you have to do is add the php code calling it, like what is in the column_lef.php

 

That alone takes all of about 3 minutes to do.

Wendy James

 

Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.

Link to comment
Share on other sites

Wendy is correct: If all you are trying to do is move the search box itself into your top header, you can easily call upon it in your /includes/header.php page

 

If you are trying to move your search box into the header, while also balancing both the right and left columns though...so it appears the left column goes up more, it definately will take more work.

Sincerely,

Bruce

 

19 contributions submitted

Link to comment
Share on other sites

  • 1 month later...

i have moved the search box into my header by only using it via formaction. however, when i CLICK search, it doesn't work. :( i have to click enter/return on my keyboard for it to work. any ideas what i did wrong?

Link to comment
Share on other sites

i have moved the search box into my header by only using it via formaction. however, when i CLICK search, it doesn't work. :( i have to click enter/return on my keyboard for it to work. any ideas what i did wrong?

 

It would help to see the code and a link :-)

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

It would help to see the code and a link :-)

 

I still need to see the code that you added ... only the form part of it in the header!

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

sorry,

here is the code

<form name="quick_find" action="advanced_search_result.php" method="get">
<input class="searchbox" type="text" name="keywords" size="35" maxlength="40">
 <input class="searchbox" type="button" value="Search"></form>

Link to comment
Share on other sites

sorry,

here is the code

<form name="quick_find" action="advanced_search_result.php" method="get">
<input class="searchbox" type="text" name="keywords" size="35" maxlength="40">
 <input class="searchbox" type="button" value="Search"></form>

 

this is the code you used? this is not php ...

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

what code do you need then? none of the search php files have been modified

 

did you add html code for the search to the header? When I'm doing this, mine is always php, like in this project (it has stuff you will not need)

 

		<tr>
		<td align="right" valign="middle"><table border="0" cellspacing="0" cellpadding="0">
			<tr>
					<td align="right" valign="middle">
						<?php echo tep_draw_form('advanced_search', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'GET') ?><?php echo tep_draw_hidden_field('inc_subcat','1') . tep_draw_hidden_field('search_in_description','1') . tep_draw_input_field('keywords', '', 'size="14" maxlength="30" onFocus="emptyMe()"') ?>
					</td>					
					<td align="right" valign="middle">
						<?php echo tep_image_submit('go.gif', IMAGE_BUTTON_SEARCH) . tep_draw_separator('pixel_trans.gif', '35', '1'); ?>
						</form>				
					</td>
				</tr>
			</table></td>
		</tr>

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...