close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Replicating store product menu on site home page

Thread began 6/18/2019 6:34 pm by Patrice | Last modified 6/19/2019 4:57 pm by Ray Borduin | 30 views | 9 replies |

Patrice

Replicating store product menu on site home page

I have the cart installed in its own powerstore folder. On the site home page, I have an area where I want to insert just the product menu so customers can pick out a category from that menu and go immediately to the cart for that category. If you can point me in the right direction of which elements I should do for an include, I'd appreciate it. I don't want to do just a one button tied to search all products (/products_results.php) but rather capture the menu itself.

Sign in to reply to this post

Ray BorduinWebAssist

Open up the file:

webassist/themes/[your theme]/plugins/plugins.php

Find thes lines:

php:
} else  {

    $WASideMenu = new WA_Include('../../../plugins/side_menu/nested_accordion/sidemenu.php');
    require($WASideMenu->BaseName);
    $WASideMenu->Initialize(true);
}


move it out of the else statement, so the code becomes:

php:
}

$WASideMenu = new WA_Include('../../../plugins/side_menu/nested_accordion/sidemenu.php');
require($WASideMenu->BaseName);
$WASideMenu->Initialize(true);



Now open your index page: webassist/themes/[your theme]/templates/index.dwt.php

in the header just below the <title> tag make sure this code exists:

php:
<?php echo(isset($WASideMenu)?$WASideMenu->Head:""); ?>



Then wherever you want the menu to appear add:

php:
<?php echo($WASideMenu->Body); ?>
Sign in to reply to this post

Patrice

Awesome! I will give a try! Thank you so much!

Sign in to reply to this post

Patrice

probably wrong guess... I'll try

Sign in to reply to this post

Ray BorduinWebAssist

no the closer is above. You removed the else { opener and the closer } below... so it should be balanced if you followed my instructions.

Sign in to reply to this post

Patrice

thank you... I will give it a try

Sign in to reply to this post

Patrice

I believe I followed the instructions but the home page (outside of the cart) is not showing the menu. Wouldn't I need some connections related to the cart to get it to show up?

Sign in to reply to this post

Patrice

I did a tester page, and added this, which resulted in a partial solution. It is now listing the items in the catalog, but not the colors or the click throughs, so I'm not there yet.

I added:

<?php

require_once('PowerStore/webassist/themes/theme_open.php');

$WAIncludeContent = new WA_Include(__FILE__);

?>

<?php

$WACatalogResults = new WA_Include('PowerStore/webassist/plugins/catalog/themed/results.php');

require($WACatalogResults->BaseName);

$WACatalogResults->Initialize(true);

?>

Sign in to reply to this post

Ray BorduinWebAssist

I'll need FTP access to debug and look at the code on the page.

Sign in to reply to this post

Patrice

Thanks Ray, but I don't want to pester you. I'll just mock up a red menu and link to each cat. Not that big of a deal. I just thought there might be a shortcut. Thank you though!

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...