Don't open basket-page automatically

boboo

Avatar: boboo

2009-12-31 12:06

Maybe I will grow the chance for an answer, if I repeat my question in english.
In this topic: http://opensolution.org/Quick.Cart/forum/?p=readTopic&nr=6568

I asked for the following possibility:
to klick "add to basket", the values in basket are changing (amount and if enabled: the price summary) near its icon in basket-menu, but the user (buyer) stays on the same page - the basket page doesn't open automatically.

I tried the solution described in:
http://opensolution.org/Quick.Cart/forum/index.php?p=readTopic&nr=724
but 2 things are disturbing:
1. The page after "add-to-basket" klick makes a not pretty reloading (half of second white screen);
2. The values near the basket icon in its menu are not changing. They change first when I open the basket-page.

Does anyone have any idea how to solve it?
(the best would be a "silent-adding" without screen-effects, just like the klick on "recount"-button.
I have already read about functions and possibilities of PRO & EXT versions, but these features are not included in them (maybe they are, but no word about it in their descriptions).

» Quick.Cart v3.x

boboo

beholder

Avatar: beholder

2009-12-31 19:22

when adding new product to the basket the system "posts" the item to the basket page and then displays basket page. What you want is to display the product page afterwards (it is currently not possible to return to the list of products where a customer also may click 'add to basket' - only to the product that was added to basket).

To do that go to actions_client/p.php and change line:
header( 'Location: '.$_SERVER['PHP_SELF'].$aData['sLinkName'] );
to this:
header( 'Location: '.$_SERVER['PHP_SELF'].$oProduct->aProducts[$iProductAdd]['sLinkName'] );

Not sure how this would work when someone adds more quantity in the basket, please try.

Cheers and HNY

P.S. I am helping you only because you helped others on this forum.

boboo

Avatar: boboo

2009-12-31 22:43

Thanks, Beholder,
I'll report tomorrow about Your solution. Now we are going to shoot some fireworks in Dortmund-City ;-)

Happy New Year 2010,
b.

boboo

boboo

Avatar: boboo

2010-01-01 11:04

As promised here the report:
after suggested changing in p.php, the klick on "add to basket" doesn't open the basket, but the "detail page". So far so good, but...
:-(
... the short info in basket menu (amount and summary price) does not change its value. And exactly this information is very important when buying in the shop without jumping by every "buy-klick" to the basket-page.

OK, maybe one day... ;-) the hope is not leaving me.
Once more, Beholder - great thanks for Your helping

boboo

Back to top
about us | contact