Forums / General Questions / Checkbox instead of buy now button on all products page

Checkbox instead of buy now button on all products page

Started by linuxguy2 on 27 Nov 2013, 5:49 PM · Views: 5,288

Results 41 to 58 of 58
18 Dec 2013, 5:02 PM
#41
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Checkbox instead of buy now button on all products page

linuxguy2:

ZC 1.5.1

Beside being difficult to implement, a checkbox feature on the "Products" has some short comings.
A increment by minimum quantity "button" would work much better for mobile devices.
That way one could tap the "Button" or type in the quantities.

[Attachment no longer available]

If I'm not mistaken all the logic should already be in ZC so the question is how to implement it.
I guess that means one would add a third option to the admin section or it could be a separate option.

[Attachment no longer available]

What are/were the difficulties of implementing? Guessing CSS implementation would make the presentation better, but that was not done in the above implementation.

If I understand correctly, you are asking that there be a button that will add say 5 counts of an item at each press. This is the same thing as having a "single" item that is sold in groups of 5. So the description would be something like buy five widgets, and for each single quantity of widget means five are sent. The described condition (request) seems to be the wrong usage of the minimum value if each time the item is added to the cart that the minimum value is added, althouugh I thought there was another selection for the product info that would force that version of adding a product (would help with inventory control to an extent).

If want what has been requested above, there is an option I thought that shows a button for every product where the minimum value is prepopulated, then would simply select each item which would add it to the cart and depending on the other settings will either stay on the page or go to the cart. I don't think any code change would be required at all, just adjust the admin settings and if correct about forcing a minimum quantity of product (which maybe it is by setting the "step" equal to the minimum that forces that, then you are back to the original code, just set differently.

I do think I forgot to indicate what settings needed to be what in order to display the the checkbox/textbox options. I can say that.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

18 Dec 2013, 5:57 PM
#42
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Checkbox instead of buy now button on all products page

linuxguy2:

ZC 1.5.1

Beside being difficult to implement, a checkbox feature on the "Products" has some short comings.
A increment by minimum quantity "button" would work much better for mobile devices.
That way one could tap the "Button" or type in the quantities.

[Attachment no longer available]

If I'm not mistaken all the logic should already be in ZC so the question is how to implement it.
I guess that means one would add a third option to the admin section or it could be a separate option.

[Attachment no longer available]

Yeah, so, to basically accomplish what you are looking for now...

Set: Product Add to Cart Button to 2,
Set: Display Multiple Products Qty Box Status and Set Button Location to 0,
Set each product's minimum quantity to the desired minimum
Set each product's Product Qty Units to the minimum quantity.

Now an editable button will appear for each product. For those products that have the product qty units equal to the minimum quantity, the box will be editable, but must be in a factor of the minimum quantity. Otherwise, could change Product Add to Cart Button to 1, and with the units equal to minimum, pressing the button will automatically add the minimum each time the button is pressed...

Then also need to prevent the cart from being shown after each add of a product (Configuration->My store->show cart after add to cart = false) so that basically stay on the product listing(s) until the cart is chosen...

That would address the "new" request.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

18 Dec 2013, 11:02 PM
#43
linuxguy2 avatar

linuxguy2

Zen Follower

Join Date:
Sep 2013
Location:
Texas
Posts:
315
Plugin Contributions:
0

Re: Checkbox instead of buy now button on all products page

Clarification,

Set: Product Add to Cart Button to 2, COLOR="#FF0000"[/COLOR] Could be "1"
Set: Display Multiple Products Qty Box Status and Set Button Location to 0, COLOR="#FF0000", Set to 3[/COLOR] (Need boxes to come up with Zero value)
Set each product's minimum quantity to the desired minimum (Yes)
Set each product's Product Qty Units to the minimum quantity. COLOR="#FF0000"[/COLOR]

Don't really care how I get there but here's what I need.
Boxes should come up with Zero quantity.
Pressing button will increment the amount in the box by the minimum quantity each time it's pressed.
Example min qty = 6 so 3 clicks of the button and the box value = 18

Once all quantities on a give page are set pressing the "Add selected products to cart" adds all the values on that page to the cart at once.

Prevent the cart from being shown after each add of a product (Configuration->My store->show cart after add to cart = false) so that basically stay on the product listing(s) until the cart is chosen... Yes

Good news is (if I'm not mistaken) this is a global function and will be applied to all the other product pages, "All products", "New Products", etc...

19 Dec 2013, 4:49 PM
#44
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Checkbox instead of buy now button on all products page

linuxguy2:

Clarification,

Set: Product Add to Cart Button to 2, COLOR="#FF0000"[/COLOR] Could be "1"
Set: Display Multiple Products Qty Box Status and Set Button Location to 0, COLOR="#FF0000", Set to 3[/COLOR] (Need boxes to come up with Zero value)
Set each product's minimum quantity to the desired minimum (Yes)
Set each product's Product Qty Units to the minimum quantity. COLOR="#FF0000"[/COLOR]

Don't really care how I get there but here's what I need.
Boxes should come up with Zero quantity.
Pressing button will increment the amount in the box by the minimum quantity each time it's pressed.
Example min qty = 6 so 3 clicks of the button and the box value = 18

Once all quantities on a give page are set pressing the "Add selected products to cart" adds all the values on that page to the cart at once.

Prevent the cart from being shown after each add of a product (Configuration->My store->show cart after add to cart = false) so that basically stay on the product listing(s) until the cart is chosen... Yes

Good news is (if I'm not mistaken) this is a global function and will be applied to all the other product pages, "All products", "New Products", etc...

Maybe you can relate, maybe not. So after cooling down from the above discussion, I've considered the following, and perhaps someone else implements/develops before I do, but the way I would consider implementing. The request with the broadest perspective in mind would be to use the same incrementor as before (min on first click, then #units on subsequent click), I would display the current number of said item in the cart adjacent to each item so that would be 0 upon arrival, and then incremented as above upon each click. I would branch off of the code that provides the button adjacent to each product, which I think is currently max'd at 2, but would update that field to a third option as described. The add selected items to cart would serve no purpose, because clicking the button to add the item and increment the counter would do exactly the same thing and would allow moving to another page without loss of the previously selected item(s). The value of the button would be equal to the minimum/unit but that value would not be displayed, an additional field would be displayed, but not editable and would indicate the quantity of that item in the cart. If more data is desired to be "entered" I would aver to return back to the checkbox/textbox combination at this point, as to add another field may require some further development.

I initially took this on as a sort of brain challenge/social development. I have another modification that I've been working on that I think has a higher priority at the moment. I can however be pursueded. Until then, if someone else finishes this version of the question, hopefully it will be posted here.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

19 Dec 2013, 6:01 PM
#45
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Checkbox instead of buy now button on all products page

linuxguy2:

Clarification,

Set: Product Add to Cart Button to 2, COLOR="#FF0000"[/COLOR] Could be "1"
Set: Display Multiple Products Qty Box Status and Set Button Location to 0, COLOR="#FF0000", Set to 3[/COLOR] (Need boxes to come up with Zero value)
Set each product's minimum quantity to the desired minimum (Yes)
Set each product's Product Qty Units to the minimum quantity. COLOR="#FF0000"[/COLOR]

Don't really care how I get there but here's what I need.
Boxes should come up with Zero quantity.
Pressing button will increment the amount in the box by the minimum quantity each time it's pressed.
Example min qty = 6 so 3 clicks of the button and the box value = 18

Once all quantities on a give page are set pressing the "Add selected products to cart" adds all the values on that page to the cart at once.

Prevent the cart from being shown after each add of a product (Configuration->My store->show cart after add to cart = false) so that basically stay on the product listing(s) until the cart is chosen... Yes

Good news is (if I'm not mistaken) this is a global function and will be applied to all the other product pages, "All products", "New Products", etc...

Maybe you can relate, maybe not. So after cooling down from the above discussion, I've considered the following, and perhaps someone else implements/develops before I do, but the way I would consider implementing. The request with the broadest perspective in mind would be to use the same incrementor as before (min on first click, then #units on subsequent click), I would display the current number of said item in the cart adjacent to each item so that would be 0 upon arrival, and then incremented as above upon each click. I would branch off of the code that provides the button adjacent to each product, which I think is currently max'd at 2, but would update that field to a third option as described. The add selected items to cart would serve no purpose, because clicking the button to add the item and increment the counter would do exactly the same thing and would allow moving to another page without loss of the previously selected item(s). The value of the button would be equal to the minimum/unit but that value would not be displayed, an additional field would be displayed, but not editable and would indicate the quantity of that item in the cart. If more data is desired to be "entered" I would aver to return back to the checkbox/textbox combination at this point, as to add another field may require some further development.

I initially took this on as a sort of brain challenge/social development. I have another modification that I've been working on that I think has a higher priority at the moment. I can however be pursueded. Until then, if someone else finishes this version of the question, hopefully it will be posted here.

The reasoning behind the above described implementation of clicking the button that normally just adds the product is that implementing a "scroll" like button would require java which could impact the ability of some to use the option. Ideally, code should be developed for the largest possible audience. If requested to develop for a particular application/user, I would have to evaluate the proposed usage, future changes/adaptability, etc. Before I would lock in such extra feature(s) and provide documentation of the usage/limitations.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

20 Dec 2013, 3:02 AM
#46
linuxguy2 avatar

linuxguy2

Zen Follower

Join Date:
Sep 2013
Location:
Texas
Posts:
315
Plugin Contributions:
0

Re: Checkbox instead of buy now button on all products page

mc12345678,
If "So after cooling down from the above discussion" means I have offended you I sincerely apologize. Maybe I don't fully understand the nuances of a forum. I have the greatest respect for and support the open source communities.

I see the logic behind your description of how you would implementation this function(s) and it would do the job nicely. I also agree this must work on as many different manufacturers devices as possible especially "i" devices so java may not be a good option.

From my perspective this would be an ideal function especially for mobile devices and if I had the skills I would have already implemented it.

Thanks

20 Dec 2013, 3:25 AM
#47
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Checkbox instead of buy now button on all products page

linuxguy2:

mc12345678,
If "So after cooling down from the above discussion" means I have offended you I sincerely apologize. Maybe I don't fully understand the nuances of a forum. I have the greatest respect for and support the open source communities.

I see the logic behind your description of how you would implementation this function(s) and it would do the job nicely. I also agree this must work on as many different manufacturers devices as possible especially "i" devices so java may not be a good option.

From my perspective this would be an ideal function especially for mobile devices and if I had the skills I would have already implemented it.

Thanks

No, not offended. It's what I think is programmer's pride as well as recognizing that the request(s) have come from others to you, it seems. So, familiarity with: this is what we want, wait no this, no this...

Was just a little aggrivated that having met the originially desired request, that seemed to be thought out, that something about it changed. (Still curious about what difficulties were found with implementation) was/is it that the products must be updated to have units equal to the minimum? The "popup" keyboard mess things up on screen? Etc...it would be good for others to know some of the limitations, if there have been some found. I realize that there is a better way to capture the text that is shown next to the checkbox, but hadn't put it together that way yet.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

20 Dec 2013, 5:20 AM
#48
linuxguy2 avatar

linuxguy2

Zen Follower

Join Date:
Sep 2013
Location:
Texas
Posts:
315
Plugin Contributions:
0

Re: Checkbox instead of buy now button on all products page

I hear you loud and clear! And yes I am working through a middle man.

Here's where it's at. The check box mod works great!

After 4 years the persons that have been emailing in their orders agreed to start using this ordering system if it was easy. After test driving the system with the check box (and several other mods & tweaks) they agreed it was easy to use and will be placing their orders online. Hallelujah!

Then they pointed out what would simplify it more is a box on the "Products Page" that incremented by the min qty each time one clicked/tapped a button.
My bad I should have thought of that......

Seems it would be a good idea to extend this option to all the products pages.
Thinking if one clicks/taps too many times the ability to edit the quantity immediately would prevent having to go the the Cart, search for the item and adjust the quantity there.

This could turn out to be a very popular mod!

Thanks,

20 Dec 2013, 5:48 AM
#49
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Checkbox instead of buy now button on all products page

linuxguy2:

I hear you loud and clear! And yes I am working through a middle man.

Here's where it's at. The check box mod works great!

After 4 years the persons that have been emailing in their orders agreed to start using this ordering system if it was easy. After test driving the system with the check box (and several other mods & tweaks) they agreed it was easy to use and will be placing their orders online. Hallelujah!

Then they pointed out what would simplify it more is a box on the "Products Page" that incremented by the min qty each time one clicked/tapped a button.
My bad I should have thought of that......

Seems it would be a good idea to extend this option to all the products pages.
Thinking if one clicks/taps too many times the ability to edit the quantity immediately would prevent having to go the the Cart, search for the item and adjust the quantity there.

This could turn out to be a very popular mod!

Thanks,

Okay, so changing the previous description again. Instead of a read only cart total, now talking about an editable cart quantity that is either updated (if correction necessary) or is incremented if button is clicked o. Hmm, starting to make the products list look like the cart itself. By the way, would still need to modify all four areas (listings, all products, new products, and features to implement the desired change(s).

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

20 Dec 2013, 7:23 AM
#50
linuxguy2 avatar

linuxguy2

Zen Follower

Join Date:
Sep 2013
Location:
Texas
Posts:
315
Plugin Contributions:
0

Re: Checkbox instead of buy now button on all products page

I looked at the update function/logic in the cart but got lost trying to figure it out..

Are you familiar with the "Flexible_Centerbox_Module_v1.0" plugin.
It has the Buy Now button & more info... logic.

[Attachment no longer available]

20 Dec 2013, 8:56 PM
#51
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Checkbox instead of buy now button on all products page

linuxguy2:

I looked at the update function/logic in the cart but got lost trying to figure it out..

Are you familiar with the "Flexible_Centerbox_Module_v1.0" plugin.
It has the Buy Now button & more info... logic.

[Attachment no longer available]

Okay, question for you. Which is preferred, or will a combination be necessary?
In all cases an increase button would work by applying first the minimum quantity and then on subsequent selections the unit quantity (which may or not be the same as the minimum but is identified in the product setup.
In all cases a decrease button would work similar to the increase, but in reverse order.

  1. A button to increase the ordered quantity and a button to decrease the quantity with total quantity of said item in basket shown for information only.
  2. A button to increase, a box that must be filled in for changes to be applied but shows cart quantity, a refresh button to update the entered quantity.
  3. A button to increase, a button to decrease, an editable field having the quantity in the cart, and a refresh button to update the cart to capture the edited field.

I am thinking. That since the end result is to be on a mobile device that the buttons should be something as simple as a + or a - respectively.

I can't quite think of other scenarios, but let me know.

Regarding the other request that hasn't been addressedyet, iil take a look at the other plugin to see how turning off show more... Works regarding attributes. Still not sure that the outcome will be favorable, but more to follow.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

21 Dec 2013, 6:21 AM
#52
linuxguy2 avatar

linuxguy2

Zen Follower

Join Date:
Sep 2013
Location:
Texas
Posts:
315
Plugin Contributions:
0

Re: Checkbox instead of buy now button on all products page

In all cases an increase button would work by applying first the minimum quantity and then on subsequent selections the unit quantity. This will work for my purposes.

  1. is my choice as I'm trying to keep this as simple as possible for the user.

With an increase and decrease button I see no need to have an editable field.

a + or a - button should be fine.

The box starts out blank or with a zero so the user can tell which items on the current page were added?

21 Dec 2013, 1:06 PM
#53
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Checkbox instead of buy now button on all products page

linuxguy2:

In all cases an increase button would work by applying first the minimum quantity and then on subsequent selections the unit quantity. This will work for my purposes.

  1. is my choice as I'm trying to keep this as simple as possible for the user.

With an increase and decrease button I see no need to have an editable field.

a + or a - button should be fine.

The box starts out blank or with a zero so the user can tell which items on the current page were added?

Ideally, whether it be a box or just "floating" text, a zero would be displayed whenever the cart for the individual does not contain that product. (Before logging in, after an order is placed, when the - button has been pressed enough times, upon first time logging into the account, etc...)

I personally would prefer that the quantity in cart would not be displayed if there were none in the cart, but that is from a "I'm filling out this order screen as my job ALL day." The absence of information would be quick to help identify that if something was on screen then some amount was in the cart.
To the occasional visitor/user, the system might take some getting accustomed to and may cause some to question, well I don't see anything does that mean there are none selected?!
It is also important to note, and I don't recall off the top of my head, that some methods of displaying text in a constant don't show a zero when the value is zero, and others do, so I'll be sure to use the one that does, and leave customization up to those that prefer some other things.

I hope to spend some time on this new version/add-on, man someone that applies all of these would have several options to choose from. I may need to update the SQL statements to provide a little more on the how-to's and try to reduce any new confusion about why this doesn't work, or that...

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

21 Dec 2013, 3:57 PM
#54
linuxguy2 avatar

linuxguy2

Zen Follower

Join Date:
Sep 2013
Location:
Texas
Posts:
315
Plugin Contributions:
0

Re: Checkbox instead of buy now button on all products page

Thanks for sticking with me on this. I really appreciate it!

Sounds like we're on the same page.
Although I don't need 2) or 3) someone else may want those options.

Reminder:
This is a wholesale operation so prices or cart will not be available until logged in.

"I personally would prefer that the quantity in cart would not be displayed if there were none in the cart, but that is from a "I'm filling out this order screen as my job ALL day." The absence (do you mean presence?) of information would be quick to help identify that if something was on screen then some amount was in the cart."
I Agreed:

"To the occasional visitor/user, the system might take some getting accustomed to and may cause some to question, well I don't see anything does that mean there are none selected?!"
If in doubt they can quickly review their purchases in the "Cart" or at "Check out".
Also they can adjust their quantities there:

Thanks again.

28 Dec 2013, 2:27 PM
#55
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Checkbox instead of buy now button on all products page

linuxguy2:

Thanks for sticking with me on this. I really appreciate it!

Sounds like we're on the same page.
Although I don't need 2) or 3) someone else may want those options.

Reminder:
This is a wholesale operation so prices or cart will not be available until logged in.

"I personally would prefer that the quantity in cart would not be displayed if there were none in the cart, but that is from a "I'm filling out this order screen as my job ALL day." The absence (do you mean presence?) of information would be quick to help identify that if something was on screen then some amount was in the cart."
I Agreed:

"To the occasional visitor/user, the system might take some getting accustomed to and may cause some to question, well I don't see anything does that mean there are none selected?!"
If in doubt they can quickly review their purchases in the "Cart" or at "Check out".
Also they can adjust their quantities there:

Thanks again.

I think I've got a working version of this. I can't say I'm totally satisfied with the resulting look, some CSS might help it along (including adding some class statements where applicable), but I am trying to finalize the solution as a plugin. Hopefully can get it submitted today otherwise will be later this week. First time I've used an autoinstaller like method, plus have to write usage instructions. The instructions alone may become the most edited part of the plugin. :P am trying to pull from various instruction authors to hopefully capture the meat of some of the easier but technical aspects.

In summary, I have added an option with a value of 3 that will instead of displaying a text box to enter a number adjacent to each product will display a small icon (small because that's the size photo I included, but could be made bigger by other means) of a shopping cart (or whatever image takes it's place), that when clicked for the first time (ie, product is not in cart), will add the product to the cart respecting the ZC minimum add to cart function. (Respects minimum quantity and number of units). The page will refresh, positioning the screen with the selected item at the top, if so enabled displaying the quantity of that product in the cart and ready to increase that quantity again. Also upon refresh, any item in the cart will also then have a small "trash can" to click, which when clicked will also respect the units and minimum quantities as related to the current cart quantity. If selection of the delete icon would remove all quantities of the product from the cart then when selected it will be removed from the cart and the page again refreshed with that product in the applicable list of products at the top of the screen and only the cart icon would be present for that product. (The quantity of zero could be made to display, or be turned off in the admin panel under configuration, product listing)

Oh and I probably should doone last final check, but I used ZC 1.5.1 as the template for the files, I think in total there are 6 files that are used to provide these changes, and there would be two additional files to support the autoinstall. Might need one more for some additional definitions for the autoinstall, but am in the final steps of putting that together so will see what is needed for it all to fit together.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

29 Dec 2013, 4:37 AM
#56
linuxguy2 avatar

linuxguy2

Zen Follower

Join Date:
Sep 2013
Location:
Texas
Posts:
315
Plugin Contributions:
0

Re: Checkbox instead of buy now button on all products page

Sounds really good!
If you need some testing done on ZC 1.5.x versions I'd be glad to help.
Would there be any reason to test on ZC 1.3.8 or 1.3.9?

Thanks,

29 Dec 2013, 6:33 AM
#57
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Checkbox instead of buy now button on all products page

linuxguy2:

Sounds really good!
If you need some testing done on ZC 1.5.x versions I'd be glad to help.
Would there be any reason to test on ZC 1.3.8 or 1.3.9?

Thanks,

Yes and no on the older versions. Yes because there are people still using them. No because really they should upgrade. :) I also haven't really seen anything done that is unique to a version per se other than I don't see/foresee many mobiles using the older versions as again, I would hope that the older versions would get upgraded to at least 1.5.0... :)

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

7 Jan 2014, 2:47 PM
#58
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Checkbox instead of buy now button on all products page

For anyone following this thread, the above discussed code has been turned into a plugin. The plugin is available as: Checkbox Textbox Icon Product Checkout from the list of ZC plugins. A link to the support thread is provided there.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...