News:

Support the VirtueMart project and become a member

Main Menu

New price - Buyout

Started by astapl, July 16, 2012, 13:34:02 PM

Previous topic - Next topic

astapl

Hello. First, i want to welcome to all. I'm new user VirtueMart and i need some edited.

1. How I can add new column with price?
- in the databases i added this query:
ALTER TABLE `udg01_virtuemart_product_prices` ADD `buyout` decimal(15,5) AFTER `product_price`

- now, in file product_edit_information.php with administrator/components/com_virutemart/views/product/tmpl/ after this
<tr class="row0" >
<td width="17%" >
<div style="text-align: right; font-weight: bold;">
<span
class="hasTip"
title="<?php echo JText::_('COM_VIRTUEMART_PRODUCT_FORM_PRICE_COST_TIP'); ?>">
<?php echo JText::_('COM_VIRTUEMART_PRODUCT_FORM_PRICE_COST'?>
</span>
</div>
</td>
<td width="71%" colspan="2" ><input
type="text"
class="inputbox"
name="product_price"
size="12"
style="text-align:right;"
value="<?php echo $this->product->prices['costPrice']; ?>" />
<?php echo $this->currencies?>
</td>
</tr>

i added this:
<tr class="row0" >
<td width="17%" >
<div style="text-align: right; font-weight: bold;">
<span
class="hasTip"
title="<?php echo JText::_('COM_VIRTUEMART_PRODUCT_FORM_PRICE_COST_TIP'); ?>">
<?php echo JText::_('COM_VIRTUEMART_PRODUCT_FORM_PRICE_COST_BUYOUT'?>
</span>
</div>
</td>
<td width="71%" colspan="2" ><input
type="text"
class="inputbox"
name="product_buyout"
size="12"
style="text-align:right;"
value="<?php echo $this->product->prices['buyout']; ?>" />

</td>
</tr>

here are the result:

- and now i have a big problem. I don't know where i can find file where i can update price to the databases.

Someone know where i can find this?

Sorry for my bad language but i think you understand me ;)