vaheh
VP-CART New User

USA
115 Posts |
Posted - August 15 2013 : 13:51:17
|
Hi everyone,
I am trying to find a way to show feature group for products without assigning the products to feature and doing that through another field in products table.
For Example: I have a feature group like color (black - white - red) and I want it to show for any product that products.pother1 field has value of 1.
The reason is I have a POS software which can send value of 1 to the products.pother1 field and I want dynamically in shopexd.asp it loads products based on that value instead of assigning the feature one by one through features table on the website backend.
The software is not smart enough to recognize the feature id number and assign so I want to make it as simple as possible.
Please help me, Thanks, Vaheh
|
|
diegomilito
VP-CART Expert
  
Argentina
779 Posts |
Posted - September 14 2013 : 00:28:17
|
hey vaheh, from your describe, it will need custom code of course. the workflow maybe as below-
on shopfileio.asp , try to find this coding
sub Add_ProductFeatures (ivalue, parsearray, Index,parseRS) dim rc, fieldtype, tableflag prodindex=index ''tableflag=parsearray(ptableflag)
''701 - 2011.04.19 - Enhancement: Speed enhancement fixes strfeatures = parsers("FEATURES")
if rc=0 then ''701 - 2011.04.19 - Enhancement: Speed enhancement fixes strselectlist = parsers("SELECTLIST") lngCatalogId = parsers("CatalogId") FormatProductOptions end if end sub
try to change the strfeatures = parsers("FEATURES") to retrieve from the pother1 field. maybe something looking likes : strfeatures = parsers("pother1")
as just a share of opinion, i dont warranty this will work coz i dont try it on my vpasp site. but it is just a logic for you on how to start.
I wish u a good luck to try yourself.
Diego. |
 |
|