VirtueMart Forum

VirtueMart Dev/Coding Central: VM1 (old version) => Quality & Testing VirtueMart 1.1.x => Virtuemart 1.1 Development (Archiv) => Q&T Resolved => Topic started by: patjun on July 10, 2008, 18:15:15 PM

Title: Cant disable Keep Product Stock Level on Purchase?
Post by: patjun on July 10, 2008, 18:15:15 PM
Hi,
i couldnt disable the "Kepp Product in Stocklevel on Purchase?" option in the download section of the VirtueMart configuration.

I did these change

File admin.show_cfg.php Line 1156

original version

  <input name="conf_VM_DOWNLOADABLE_PRODUCTS_KEEP_STOCKLEVEL" type="checkbox" value="1" <?php if( @conf_VM_DOWNLOADABLE_PRODUCTS_KEEP_STOCKLEVEL ) echo 'checked="checked"' ?> />


new version

  <input name="conf_VM_DOWNLOADABLE_PRODUCTS_KEEP_STOCKLEVEL" type="checkbox" <?php if (VM_DOWNLOADABLE_PRODUCTS_KEEP_STOCKLEVEL == 1) echo "checked=\"checked\""?> value="1" />


Now it works for me.
I hope this helps.

Patrick

---
Virtuemart 1.1.1
Joomla! 1.0.15
Title: Re: Cant disable Keep Product Stock Level on Purchase?
Post by: axel wwernecjke on December 10, 2008, 00:04:45 AM
exactly what I needed! Thanks Patrick!
Title: Re: Cant disable Keep Product Stock Level on Purchase?
Post by: aravot on December 10, 2008, 21:52:49 PM
Thank you, fixed in v1.1.3
Title: Re: Cant disable Keep Product Stock Level on Purchase?
Post by: soso2k on January 31, 2009, 01:51:40 AM
Sorry I am new user.... .. I have this problem too..

It might be silly question but my problem is I could not find this file "admin.show_cfg.php Line 1156" that you said.Is it on admin/component? or somewherelese?

I  use VM1.12

Please kindly tell me where the file located... please kindly give more details.... please help


Quote from: patjun on July 10, 2008, 18:15:15 PM
Hi,
i couldnt disable the "Kepp Product in Stocklevel on Purchase?" option in the download section of the VirtueMart configuration.
I did these change
File admin.show_cfg.php Line 1156
original version

  <input name="conf_VM_DOWNLOADABLE_PRODUCTS_KEEP_STOCKLEVEL" type="checkbox" value="1" <?php if( @conf_VM_DOWNLOADABLE_PRODUCTS_KEEP_STOCKLEVEL ) echo 'checked="checked"' ?> />

new version

  <input name="conf_VM_DOWNLOADABLE_PRODUCTS_KEEP_STOCKLEVEL" type="checkbox" <?php if (VM_DOWNLOADABLE_PRODUCTS_KEEP_STOCKLEVEL == 1) echo "checked=\"checked\""?> value="1" />

Now it works for me.
I hope this helps.
Patrick
---
Virtuemart 1.1.1
Joomla! 1.0.15
Title: Re: Cant disable Keep Product Stock Level on Purchase?
Post by: Wallace Campos on January 30, 2011, 12:24:42 PM
it is located here: .../administrator/components/com_virtuemart/html/

Be care what changes make there. You can easily crash the entire site. Good Luck!
Title: Re: Cant disable Keep Product Stock Level on Purchase?
Post by: canada87 on June 08, 2011, 16:10:42 PM
I had the same issue as soso2k. Thanks a lot Wallace.

I made a backup just in case I do something stupid and change something that doesn't need changing.