Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Changing redirect to shopping_cart.php after adding product to cart?


captfc

Recommended Posts

Posted

When I add to cart from product_info.php it immediately redirects to index.php, I'd like it to redirect to shopping_cart.php

 

Does anyone have an idea where i can change the URL for the redirect so that it goes immediately to the contents of the shopping cart? Thanks in advance.

Posted

post a url to your products page so we can see.

Posted

Hi, sorry to bump this, but I cannot figure out where the redirect is. Any help would be appreciated.

Posted

goto your osc admin->configuration->My Store->Use Search Engines Safe URLs set it to false. Why you have it on?

Posted
goto your osc admin->configuration->My Store->Use Search Engines Safe URLs set it to false. Why you have it on?

 

I didn't know that affected it. I just changed it to "false" and it didn't change anything.

 

Oddly enough, i have "Display Cart After Adding Product" checked to true, which is what I want it to do, and it is redirecting to the index page.

Posted

yes leave that setting as I mentioned. And post your catalog\includes\application_top.php Have you modified that file?

Posted

OK, I discovered what I did wrong. While adding a custom box, I changed a file location in the filenames.php

 

Apparently, this is the variable that you make "true" when you enable "show cart after adding product" in the admin panel

define('FILENAME_SHOPPING_CART', 'shopping_cart.php');

 

I had changed the shopping_cart.php to index.php

 

Special thanks to enigma1 for pointing me in the right direction so that I could discover my user-created mistake.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...