Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

issues with products going into basket


unisus

Recommended Posts

I have just installed 2.3.1 of Oscommerce with a custom template over the top

 

I wanted customers to be able to click on the "add to basket" without the interface doing anything but adding it to there basket

When they did add something to there basket, initialy it brought up there basket, so i turned off that option, easy

But when i turned off that option it would take them to a list of "New products" which alot of customers were complaining about,

I know this is probrably a newb question, but can you point me in the right direction please? Is there some code i have to mod, if there is some code you would like me to display just let me know.

 

Thanks in advance

Unisus

Link to comment
Share on other sites

Where are you trying to go?

 

After the item is added to the cart where next?

My store is currently running Phoenix 1.0.3.0

I'm currently working on 1.0.7.2 and hope to get it live before 1.0.8.0 arrives (maybe 🙄 )

I used to have a list of add-ons here but I've found that with the ones that supporters of Phoenix get any other add-ons are not really neccessary

Link to comment
Share on other sites

So when a customer clicks on a part, they want to just keep going from where they left off to continue adding parts rather than having to navigate where they last were before clicking on "add to cart" and being whisked away to "new products"

Link to comment
Share on other sites

I have just installed 2.3.1 of Oscommerce with a custom template over the top

 

I wanted customers to be able to click on the "add to basket" without the interface doing anything but adding it to there basket

When they did add something to there basket, initialy it brought up there basket, so i turned off that option, easy

But when i turned off that option it would take them to a list of "New products" which alot of customers were complaining about,

I know this is probrably a newb question, but can you point me in the right direction please? Is there some code i have to mod, if there is some code you would like me to display just let me know.

 

Thanks in advance

Unisus

Keywords in post emphasised

 

The behavior you describe isn't inherent to "default" osC but a product of your template code.

 

This behavior is controlled in /includes/application_top.php in default osC code.

 

Right about here:

 

    if (DISPLAY_CART == 'true') {
     $goto =  FILENAME_SHOPPING_CART;
     $parameters = array('action', 'cPath', 'products_id', 'pid');
   } else {
     $goto = basename($PHP_SELF);
     if ($HTTP_GET_VARS['action'] == 'buy_now') {
       $parameters = array('action', 'pid', 'products_id');
     } else {
       $parameters = array('action', 'pid');
     }
   }

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

  • 3 weeks later...

Yes when a customer goes into the specific product and clicks to add one to there cart, it works, it does not direct them elsewhere and product goes to cart,

However when they go into the category and all the products are listed and they just click on the product in amoungst the many lists of products it hits them back to the "New products" area as well as adding it to there cart.

I would much rather someone be able to click the add to cart button and stay in the list of products where they are rather than having to try and find there way back to where they were.

I checked the above code, and it was there intact as you have listed above:

 

if (DISPLAY_CART == 'true') {

$goto = FILENAME_SHOPPING_CART;

$parameters = array('action', 'cPath', 'products_id', 'pid');

} else {

$goto = basename($PHP_SELF);

if ($HTTP_GET_VARS['action'] == 'buy_now') {

$parameters = array('action', 'pid', 'products_id');

} else {

$parameters = array('action', 'pid');

}

}

Link to comment
Share on other sites

Since it's a "custom template over the top" and I'm not privy to the code I don't have a clue.

 

If you post your URL (or send it to me in a PM) we might be able to wrangle it out.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...