shoppingcart.php price change on the fly

Ask the community for help and support.
User avatar
ReneH4
Posts: 154
Joined: Mon Oct 26, 2020 12:00 pm
Has thanked: 12 times
Been thanked: 17 times

shoppingcart.php price change on the fly

Post by ReneH4 »

Some of my customers do not understand that they have to "enter" when they change the number of products in shoppingcart.php.

I think that is obvious, I recently visited a shop that does this automatically, and it's very convenient.

Has someone written a hook for this?

What it should do:
  • Change product total amount on the fly
  • Remove product when number changed to 0 (with optionally a popup asking to confirm)


I am running 1079 at 7.4.
Fiber
VIP Member
VIP Member
Posts: 121
Joined: Mon Oct 26, 2020 12:16 pm
Has thanked: 12 times
Been thanked: 19 times

Re: shoppingcart.php price change on the fly

Post by Fiber »

ReneH4 wrote: Thu Jul 29, 2021 7:59 am
Has someone written a hook for this?

I am running 1079 at 7.4.
This one works with attributes, maybe it can be adapted to what you want?
Turn up the Max
raiwa
PhoenixCart Developer
PhoenixCart Developer
Posts: 1184
Joined: Sat Dec 21, 2019 8:08 am
Has thanked: 38 times
Been thanked: 102 times

Re: shoppingcart.php price change on the fly

Post by raiwa »

I have this one:
https://www.oscaddons.com/en/commercia ... -p-38.htmls not updated for the latest Phoenix versions. Let me know if you are interested. I’ll then check for compatibility.
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Need Help?viewtopic.php?f=10&t=27
raiwa
PhoenixCart Developer
PhoenixCart Developer
Posts: 1184
Joined: Sat Dec 21, 2019 8:08 am
Has thanked: 38 times
Been thanked: 102 times

Re: shoppingcart.php price change on the fly

Post by raiwa »

Fiber wrote: Thu Jul 29, 2021 8:13 am
ReneH4 wrote: Thu Jul 29, 2021 7:59 am
Has someone written a hook for this?

I am running 1079 at 7.4.
This one works with attributes, maybe it can be adapted to what you want?
OP asked for shopping cart, not for product info.
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Need Help?viewtopic.php?f=10&t=27
Fiber
VIP Member
VIP Member
Posts: 121
Joined: Mon Oct 26, 2020 12:16 pm
Has thanked: 12 times
Been thanked: 19 times

Re: shoppingcart.php price change on the fly

Post by Fiber »

raiwa wrote: Thu Jul 29, 2021 9:16 am OP asked for shopping cart, not for product info.
oeps overread..
Turn up the Max
User avatar
ReneH4
Posts: 154
Joined: Mon Oct 26, 2020 12:00 pm
Has thanked: 12 times
Been thanked: 17 times

Re: shoppingcart.php price change on the fly

Post by ReneH4 »

Thanks Fiber, but as Rainer says, I would like exactly this on shoppingcart.php.
Fiber wrote: Thu Jul 29, 2021 8:13 am
ReneH4 wrote: Thu Jul 29, 2021 7:59 am
Has someone written a hook for this?

I am running 1079 at 7.4.
This one works with attributes, maybe it can be adapted to what you want?
User avatar
ReneH4
Posts: 154
Joined: Mon Oct 26, 2020 12:00 pm
Has thanked: 12 times
Been thanked: 17 times

Re: shoppingcart.php price change on the fly

Post by ReneH4 »

Rainer,

I think this is indeed what I am looking for.

However I do not need the extra + and - button, since they are in core, AND I un-installed them for better vieuw on mobile (horizontal space).

Could you rewrite this add-on and get this working for 1079? Are there any core changes or is it all in a hook-file?
I prefer a hook as you may understand.

raiwa wrote: Thu Jul 29, 2021 9:15 am I have this one:
https://www.oscaddons.com/en/commercia ... -p-38.htmls not updated for the latest Phoenix versions. Let me know if you are interested. I’ll then check for compatibility.
User avatar
ReneH4
Posts: 154
Joined: Mon Oct 26, 2020 12:00 pm
Has thanked: 12 times
Been thanked: 17 times

Re: shoppingcart.php price change on the fly

Post by ReneH4 »

I have sent you an email through the forum @raiwa .
User avatar
ReneH4
Posts: 154
Joined: Mon Oct 26, 2020 12:00 pm
Has thanked: 12 times
Been thanked: 17 times

Re: shoppingcart.php price change on the fly

Post by ReneH4 »

I installed the (payed) AddOn by raiwa, and it does exactly what it should.

Many of my customers are skilled motorcycle mechanics but many of them are lost behind the screen.

@raiwa 's AddOn gets them a bit closer. Rated *****.
User avatar
ReneH4
Posts: 154
Joined: Mon Oct 26, 2020 12:00 pm
Has thanked: 12 times
Been thanked: 17 times

Re: shoppingcart.php price change on the fly

Post by ReneH4 »

And since I have a new template file, it was time to tweak it a bit more.
It now shows a STOCK-info line of text below the products name. I like this better that the BIG green V or BIG red X :-)

It was a simple tweak, but if anyone wants the code I can provide it.
You do not have the required permissions to view the files attached to this post.
Post Reply