Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Inventory Options Rebuild Default (50) Rate Topic   - - - - -

 
  • MikeFold
  • Senior Member
  • Members
  • Join Date: 24-Nov 06
  • 1,034 posts

Posted 14 October 2007 - 06:03 PM #1

OK....I am stumped for some reason...
:confused:

I can not locate where the default number '50' is generated from when you
'rebuild combinations' on the admin side for product options inventory. I would much prefer if it was '0' or '1' so I don't have to change all 30 boxes to zero.

This is the page code to rebuild combinations, but I am either sufering a brain cramp or getting old and can't decipher it.

<table cellpadding="0" cellspacing="0" border="0" onClick="javascript: document.product_options_form.action.value='rebuild_combinations'; document.product_options_form.submit();" class="hand" onMouseOver="window.status='ONCLICK=javascript: document.product_options_form.action.value=\'rebuild_combinations\'; document.product_options_form.submit(); '; return true;" onMouseOut="window.status=''">

[SIZE="1"]Seamlessly Upgraded to 1.3.5sp4 from 1.3.4sp3
Live: Playboy Collectors Gallery
(Adult)[/SIZE]

[SIZE="2"]LOOKING FOR A FEW COPIES OF THE NEW LITHUANIA PLAYBOY ISSUES...AND COLOMBIA ISSUES.....
FEEL FREE TO Private Message Me....THANKS[/SIZE]


[SIZE="1"]Slightly Modded Default Red | Zardos Lightbox | Sitemap | Multicards Payment Mod |
Cart & Checkout Pages Modified |
[/SIZE]

 
  • S-Combs
  • Senior Member
  • Members
  • Join Date: 09-Nov 06
  • 692 posts

Posted 14 October 2007 - 06:46 PM #2

Maybe this

cscart_v1.3.4-sp3/core/fn_catalog.php

Line# 1141

function fn_rebuild_product_options_inventory($product_id, $amount = 50)

Secure Cart Hosting
[CS-Cart Optimized Solutions and Server Management]

 
  • MikeFold
  • Senior Member
  • Members
  • Join Date: 24-Nov 06
  • 1,034 posts

Posted 14 October 2007 - 06:55 PM #3

LOL..
that sure looks like it Steve...
I was searching in the /admin/ folder.....

we'll go try it
Thanks!


Thats It!....damn...you're good....
;)
[SIZE="1"]Seamlessly Upgraded to 1.3.5sp4 from 1.3.4sp3
Live: Playboy Collectors Gallery
(Adult)[/SIZE]

[SIZE="2"]LOOKING FOR A FEW COPIES OF THE NEW LITHUANIA PLAYBOY ISSUES...AND COLOMBIA ISSUES.....
FEEL FREE TO Private Message Me....THANKS[/SIZE]


[SIZE="1"]Slightly Modded Default Red | Zardos Lightbox | Sitemap | Multicards Payment Mod |
Cart & Checkout Pages Modified |
[/SIZE]

 
  • S-Combs
  • Senior Member
  • Members
  • Join Date: 09-Nov 06
  • 692 posts

Posted 14 October 2007 - 08:08 PM #4

Glad to help out Mike...

My name is Scott btw :P
Secure Cart Hosting
[CS-Cart Optimized Solutions and Server Management]

 
  • MikeFold
  • Senior Member
  • Members
  • Join Date: 24-Nov 06
  • 1,034 posts

Posted 14 October 2007 - 08:14 PM #5

told you age and senility was setting in Scott...

i knew that...funny thing is, i was talking on the phone to a friend of mine...
(name: steve)
:rolleyes:

guess i can't multitask very well anymore
[SIZE="1"]Seamlessly Upgraded to 1.3.5sp4 from 1.3.4sp3
Live: Playboy Collectors Gallery
(Adult)[/SIZE]

[SIZE="2"]LOOKING FOR A FEW COPIES OF THE NEW LITHUANIA PLAYBOY ISSUES...AND COLOMBIA ISSUES.....
FEEL FREE TO Private Message Me....THANKS[/SIZE]


[SIZE="1"]Slightly Modded Default Red | Zardos Lightbox | Sitemap | Multicards Payment Mod |
Cart & Checkout Pages Modified |
[/SIZE]

 
  • jaytheshop
  • Advanced Member
  • Members
  • Join Date: 12-Nov 11
  • 54 posts

Posted 15 January 2017 - 06:37 AM #6

Hi,

 

This did not seem to do the trick for me.. Any other advise?



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 15,003 posts

Posted 16 January 2017 - 06:53 AM #7

app/functions/fn.catalog.php

 

try to change

function fn_rebuild_product_options_inventory($product_id, $amount = 50)

to

function fn_rebuild_product_options_inventory($product_id, $amount = 1)

GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration

Certified CS-Cart RU Developer | Сертифицированный разработчик на CS-Cart Русская Версия