agiftcodotcom Posted June 8, 2004 Share Posted June 8, 2004 For some reason, when people click "Buy Now", it leads to an empty cart. Try One Here Anyone know what might cause this, and how I could fix this? Contributions I used : Updated 06-13-04 23:42 ---------------- Vote on My Graphis Poll Link to comment Share on other sites More sharing options...
agiftcodotcom Posted June 8, 2004 Author Share Posted June 8, 2004 Any thoughts? :( Contributions I used : Updated 06-13-04 23:42 ---------------- Vote on My Graphis Poll Link to comment Share on other sites More sharing options...
emanresu Posted June 8, 2004 Share Posted June 8, 2004 Works for me. http://www.agiftco.com/shopping_cart.php/s...cd9dd2842054161 Have you checked cookie settings or cleared your cache? Citizen of US Minor Outlying Islands Link to comment Share on other sites More sharing options...
agiftcodotcom Posted June 8, 2004 Author Share Posted June 8, 2004 You clicked "Buy Now" and it added it? Hmmm.... Bedddyyy intestick. <_< I guess I will check my machine's cookies settings. :blink: Contributions I used : Updated 06-13-04 23:42 ---------------- Vote on My Graphis Poll Link to comment Share on other sites More sharing options...
♥yesudo Posted June 8, 2004 Share Posted June 8, 2004 didn't work for me. what code sits behind the button ? Your online success is Paramount. Link to comment Share on other sites More sharing options...
Guest Posted June 8, 2004 Share Posted June 8, 2004 Hi, checked the buy now on your site and for your info, it dosn't work for me - when I click - 'Buy now' I get taken to 'What's in my cart' and told your shopping cart is empty! regards, Maria Link to comment Share on other sites More sharing options...
agiftcodotcom Posted June 8, 2004 Author Share Posted June 8, 2004 Hi, checked the buy now on your site and for your info, it dosn't work for me - when I click - 'Buy now' I get taken to 'What's in my cart' and told your shopping cart is empty! regards, Maria Exactly! That's what I get, and I'm not sure why :( what code sits behind the button ? I'm not sure, whatever code comes with OSC. How can I find out? Contributions I used : Updated 06-13-04 23:42 ---------------- Vote on My Graphis Poll Link to comment Share on other sites More sharing options...
Guest Posted June 8, 2004 Share Posted June 8, 2004 I am also having this same problem but with only some of my products - can't seem to figure out why some are working and some aren't? any suggestions appreciated. thanks Maria Link to comment Share on other sites More sharing options...
emanresu Posted June 8, 2004 Share Posted June 8, 2004 Works for me. http://www.agiftco.com/shopping_cart.php/s...cd9dd2842054161 Have you checked cookie settings or cleared your cache? Whatever you've changed in the last hour works. Now I also can't buy anything. Don't want to stick out in the crowd.... :P Have a look at sessions over the last couple of hours Citizen of US Minor Outlying Islands Link to comment Share on other sites More sharing options...
agiftcodotcom Posted June 8, 2004 Author Share Posted June 8, 2004 I haven't changed anything in the last couple hours... days.... :blink: Contributions I used : Updated 06-13-04 23:42 ---------------- Vote on My Graphis Poll Link to comment Share on other sites More sharing options...
241 Posted June 8, 2004 Share Posted June 8, 2004 your buy now button only has the action buy now not the action buy now and add to cart No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
agiftcodotcom Posted June 8, 2004 Author Share Posted June 8, 2004 How do I change this? I turned it on from the admin panel, I didn't actually code this. Would you know where (in index.php?) I might be able to go to adjust that, and what I would need to adjust? Any help is GREATLY appreciated. Contributions I used : Updated 06-13-04 23:42 ---------------- Vote on My Graphis Poll Link to comment Share on other sites More sharing options...
241 Posted June 8, 2004 Share Posted June 8, 2004 what is the code behind the button, it should be something like this <a href="' . tep_href_link(FILENAME_DEFAULT, tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> but the part $featured_products_array will be different as this is taken from my featured products section. I probably could find the code in the file and check it or you could search for the code refering to the image using this search: IMAGE_BUTTON_BUY_NOW No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
agiftcodotcom Posted June 8, 2004 Author Share Posted June 8, 2004 What file would the code for the button be located in? Contributions I used : Updated 06-13-04 23:42 ---------------- Vote on My Graphis Poll Link to comment Share on other sites More sharing options...
AlanR Posted June 8, 2004 Share Posted June 8, 2004 The site is not setting cookies. Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management) Link to comment Share on other sites More sharing options...
agiftcodotcom Posted June 8, 2004 Author Share Posted June 8, 2004 Is this it? <a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> Contributions I used : Updated 06-13-04 23:42 ---------------- Vote on My Graphis Poll Link to comment Share on other sites More sharing options...
241 Posted June 8, 2004 Share Posted June 8, 2004 yes that would be it in products_listing.php you would need to change the basename($PHP_SELF) to FILENAME_PRODUCT_INFO or change the action type to add_product using something like this but probably not exactly this tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product', 'NONSSL') No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
Guest Posted June 9, 2004 Share Posted June 9, 2004 Hi Steve, I am hoping you can help shine some light on my similar problem. When I go to my store http://www.scrapboxx.com/catalog either as a guest or log in I get the following list of discrepencies when Buying products/adding to cart. 1. Browse catagories - go to first catagory - Adhesives - shows a full list of all products in that catagory - If I click on the "Add to Cart" all products in this catagory will be added to the cart successfully. If I hit "Add to Cart" multiple times for the same product - that number of that products is added - from here it all starts getting a little strange. If I then click on one of the products and try to "add to Cart" from this product page - it won't add it? regardless of wether it is already in the cart or not in the cart yet. 2. Similar problem when I go to my login page and look at the products in the "new products June" for If I choose a product from this menu and go to the product page and "add to Cart" nothing happens, yet if I choose - "Would you like to see which new products have been added" from the top of my login page and access the new products this way - I can add the same product I couldn't from the new products exercise previously and it works? 3. In short - I can't add the products from their individual product info pages, I can only successfully "add to Cart" when they are in a list of other items. Any help you can provide on this would be greatly appreciated - I can't seem to work it out?? thanks Maria Link to comment Share on other sites More sharing options...
241 Posted June 9, 2004 Share Posted June 9, 2004 if you go to an info page and mouse over the review button then mouse over the add to cart button whilst keeping an eye on the status bar at the bottom of the page you will notice that there is a link for the review button when moused voer but no link for the add to cart button. You will need to check the code for the add to cart button which should have an add_product or buy_now with a redirect No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
Guest Posted June 9, 2004 Share Posted June 9, 2004 Hi Steve, I know I'm missing a vital bit of code - but can't seem to figure out where it should go - as there is no call to action in the product info page - how and where do I make the change - I restored my original - unchanged product_info.php file into the catalog directory but still have the same error so I figure it must be somewhere else - any further help would be greatly appreciated. thanks and regards, Maria Link to comment Share on other sites More sharing options...
agiftcodotcom Posted June 9, 2004 Author Share Posted June 9, 2004 I tried it, but nothing changed. Nothing broke, nothing was fixed. It's weird, I would think something would've changed. Oh well, I'll just remove that column and have them buy from the actual listing. No biggie, just kind of does away with impulse purchases. Thanks for your help though. Contributions I used : Updated 06-13-04 23:42 ---------------- Vote on My Graphis Poll Link to comment Share on other sites More sharing options...
241 Posted June 9, 2004 Share Posted June 9, 2004 I have actually used a post form statement for this. No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
agiftcodotcom Posted June 9, 2004 Author Share Posted June 9, 2004 Eric your may be due to the cookie domain what do you have for cookie domain What do you mean by cookie domain? You mean in configure.php? define('HTTP_COOKIE_DOMAIN', 'http://www.agiftco.com'); define('HTTPS_COOKIE_DOMAIN', 'https://www.secure-certificate.com/'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); Is that what it should be? Contributions I used : Updated 06-13-04 23:42 ---------------- Vote on My Graphis Poll Link to comment Share on other sites More sharing options...
241 Posted June 9, 2004 Share Posted June 9, 2004 define('HTTP_COOKIE_DOMAIN', 'www.agiftco.com'); define('HTTPS_COOKIE_DOMAIN', 'www.secure-certificate.com/'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); drop the http:// and https:// No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
agiftcodotcom Posted June 9, 2004 Author Share Posted June 9, 2004 I now have define('HTTP_COOKIE_DOMAIN', 'www.agiftco.com'); define('HTTPS_COOKIE_DOMAIN', 'www.secure-certificate.com/'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); and yet... Your Shopping Cart is empty! :( Contributions I used : Updated 06-13-04 23:42 ---------------- Vote on My Graphis Poll Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.