News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Cant disable Keep Product Stock Level on Purchase?

Started by patjun, July 10, 2008, 18:15:15 PM

Previous topic - Next topic

patjun

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

axel wwernecjke



soso2k

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

Wallace Campos

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

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.