How and where to save added Old price in VirtueMart?

This forum is for general questions about extensions for Joomla! 2.5.

Moderators: pe7er, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
superpupervest
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Fri Jan 17, 2020 4:50 pm

How and where to save added Old price in VirtueMart?

Post by superpupervest » Fri Jan 17, 2020 4:53 pm

Hello. There was a need to add the Old price to the site. I decided to do it as follows. Added an additional Input to the /administrator/components/com_virtuemart/views/product/tmpl/product_edit_price.php file, as well as an additional column in the biclp_virtuemart_product_prices table.

But I did not understand where and how to save the whole thing. Tell me please.

Code: Select all

<tr class="row<?php echo $rowColor?>">
        <td width="120px">
            <div style="text-align: right; font-weight: bold;">
                                <span
                                        class="hasTip"
                                        title="Старая цена">
                                Старая цена
                                </span>
            </div>
            </td>
        <td width="140px"><input
                type="text"
                class="inputbox"
                name="mprices[old_price][]"
                size="12"
                style="text-align:right;"
                value="<?php echo $this->calculatedPrices['costPrice']; ?>"/>
          <? /*  <input type="hidden"
                   name="mprices[virtuemart_product_price_id][]"
                   value="<?php echo  $this->tempProduct->virtuemart_product_price_id; ?>"/> */?>
        </td>
        <td colspan="3">
       
        </td>
        <td colspan="2">
           
        </td>
    </tr>
Last edited by toivo on Tue Jan 28, 2020 4:30 pm, edited 2 times in total.
Reason: mod note: moved from Professional Development Services - retitled, moved from 3.x Extensions

superpupervest
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Fri Jan 17, 2020 4:50 pm

Re: Update On virtueMart

Post by superpupervest » Sat Jan 18, 2020 3:45 pm

I just need to know how to update products on virtueMart. Does nobody really know?

User avatar
pmleconte
Joomla! Guru
Joomla! Guru
Posts: 591
Joined: Fri Mar 17, 2017 12:55 pm
Location: France

Re: Update On virtueMart

Post by pmleconte » Sat Jan 18, 2020 3:49 pm

Hi,

If nobody helps you here, check on your extension's forum : http://forum.virtuemart.net/

Pascal
If anything can go wrong, it will.
https://www.conseilgouz.com/en

superpupervest
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Fri Jan 17, 2020 4:50 pm

Re: Update On virtueMart

Post by superpupervest » Tue Jan 28, 2020 4:16 pm

Unfortunately, I did not receive a response there. Maybe someone here still knows?

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 17445
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: How and where to save added Old price in VirtueMart?

Post by toivo » Tue Jan 28, 2020 4:41 pm

@superpupervest, please stop cross posting your question to different forums! Cross posting is against the forum rules.
Toivo Talikka, Global Moderator


Locked

Return to “Extensions for Joomla! 2.5”