Author Topic: Cant disable Keep Product Stock Level on Purchase?  (Read 11669 times)

patjun

  • Beginner
  • *
  • Posts: 14
    • eniky - Webdesign aus Berlin
Cant disable Keep Product Stock Level on Purchase?
« 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
Code: [Select]
  <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
Code: [Select]
  <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

axel wwernecjke

  • Beginner
  • *
  • Posts: 8
Re: Cant disable Keep Product Stock Level on Purchase?
« Reply #1 on: December 10, 2008, 00:04:45 am »
exactly what I needed! Thanks Patrick!


soso2k

  • Beginner
  • *
  • Posts: 1
Re: Cant disable Keep Product Stock Level on Purchase?
« Reply #3 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


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
Code: [Select]
  <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
Code: [Select]
  <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

Wallace Campos

  • Beginner
  • *
  • Posts: 2
    • Sap Training Videos
Re: Cant disable Keep Product Stock Level on Purchase?
« Reply #4 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!
Offering all Types of Video Based Sap Training Materials Over Printed Materials. Sap Training

canada87

  • Beginner
  • *
  • Posts: 1
    • Dr Motykie
Re: Cant disable Keep Product Stock Level on Purchase?
« Reply #5 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.