Stuck at adding files to file manager

Link to this post 14 Mar 10

I understand how to use the cart and to add products there, however I want to add some html pages as well and I'm not sure where to add these files and I'm afraid to put them in the wrong place so I haven't done anything.

Could use some tips/help on doing this. I want to add some pages under my categories but without the cart, just html pages. Hope I'm explaining myself sufficiently.

Thanks for the help,
Maureen

Link to this post 15 Mar 10

There are a few different ways to do that depending on what you want the end result to be.

I see that you are using the shopping cart. If you want to add a new page to your store and have it use the same design, then the easiest way would be to do it directly through your shopping cart.

In your admin, go do Page Editor and click on the New Page button. There is an HTML editor built right into that area, so you can just type whatever you want and then hit the preview button and then insert on the following page.

If you have a piece of html to insert, then you can click on the Source button on the editor and paste it directly into there.

Once you add a page to that area, you will see it in the list of pages in the Page Editor area. The link to that page will automatically be inserted into the Information box on your website.

If you do not want the link to show up in the information box, you can simply turn the page off by clicking on the red button next to it in the Page Editor area.

Note: the linking name cannot have spaces or strange characters in it. This name will be part of the url.

Hope this helps. Let me know if you need instructions on how to add a website page outside of the shopping cart.

Link to this post 20 Mar 10

Yay!! Thanks your answers helped and non I can do what I wanted to...now I would also like to know how to add an html page outside of the cart...so the page will end up under categories--or is that only done with the cart?

Thanks much,
Maureen :cheer:

Link to this post 20 Mar 10

That would be done in the cart too. Basically anything you want to show up on your existing website is done through the cart. If you wanted a page that was completely separate from your website (different design, no link to it, etc), that would be done outside.

The cart is built in a way so that pages without products can't be placed in the categories area. However, we can try a couple different things to get it there anyway.

1) You could create a new category and, instead of adding products to it, you could leave it empty and just place your info on the category page itself.

When you create a category, the area looks like this:

That last box, the Header Tags Categories Description box, can be used to place any amount of text on a category page. The box accepts plain text as well as HTML, so if you want to make it look really different, you could type up your page over in the Page Editor's html editor and copy the source code over to that box.

The only downside is that the very bottom of the page would either show a message saying that you have no products in the category or you would have to put one or more products in it. You could just copy a few over to duplicate themselves in this category if you wanted.

You could remove that message from being shown if you really don't like it. To do that, you will need to edit the includes/modules/product_listing.php file. To get to that file, go to the Tools link and click on the Define Languages link. You will see a button at the bottom for the File Manager. Navigate through the file manager through the includes folder, the modules folder, and click to edit the product_listing.php file.

Closer to the bottom of the file (around line 148), you'll see this:

$list_box_contents[0][] = array('params' => 'class="productListing-data"',
'text' => TEXT_NO_PRODUCTS);

Change it to this:
$list_box_contents[0][] = array('params' => 'class="productListing-data"');

Or, you could go with a different way of doing it:
2) You could create a page over in the Page Editor and set it to the off position. Then, you could manually go into the php file for the categories box and add a link to the new page. To get to that page, go to the Tools link and click on the Define Languages link. You will see a button for the file manager. Navigate your way through that into the includes/boxes folder and click to edit the categories.php file. Towards the bottom of the file, find this:

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

and change it to this:
$info_box_contents[] = array('text' => $categories_string  .
'<a class="infoBoxContents" href="http://link1.com">link 1</a><br>' .
'<a class="infoBoxContents" href="http://link2.com">link 2</a><br>' .
'<a class="infoBoxContents" href="http://link3.com">link 3</a>');

Of course, replace the links and link text with what you are linking to. Note that the last link you use must end differently than the others.


The downsides here are that this is the more involved way to make the pages and that you can't order your links as easily. The added links you create can't be used within the category links. They must be above or below the categories. In the other option explained above, you would be able to arrange the links in any order you want.

The advantage is that you won't have the message about there not being any products in the category.

Let me know if you have any questions or need any help.

You don't have access to view the attachments in this post.

Latest Posts