Jump to content

Transferring Variable To Shopping Cart


susanne52

Recommended Posts

Hello,

 

I'm trying to create a module in order to calculate individual prices for stickers (price depends on size, material and quantity).

 

The problem: value of calculated variable isn't transferred to shopping cart.

 

What file do I need to change to get things done ?

 

Actually, I just want to transfer value of my variable of module "test" :

$prixSticker=40.0;

to the price of the individual product in order to get it into shopping cart.

I did an override>classes>Product.php in order to modify just one product.

 

Price of product need to change too, if $prixSticker=$longueur*$largeur*texteadmin;

 

because the value $prixSticker will be calculated in fonction of several items in back office (marge, coefficient….) , AND in front office (length, width, quantity ... chosen by the buyer.

 

Help would be great !

 

Thanks

 

Susannetest.zip

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