Jump to content
Larry Ullman's Book Forums

Recommended Posts



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.



Link to post
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 post
Share on other sites
  • 2 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...