Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 Customization
 Change function [ADD_INVENTORYPRODUCTS]
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

soncci
VP-CART New User

USA
97 Posts

Posted - February 16 2013 :  15:30:23  Show Profile  Visit soncci's Homepage  Reply with Quote
[ADD_INVENTORYPRODUCTS] How and where could I change the way this function and others too works?

a) I need to use it but only to show the dropdown box for subproducts, but don't want the word "Inventory" before that.

b) Also, how to change the word "Select" in the dropdown box to "Select Format"
I tried the Languages but none of the "Select" captions changed works on the dropdown.

Any help will be appreciated.

Sonia Carter
www.1-free-embroidery.com
Version 7.01

soncci
VP-CART New User

USA
97 Posts

Posted - February 16 2013 :  22:55:14  Show Profile  Visit soncci's Homepage  Reply with Quote
Anybody???
Go to Top of Page

soncci
VP-CART New User

USA
97 Posts

Posted - February 17 2013 :  21:32:28  Show Profile  Visit soncci's Homepage  Reply with Quote
Hello? Anybody will help?
Go to Top of Page

manilow
VP-CART New User

France
134 Posts

Posted - February 18 2013 :  04:19:57  Show Profile  Visit manilow's Homepage  Reply with Quote
Sonia,

The code you're searching for is in shopproductinventory.asp, Sub FormatinventoryDropdown:

Inventory header
The header text is saved in the "langinventory" field

Selectname
The select name, is displayed by the following line:

sSelect = sSelect & "<option selected=""selected"">" & GetLang("langCommonSelect") & "</option>"

Outquote this line if you don't want "Select" (or similar) to be displayed. Otherwise, change langCommonSelect to langMySelect (or whatever) and define your own text in the language table.


Bug correction
Correct the following line to make it work properly:

Change
GenerateSubProductName tempoption, rs

To:
GenerateSubProductName tempoption, rs, objrs("spdisplaytype")


I hope this will help you.

Kind regards,

Erik
www.AquaThermia.com
Go to Top of Page

soncci
VP-CART New User

USA
97 Posts

Posted - February 18 2013 :  12:11:08  Show Profile  Visit soncci's Homepage  Reply with Quote
THANK YOU very much Erik!
I was able to take out the Inventory word and the Select Format is in place.

You also wrote the Bug :
Bug correction
Correct the following line to make it work properly:

Change
GenerateSubProductName tempoption, rs

To:
GenerateSubProductName tempoption, rs, objrs("spdisplaytype")

But when I do that I receive a runtime error:

Microsoft VBScript runtime

error '800a01c2'

Wrong number of arguments or invalid property assignment: 'GenerateSubProductName'

/shopproductinventory.asp, line 296

Do you have any idea why?

Sonia carter
www.1-free-embroidery.com
Version 7.01

Edited by - soncci on February 18 2013 12:12:13
Go to Top of Page

manilow
VP-CART New User

France
134 Posts

Posted - February 18 2013 :  12:48:37  Show Profile  Visit manilow's Homepage  Reply with Quote
Sonia,

I'm glad to see that you achieved to make the changes you were looking for.

Changes in the GenerateSubProductName subroutine arguments are adaptations that I made #8203;#8203;and not a bug correction. Sorry to have bothered you with it.. These adaptions allow a different product name display according to the type of inventory product selection (radio, checkbox, dropdown).

Kind regards,

Erik
www.AquaThermia.com


Go to Top of Page

soncci
VP-CART New User

USA
97 Posts

Posted - February 18 2013 :  13:10:48  Show Profile  Visit soncci's Homepage  Reply with Quote
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000
0 Item(s)
$0.00