Jump to content
Larry Ullman's Book Forums

Recommended Posts

Hi,

 

I bought this book effortless ecommecre 2nd edition and downloaded the source code from this website. The first pdf example worked but the coffee ecommerce script isn't working properly.

 

First, I am using xampp and the directory i stored the code for coffee ecom is at "c:/xampp/htdocs/ullman". what should be my base uri and base url. I did "define('BASE_URI', 'c:/xampp/htdocs/ullman/'), define('BASE_URL', 'localhost/ullman/');" which made the site work partially. For instance, the Home, Coffee, Goodies, Sales, Wish List, Cart works but the css for pages having url "http://localhost/ullman/shop/" like Coffee, Goodies and Sales isn't working. The page shows the content but no design. Why?

 

Second, on cart.php there are two options, Update quantity and checkout. The checkout takes me to "https://localhost/ullman/checkout.php" (which works partially, again there is no css design)  but when I try to update the quantity there is a 404-object not found error with url becoming "http://localhost/cart.php".

 

Can anyone guide what is wrong that I am doing.

 

Thanks.

Link to comment
Share on other sites

Those BASE_URI and BASE_URL values look good. Your CSS is probably not working because your HTML is looking for it in /css not /ullman/css. Links to other pages would need to include "ullman" in them, too, so they aren't pointing to the web root. 

  • Upvote 1
Link to comment
Share on other sites

  • 2 years later...
 Share

×
×
  • Create New...