Site integration

nick.kirby

No avatar

2006-03-04 01:49

Hello there - me again.

I've created a shop, and this works fine in a site on it's own.

I really want to put my site inside of my own website, however when i try, using the same "get " method as for my other pages, this happens:

Warning: filesize() [function.filesize]: stat failed for plugins/plugins.php in C:\WWW\niknet\cart\index.php on line 43

Warning: file(db/categories.php) [function.file]: failed to open stream: No such file or directory in C:\WWW\niknet\cart\core\categories-ff.php on line 94

Warning: filesize() [function.filesize]: stat failed for plugins/actions_client.php in C:\WWW\niknet\cart\index.php on line 58

Warning: fopen(db/categories_ext.php) [function.fopen]: failed to open stream: No such file or directory in C:\WWW\niknet\cart\libraries\FlatFiles.php on line 53

Warning: fgetcsv() expects parameter 1 to be resource, boolean given in C:\WWW\niknet\cart\libraries\FlatFiles.php on line 378

Yet the files are there, adn I am referencing quickcart like this:

<?php include "cart/index.php" ?>

from a file called "shop.php" which contains the lines

include header adn include cart/index.php

Before this I <?php incclude the header, which calls the CSS sheet.

Any ideas most welcome!




thomas.slowhand

No avatar

2006-03-04 08:13

From my point of view this can't work. The index page is to be called via normal http-call, this means you have to call it with a html-"href"-statement.

Thomas

nick.kirby

No avatar

2006-03-04 13:03

Hello there, thank you for your reply:

I've managed to get the cart plumbed into my site, however - and I think this might solve my problem - when I run through it and get to the basket stage, the system dies and tells me about not being able to send headers because they've already been sent.

I've edited the index.php page to call my banner and menu system:

<title>NIKNET: A grumpy old man on the web.</title>
<body>
<div id="big_header"><IMG SRC="/pics/banner.png" width ="780" height="180"></div>
<div id="topnav">
<ul>
<li><a href="/index.php">home</a></li>
<li><a href="/writing.php">writing</a></li>
<li><a href="/waffle.php">waffle</a></li>
<li><a href="/comps.php">comps</a></li>
<li><a href="/cart/index.php">shop</a></li>
</ul>
</div>
</body>
<?php
/*
* Quick.Cart by OpenSolution.org
*

* www.opensolution.org
*/
extract( $_GET );

require 'config/general.php';
etc.

however this results in the headers issue for session cookies. Is there another way around this problem of including the banner and the shopping cart software?

I didn't notice an HTML file in the cart package - is there one?





Till

No avatar

2006-03-05 10:26

Hi nick.kirby,

I think the only way to integrate the shop is using a frameset or an iframe. Only this would circumvent the header problem. Only then the shop is called as a new page with its own header which enables coookies.

Till

nick.kirby

No avatar

2006-03-14 14:10

Ah ha! I have created el iframe and managed to get it to work seamlessly! I shall join the ransk fo the brainy people!

However... as an aside, when my "shop" is clicked, the whole list of items is shown (I've not many, but they add up.

Is it possible to not show the list of items, and instead perhaps show a banner or short message, such as Welcome to my shop, do this, go here, etc..?

And FINALLY - is there a method of putting the money sign &#163;, $, euro etc BEFORE the amount?

Back to top
about us | contact