Jump to content

configure a product in my way


giugio

Recommended Posts

hello.
I must configure a product with attributes , from 0 to the final product.
I already studied and created the attributes management in the back end.
Now I wish start with a product and configure it(add data and price)
Is possible to do that without the combination generator?
because i have a lot of combination , but i would customize the combination with a my module with a personal behaviour, with a wizard with my css and my graphics . I would do something like (in pseudocode)


 $p = new ProductCore();



 if($_POST[SelectedAttributeID] == 1) //if in my module front end i selects an attribute with id 1

//  load attribute with id 1 and add it to the product

  $p->addAttribute(1);

//recalculates the price

  $p->recalcPrice();

//and so, at the end

$p->save();

Cart::addtocart($p)



is possible?
is a correct way?

My scope is to customize a product with some entities that have a price and some properties for the front end (an image some field ecc..).
And do that in a my personal way.

I saw the combinator but I see that use a lot of javascript(product.js) in the front end  and generates a lot  of products that may be never used.

thanks.

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...