Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

DynaMenu & STS 4.2


monikart

Recommended Posts

Incase anyone else is experiencing troubles with the Dynamenu working with STS 4.2, here is what i did:

 

opened: includes/modules/sts_inc/sts_user_code.php

 

added the following (there are instructions at the top on how to create boxes):

 

$sts->start_capture();

require(DIR_WS_BOXES . 'dm_categories.php');

$sts->stop_capture('dmbox', 'box');

 

(If you have a previous version of STS the sts_user_code.php will be located under includes/modules and you'll have to add the box with slightly different code)

 

Then I opened: includes/boxes/dm_categories.php

 

///////////I changed this://////////////////

 

// Initialize HTML and info_box class if displaying inside a box

if ($show_dmcats_as_box) {

echo '<tr><td>';

$info_box_contents = array();

$info_box_contents[] = array('text' => BOX_HEADING_CATEGORIES);

new infoBoxHeading($info_box_contents, true, false);

 

///////////To This://///////////////

 

// Initialize HTML and info_box class if displaying inside a box

if ($show_dmcats_as_box) {

echo '<tr><td>';

$info_box_contents = array();

new infoBoxHeading($info_box_contents, true, false);

 

 

Basically I wanted to remove the infoBox header. Maybe there is a better way but this worked for me. I am no PHP expert.

 

Lastly I added the box onto my STS Template pages.

 

Open your HTML page(s) and add

 

$dmbox

 

Where you want your menu to appear.

 

 

I hope this helped some. My menu can be seen at www.mysampleshop.com (it's a demo for my clients so you can test to your hearts content)

What would you do if you knew you could not fail?

Link to comment
Share on other sites

To be more specific, I had isues with the drop down feature working properly.

 

Incase anyone else is experiencing troubles with the Dynamenu working with STS 4.2, here is what i did:

 

opened: includes/modules/sts_inc/sts_user_code.php

 

added the following (there are instructions at the top on how to create boxes):

 

$sts->start_capture();

require(DIR_WS_BOXES . 'dm_categories.php');

$sts->stop_capture('dmbox', 'box');

 

(If you have a previous version of STS the sts_user_code.php will be located under includes/modules and you'll have to add the box with slightly different code)

 

Then I opened: includes/boxes/dm_categories.php

 

///////////I changed this://////////////////

 

// Initialize HTML and info_box class if displaying inside a box

if ($show_dmcats_as_box) {

echo '<tr><td>';

$info_box_contents = array();

$info_box_contents[] = array('text' => BOX_HEADING_CATEGORIES);

new infoBoxHeading($info_box_contents, true, false);

 

///////////To This://///////////////

 

// Initialize HTML and info_box class if displaying inside a box

if ($show_dmcats_as_box) {

echo '<tr><td>';

$info_box_contents = array();

new infoBoxHeading($info_box_contents, true, false);

Basically I wanted to remove the infoBox header. Maybe there is a better way but this worked for me. I am no PHP expert.

 

Lastly I added the box onto my STS Template pages.

 

Open your HTML page(s) and add

 

$dmbox

 

Where you want your menu to appear.

I hope this helped some. My menu can be seen at www.mysampleshop.com (it's a demo for my clients so you can test to your hearts content)

What would you do if you knew you could not fail?

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...