Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Define Main-Page Contrib - mattice


rubygirl

Recommended Posts

Quick question for anyone who is using the define main-page contrib developed by Mattice - how can I add one of the "boxes" that are currently residing in either column_right or _left into the main page? There are some boxes that are "nifty" but I don't need them displayed on every page - the best place for them (my opinion) would be in the center of the main page - any help would be swell!!!

 

Thanks and Happy Holidays to everyone!

Link to comment
Share on other sites

Well if it is only to be put on the mainpage, and is not going to be dynamic in style, why dont you just use standard html?

 

This would be an easy way.

Set styles to run from .css file and you can change the look as needed.

 

You could even integrate something dynamic for the products that go in it, like maybe a product of the week etc...

 

CC.

Link to comment
Share on other sites

in your main page file make a new table somewhere like this:

 

<table>

<?php include(DIR_WS_BOXES . 'whatever_box.php'); ?>

</table>

 

That should do it.

 

Mattice

"Politics is the art of preventing people from taking part in affairs which properly concern them"

Link to comment
Share on other sites

  • 3 weeks later...

Thanks for the great contrib, Mattice!

 

I have successfully installed and can create links to other pages outside the catalog, but I can't seem to create links within define mainpage to other pages within the catalog (I know it's just because my knowledge of PHP is so lacking).

 

Specifically, I want to make links within the define mainpage area to 1)specific categories from the category list and 2) specific manufacturers from the manufacturer list.

 

Thanks for any help :!:

... if you want to REALLY see something that doesn't set up right out of the box without some tweaking,

try being a Foster Parent!

Link to comment
Share on other sites

I've managed to create a link within define mainpage, BUT the text that I'm trying to have appear as the link (in red) disappears and the active link area (in green) continues to the end of all of the text in the box (the link actually goes where I want it to, I just need it to say Briggs & Stratton):

 

Small Engines & Short Blocks

plus Service and Repair Manuals for:

Briggs & Stratton, Honda, Kawasaki, Kohler, Tecumseh

 

Parts, Parts and more Parts...

O.E.M. and Aftermarket parts for all of the above, plus

MTD, Murray, Homelite, Sears/Craftsman and many more!

 

Help and Information

With references available to over 1,200,000 part numbers, we're not going to have everything in the online catalog! Just use our Help Desk to ask us about what you need, and we'll do our best to find it for you.

 

still to come... Lawn & Garden and Pet Supply products![/color]

 

The code for the area around the link is this:

<br>

plus Service and Repair Manuals for:

<br>

<b><a href=" . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=10') . "Briggs & Stratton</a>, Honda, Kawasaki, Kohler, Tecumseh</b>

<p>

<b><big>Parts, Parts and more Parts...</big></b>

 

Can anyone point me to the (probably a single keystroke) error of my ways :?

... if you want to REALLY see something that doesn't set up right out of the box without some tweaking,

try being a Foster Parent!

Link to comment
Share on other sites

:shock: I think it's time to pause for a while

 

I was missing the closing > on my <a href=

 

:oops:

... if you want to REALLY see something that doesn't set up right out of the box without some tweaking,

try being a Foster Parent!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...