Search our site
Forum Search
Google Site Search
|
carl1963
Ecommerce Template Expert
United Kingdom
629 Posts Pre-sales questions only (More Details...)
|
Posted - 09/28/2020 : 08:31:14
If there is a Minimum Product Quantity of lets say 100, why can the quantity box not show that amount for that product, at the moment it shows one (1) and the soft cart lets you add (1) but the cart page insists you update to add 100.. can this be ammended to show 100 units in the quantity box to stop confusion..
Regards Carl
|
ekrzycki
Advanced Member
USA
351 Posts Pre-sales questions only (More Details...)
|
Posted - 09/28/2020 : 10:41:31
Yes! I added this to the suggestions forum awhile ago but hasn't been acted upon yet.
When a product with minimum quantity is displayed - the purchase quantity should start with the minimum quantity rather than just "1". A lot of customers ignore my big, red minimum quantity note inserted by the ECT software when a minimum buy product is displayed and the cart will actually let them add just one. When they actually get to the cart page - they are then forced to fix items that have minimum quantities prior to checkout time. I have actually had customers send me emails complaining "why can't you just fix your software to add the minimum quantity rather than force us to fix them in the cart". sigh...
Fortunately, the cart now makes it easy for the customer to identify which items need to be adjusted in quantity by making them red. That definitely helped.
|
Guy
ECT Moderator
Canada
2525 Posts |
Posted - 09/29/2020 : 11:26:02
|
carl1963
Ecommerce Template Expert
United Kingdom
629 Posts Pre-sales questions only (More Details...)
|
Posted - 09/29/2020 : 11:55:12
I did purchase the Minimum Purchase Qty v6.0.3 PHP by DLSS some time ago but stopped using it when Ect included it in an update minus the display in the quantity box.. is there an updated version.
Regards Carl
|
Guy
ECT Moderator
Canada
2525 Posts |
Posted - 09/29/2020 : 12:08:34
Hello Carl,
You should contact Mike Beebe, I'm sure he can help you with this.
I think too it should be indicated by default on the quantity box.
Regards,
---- Guy Quebec, Canada https://www.lineaire.com
|
ekrzycki
Advanced Member
USA
351 Posts Pre-sales questions only (More Details...)
|
Posted - 09/29/2020 : 12:46:14
I used to also use the DLSS min buy mod. It worked great, Mike had an excellent modification.
Every time I updated the website, I also had to update the min buy mod from DLSS. Theoretically, this is easy and isn't a problem. BUT, a high percentage of the time, it didn't work on the first attempt. It seemed there was always a minor rev change between the ECT updater and the DLSS update. It got to the point where I would get the two updates, run windiff between the two updaters and manually apply the updates myself. Over the years, this just go to be too tedious and time consuming.
|
dbdave
ECT Moderator
USA
10468 Posts |
Posted - 09/29/2020 : 14:04:16
I think I can see a path to query the database on page load, and set that quantity to the minimum with javascript, if a minimum is required. No need to reinstall on updates. If there is interest, I can work on it.
David
|
carl1963
Ecommerce Template Expert
United Kingdom
629 Posts Pre-sales questions only (More Details...)
|
Posted - 09/29/2020 : 14:30:29
Well count me in Dave.. works for me.. Regards Carl 
|
ekrzycki
Advanced Member
USA
351 Posts Pre-sales questions only (More Details...)
|
Posted - 09/29/2020 : 17:21:00
I could sure use this. But it would be nice if Vince can get it into final distribution files.
|
dbdave
ECT Moderator
USA
10468 Posts |
Posted - 09/30/2020 : 20:37:01
I have worked out a solution but there are a few things to consider. First, if your product that has a minimum quantity has options, you want to keep things like they are, because each may have unique option choices from the customer and they need to be able to add to cart incrementally.
Another thing to consider, I was looking for an available variable for the minimum quantity, and while I could not find one, I did notice a layout option that is not on the list here - https://www.ecommercetemplates.com/help/css-layouts.asp#proddetail (perhaps it's published elsewhere), but there is minquantity that will show on the product detail page that there is a min quantity, and what that is. So any of you not using that, it would probably help to add that. .asp detailpagelayout="navigation,checkoutbutton,productimage,productid,manufacturer,sku,productname,minquantity,price,options,quantity,addtocart,previousnext,emailfriend,description,reviews" php $detailpagelayout='navigation,productimage,productname,instock,custom3,description,sku,listprice,price,currency,options,minquantity,quantity,addtocart,socialmedia,previousnext,reviews';
The way I pick up the quantity is from that (minquantity) showing on the page. We get the number from there, and then change the attributes of the input for the quantity. I am testing this still, and I tried changing the input type from text to number and hide the up/down arrows with css The neat thing about the "number" attribute is it allows mouse scrolling for the numbers and allows us to set a minimum. So if the user us "rolling" the numbers down, they will not go lower than the min attribute set. This raises a few issues where if you are using the ect up/down buttons, it still lets you roll down the number and add to cart. If you are not, you can still type a lower number than the minimum, but you get a red box, and usually that stops the submission of the input, but with this competing with native ect code, it still allows add to cart.
In either case, it's no problem to set the starting number if that's all you want. See this test product (set to 5 min) https://www.floridasurpluswarehouse.com/dev/proddetail.php?prod=scanner001
I'll work on this some more before I post any solutions, but if anyone has any thoughts, feel free to post feedback.
Thanks, David

|
DLSS
ECT Moderator
Canada
3958 Posts |
Posted - 10/01/2020 : 11:23:24
My product does this without any need to understand any code, AND it also allows for product increments (multiples) at the product level. -for example 6, 12, 18... ect. Mike Beebe President, DataLinks Software Solutions www.dlss.ca Rate Me HereASP and PHP mods - www.dlss.ca/products.asp A Tremendous Home - www.ATremendousHome.com Buy Cigars Online www.CigarSmokeShop.net
|
dbdave
ECT Moderator
USA
10468 Posts |
Posted - 10/01/2020 : 11:49:51
Hi Mike, I understand, and I certainly don't want to diminish your product, or step on any toes here. I was just working on something that could be installed on the product detail page that works with the native ect feature that would not need to be reinstalled when updating. I think one of the posts mentions that, and that's what lead me to work on this.  Thanks, David
|
DLSS
ECT Moderator
Canada
3958 Posts |
Posted - 10/01/2020 : 12:18:51
|
dbdave
ECT Moderator
USA
10468 Posts |
Posted - 10/01/2020 : 20:42:18
Hello all, I have simplified this to show the minimum quantity in the quantity when one exists. It's javascript and the code is the same for both .php and .asp versions. The primary caveat is you must be using the css layouts (most folks are I expect) and you must add minquantity to your detail page layout (examples below). NOTE - If you don't want to actually show the minquantity message, you can hide that with css easy enough. .asp detailpagelayout="navigation,checkoutbutton,productimage,productid,manufacturer,sku,productname, minquantity,price,options,quantity,addtocart,previousnext,emailfriend,description,reviews" php $detailpagelayout='navigation,productimage,productname,instock,custom3,description,sku,listprice,price,currency,options, minquantity,quantity,addtocart,socialmedia,previousnext,reviews'; From there, it's just a matter of the following code placed in your proddetail.asp/.php page after the include line that calls up your product details. ASP <!--#include file="vsadmin/inc/incproddetail.asp"-->PHP <?php include "vsadmin/inc/incproddetail.php" ?>The code is <script> //BEGIN MIN QUANT POPULATE if (document.getElementsByClassName('detailminquant')[0]) { var str=document.getElementsByClassName('detailminquant')[0].innerHTML var minq = str.match(/(\d+)/); document.getElementById("w0quant").value = minq[0];} //END MIN QUANT POPULATE </script> I have tested this on my .php and .asp test sites. php here - https://www.floridasurpluswarehouse.com/dev/proddetail.php?prod=scanner001 Note, there is no mechanism to prevent the customer from entering a lower number, but if you want that, and more extended features, you might consider Mike Beebe's tool (why reinvent the wheel). Hope that helps some of you out and let me know if any of you have questions. Thanks, David
Edited by - dbdave on 10/01/2020 20:44:19
|
ekrzycki
Advanced Member
USA
351 Posts Pre-sales questions only (More Details...)
|
Posted - 10/02/2020 : 08:14:44
Yes, that works. Takes care of part of the items. Can the same thing be added to the products page right after: <!--#include file="vsadmin/inc/incproducts.asp"-->
Thanks! Ed
|
dbdave
ECT Moderator
USA
10468 Posts |
Posted - 10/02/2020 : 10:01:51
Hi Ed, no that will not work on the product page. I'm sure it could be done, but I had not worked that scenario. I will try to take a look over the weekend perhaps. David quote: Can the same thing be added to the products page right after: <!--#include file="vsadmin/inc/incproducts.asp"-->
|
DLSS
ECT Moderator
Canada
3958 Posts |
Posted - 10/02/2020 : 14:19:48
|
|
|
Shopping Cart Software Forum for Ecommerce Templates |
© 2002-2022 ecommercetemplates.com |
 |
|
|