Jump to content

Custom product field and bill


cdebattista@idpot.fr

Recommended Posts

Ok, was busy on other project but I found the solution.

Override Cart.php => fonction getProducts

 

I added

            if (array_key_exists($row['id_product_attribute'].'-'.$this->id_lang, self::$_attributesLists)) {
                $row = array_merge($row, self::$_attributesLists[$row['id_product_attribute'].'-'.$this->id_lang]);
            }
			
			//SURFACE
			$row['attributes'] .= ", Longueur: ".$row['e_dim_x']." cm, Largeur: ".$row['e_dim_y']." cm";
			$row['attributes_small'] .= ", Longueur: ".$row['e_dim_x']." cm, Largeur: ".$row['e_dim_y']." cm";
			//echo '<pre>' .print_r($row, true).'</pre>';
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...