VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: meriturva on November 18, 2011, 13:04:28 PM

Title: Edit product - Problem on Prices display
Post by: meriturva on November 18, 2011, 13:04:28 PM
When i edit a product i get always problems on the "Product pricing" section:

<br /><b>Notice</b>:  Undefined index:  costPrice in <b>/administrator/components/com_virtuemart/views/product/tmpl/product_edit_information.php</b> on line <b>186</b><br />

actually i checked and the array: $this->product->prices is empty.
I use the version: 2.0.0-RC-2M

any way to fix it?

Thanks.
Meriturva
Title: Re: Edit product - Problem on Prices display
Post by: Cleanshooter on November 18, 2011, 17:52:45 PM
I doubt the product->prices array is empty... how are you showing it's contents? 

Where is the "Notice" displaying?  Do you have debug turned on for VM?

I ask because I can not replicate this issue please try and provide more information on how you are encountering the issue.
Title: Re: Edit product - Problem on Prices display
Post by: meriturva on November 19, 2011, 12:03:57 PM
i checked the $this->product->prices just with a var_dump on php.
About the Notice yes i have the messages enabled on my server just beacuse i cannot save prices on product...but i found why!

If you deselect "show price" option on configuration->prices section then you cannot edit anymore prices on products.
i think that it is not correct...i have situation where i have to update prices and just would like to hide prices on frontend for a short time.
what do you think?

Meriturva