manishbathla Posted December 15, 2014 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. Link to comment Share on other sites More sharing options...
Larry Posted December 15, 2014 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 Link to comment Share on other sites More sharing options...
manishbathla Posted December 15, 2014 Author 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. Link to comment Share on other sites More sharing options...
jwaldron92 Posted January 24, 2017 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. Link to comment Share on other sites More sharing options...
Larry Posted January 29, 2017 Share Posted January 29, 2017 Could you provide more details about your setup and what specifically isn't working? Link to comment Share on other sites More sharing options...
Recommended Posts