Jump to content

How to add more options in BLOCK CART


Recommended Posts

I have products there the prices are PER 1 linear meter. So how to add two more fields in the block cart for LENGHT AND WIDTH. These two parameters will be introduced by clients and the price has to be recalculated on the fly.

I can not do it via standard attributes as the range is to wide. Min 10cm x 10 cm AND Max: 170 cm x 170 cm (Milimeters are also allowed)

Any idea which files to change?

Link to comment
Share on other sites

I don't think it could be done with a simple change. It would be difficult to do, since PrestaShop links prices to products and attributes. Prices need to be pre-calculated rather than done on the fly. I can't see any other option than to generate lots of pre-calculated attributes.

Link to comment
Share on other sites

Thanks for your answer Rocky.

Then I want to try "difficult" change, but please give me an idea which files or blocks has to be modified.

What you told about pre-calculated prices will not work in my case (I already thought about this options)

Imagine that I have 1600 options (prices) for length and the same for width PLUS multiplied by 500 products. Impossible.

I would better spend time on creating "on the fly" module.

But please give the some advise from where to start.

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...