Hi,
ok, now I do understand. This won't work with any standard buy buttons together, if you use it it will always take the first item in the list and add the amount entered there.
The quantity box is no standard on a clean install of phoenix. But in its behaviour its just the same like the standard buy button with amount which I tried to disable via javascript. It only makes sense on products which have no attributes this way. This won't work together as there is no selection made for attributes first if you push that button so it will always take the first option listed there.
There are two ways to resolve this: Disable any buy buttons that are not in the listing provided by me, via condition if a product has attributes.
Or we get more complicated here and have number entries for each variation of attributes that might occur in the listing, that was another feature shown on @burt's examples that would be the bulk buy option then.
This would require deeper changes to that what @raiwa has done (add product action and templates/includes/pages/product_info.php for the form maybe - all on first glance) and I am reluctant to that without his consent.
Kind regards
Christoph
Help with Attributes
-
lecarlb
- Contributor
- Posts: 316
- Joined: Mon Oct 26, 2020 5:26 pm
- Phoenix Version:
- Has thanked: 48 times
- Been thanked: 9 times
Re: Help with Attributes
Hello,beerbee wrote: ↑Wed Aug 02, 2023 9:14 pm Hi,
ok, now I do understand. This won't work with any standard buy buttons together, if you use it it will always take the first item in the list and add the amount entered there.
The quantity box is no standard on a clean install of phoenix. But in its behaviour its just the same like the standard buy button with amount which I tried to disable via javascript. It only makes sense on products which have no attributes this way. This won't work together as there is no selection made for attributes first if you push that button so it will always take the first option listed there.
There are two ways to resolve this: Disable any buy buttons that are not in the listing provided by me, via condition if a product has attributes.
Or we get more complicated here and have number entries for each variation of attributes that might occur in the listing, that was another feature shown on @burt's examples that would be the bulk buy option then.
This would require deeper changes to that what @raiwa has done (add product action and templates/includes/pages/product_info.php for the form maybe - all on first glance) and I am reluctant to that without his consent.
Kind regards
Christoph
Whichever is the simplest option. And thank you.
-
beerbee
- Member
- Posts: 48
- Joined: Mon Oct 26, 2020 4:56 pm
- Phoenix Version:
- Has thanked: 4 times
- Been thanked: 5 times
Re: Help with Attributes
Hi @lecarlb,
how about this? It should disable the quantity input which caused confusion and have quantity for each combination.
Kind regards
Christoph
how about this? It should disable the quantity input which caused confusion and have quantity for each combination.
Kind regards
Christoph
You do not have the required permissions to view the files attached to this post.