Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Easy Shopping Cart Question


Dmoore

Recommended Posts

Posted

Have a rather easy question but considering I am relatively new to PHP its rather difficult for me.

 

I am wanting to add the Shopping Cart Box that shows the contents of the users shopping cart on each page of my site. I have OsCommerce installed and operational but I am running into massive problems trying to put the shopping cart box on each page.

 

I picked up some books on PHP to help gain some knowledge on the subject but I need to get this up as quick as possible. Sorry for the easy question and I am sure it has been asked before. I checked the knowledge base but did not see anything on the subject (may have missed it)

 

If you need any more information from me just ask

Posted

You can call the box using:

 

<?php   require(DIR_WS_BOXES . 'shopping_cart.php'); ?>

 

Matti

Posted

I tried that and it gave me some String Error saying it could not find it. Does it matter that its not in the catalog directory that OsCommerce installs the stuff into? Again, I am not to fantastic with PHP and I am used to the HTML paths. My hoster is currently down for some technical trouble when it is back up I will post the error message I am getting.

Posted

Heres the error message I get with that code

 

Warning: main(DIR_WS_BOXESshopping_cart.php): failed to open stream: No such file or directory in /hsphere/local/home/dmoore9/collectiblecoins.net/index.php on line 161

 

Fatal error: main(): Failed opening required 'DIR_WS_BOXESshopping_cart.php' (include_path='.:/usr/local/lib/php') in /hsphere/local/home/dmoore9/collectiblecoins.net/index.php on line 161

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...