manishbathla 0 Posted December 15, 2014 Report Share Posted December 15, 2014 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. Quote Link to post Share on other sites
Larry 428 Posted December 15, 2014 Report Share Posted December 15, 2014 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. 1 Quote Link to post Share on other sites
manishbathla 0 Posted December 15, 2014 Author Report Share Posted December 15, 2014 Hi Larry, Thank you for replying. I'll try what you suggested and get back with the result. Thanks once again. Quote Link to post Share on other sites
jwaldron92 0 Posted January 24, 2017 Report Share Posted January 24, 2017 I was not able to get the BASE URI and BASE URL to work with XAMPP and PHPStorm. Could you give an example, because chaning all the web address in the css will be difficult. Quote Link to post Share on other sites
Larry 428 Posted January 29, 2017 Report Share Posted January 29, 2017 Could you provide more details about your setup and what specifically isn't working? Quote Link to post Share on other sites
Recommended Posts
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.