php - CS-Cart dynamic option -


how can add dynamic option product in cs-cart? mean want add option product in product page based on db field value.

that plan doing this: 1- add new hook 'get_product_options_post'. 2- in function of hook check db values. 3- depending on previous check show option or not.

so, can see steps 1 , 2 clear me i'm asking step 3. how can this? , take account option have price modifier , value different depending on db check.

idea

i had idea doing adding new product option @ addon installation , apply option products. need apply option whole category rather individual products.

this means current products @ specified category should automatically have specified option as new products added in future.

any suggestion doing good.

we can offer extend product option statuses , add hidden status 2 existent ones - active , disabled. hidden options not displayed customers default. in hook check necessary fields in database , enable hidden options if necessary.


Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -

Nuget pack csproj using nuspec -