Jump to content

How do I remove the "Quantity" feature for a digital download site?


Recommended Posts

I am creating a site using PrestaShop that is for digital downloads, more specifically for a stock image site. I would like to remove the "Quantity" feature for a product so that it does not show up on the product page and so that there can be an unlimited number of downloads. So far everything else about PrestaShop being used for this type of site seems to be OK, except for this. Is there a fix for this? What files would I need to edit in order to remove the "Quantity" feature? Thanks in advance to all that can assist me with this issue. Maybe in a future updated version this can be considered and added in to the back office functionality.

Link to comment
Share on other sites

What version of PrestaShop are you using? In PrestaShop v1.3, downloadable products do not show the quantity text field on the product page. It is possible to go to Preferences > Products and change "Enable stock management" to "No" so that the quantity of the downloadable products is ignored. The only problem I can see is the quantity column remains on the shopping cart, but that is in case you have non-downloadable products too. If you only have downloadable products, you can {* comment out *} the Qty column in shopping-cart.tpl and shopping-cart-product-line.tpl in your theme's directory.

Link to comment
Share on other sites

What version of PrestaShop are you using? In PrestaShop v1.3, downloadable products do not show the quantity text field on the product page. It is possible to go to Preferences > Products and change "Enable stock management" to "No" so that the quantity of the downloadable products is ignored. The only problem I can see is the quantity column remains on the shopping cart, but that is in case you have non-downloadable products too. If you only have downloadable products, you can {* comment out *} the Qty column in shopping-cart.tpl and shopping-cart-product-line.tpl in your theme's directory.


I am using v1.3 and it is showing the quantity text field on the product page. I went to Preferences > Products and changed "Enable Stock Management" to "No" as you suggested and it still appears anyway.
Link to comment
Share on other sites

OK, I think I figured out what is happening. Rocky was right when he pointed out the feature in Preferences to allow you to turn off the stock management, but here is the problem with that or maybe it's a bug that needs to be fixed. When using combinations with a product, the quantity field in the combinations tab appears to override the quantity field in the info tab which appears to override what you set it preferences so that the quantity appears again on the front end product page. Try setting a product up with no combinations and set enable stock management to "No" on the Products tab under Preferences, and it works fine. Now set up combinations for that product and it won't work, the quantities field appears again.

Here is something else that I noticed, When you create a product and in the field labeled "When out of stock" you select ""Default: Allow orders (as set in preferences)", an error message pops up reading "The "when out of stock" behavior selection must be "deny order" for virtual products." This just doesn't seem right for digital downloaded products. I hope this will be fixed in future releases. Does anyone now a fix for this now that I can implement?

Thanks again for any help with this issues!

Link to comment
Share on other sites

  • 3 weeks later...
What version of PrestaShop are you using? In PrestaShop v1.3, downloadable products do not show the quantity text field on the product page. It is possible to go to Preferences > Products and change "Enable stock management" to "No" so that the quantity of the downloadable products is ignored. The only problem I can see is the quantity column remains on the shopping cart, but that is in case you have non-downloadable products too. If you only have downloadable products, you can {* comment out *} the Qty column in shopping-cart.tpl and shopping-cart-product-line.tpl in your theme's directory.


I am using v1.3 and it is showing the quantity text field on the product page. I went to Preferences > Products and changed "Enable Stock Management" to "No" as you suggested and it still appears anyway.


I have the exact same problem. I'm using 1.3.1, i have downloadable product only and no combinations. I'm using theme discountshop. Everything seems fine until i reach the order.php page with Paypal. See attached pic.

25657_qq6rAF5TMWlCqXm1V8aU_t

Link to comment
Share on other sites

×
×
  • Create New...