Create " Old and promotional price " on quick.cart

torelo

Avatar: torelo

2011-11-01 22:37

how i can create this plugins ?

thanks

» Quick.Cart v4.x

torelo

Deivids

Avatar: Deivids

2011-11-02 07:33

Create a new variable in database products_def
Create a new field in admin products.tpl
Paste your variable into pages_default.tpl and products_default.tpl
Use CSS to make your old price line-through or alike

torelo

Avatar: torelo

2011-11-02 11:46

deivids you can create this with more details ... please

step to step linke in plugins from site ?

torelo

Deivids

Avatar: Deivids

2011-11-02 14:56

i will show you how to create an additional price. so following my steps:

1. open db/_products.ext

and change


   
'sDescriptionShort' => 7 with 'sDescriptionShort' => 7'mOldPrice' => 8
and also
   
'sDescriptionShort' => $aExp[7with 'sDescriptionShort' => $aExp[7], 'mOldPrice' => $aExp[8]
   


2. open templates/admin/products.tpl
and before <!-- price end --> paste the code below


  
<tr class="l0">
        <
td>
          
Old price
        
</td>
      </
tr>
      <
tr class="l1">
        <
td>
          <
input type="text" name="mOldPrice" value="$aData[mOldPrice]" class="inputr" size="10" /> $config[currency_symbol]
        </
td>
      </
tr>


3. open templates/pages_default.tpl and in BEGIN PRODUCT PRICE block change line


<div class="price"><em>$lang[Price]:</em><strong>$aData[sPrice]</strong><span >$config[currency_symbol]</span></div>

with

<div class="price"><em>$lang[Price]:</em><b style=" text-decoration:line-through">$aData[mOldPrice]</b><strong>$aData[sPrice]</strong>< span>$config[currency_symbol]</span></div>


4. and don't forget to paste this new variable $aData[mOldPrice] somewhere in templates/products_defaul.tpl too. For example somewhere in <!-- BEGIN PRICE --> block.

You should upgrade it if you wanna get it well done. It's just a simple sample.

Back to top
about us | contact