Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8333801
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T03:08:48+00:00 2026-06-09T03:08:48+00:00

Basically I am web designer. I am a newbie to magento CMS. I am

  • 0

Basically I am web designer. I am a newbie to magento CMS. I am involved in a new magento ecommerce project.

I want to make a dynamic pricing in my products page.

In my site I am selling curtain cloth so i want dynamic billing to be like

user can give width and height of a particular product
I have a fixed price for sq.ft. I need to multiply width and height provided by the user to get a square feet value.

For example please refer this link.

Reference site Url: http://www.woodyattcurtains.com/net-curtains-voiles-c2/net-curtains-c3/ellie-white-net-curtains-p3

I want my product page exactly like this. I had searched many extensions in magento for easily achieving this result. But was unlucky.
Is there any free extensions in magento to achieve this? Or else, please guide me to develop this result through any sort of coding.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T03:08:50+00:00Added an answer on June 9, 2026 at 3:08 am

    Just add this piece of code in your

    app/design/frontend/default/[template_NAME]/template/catalog/product/view.phtml file
    I had add two new fields for width & height Just like this

    <label for="height"><?php echo "Height" ?></label>
                <input type="text" name="height" id="height" maxlength="30" value="1" title="<?php echo 'Height' ?>" class="input-text" />
                <label for="width"><?php echo "Width" ?></label>
                <input type="text" name="width" id="width" maxlength="30" value="1" title="<?php echo 'Width' ?>" class="input-text" />
    

    Also add these php code

    <?php  $br_special_price = $_product->getSpecialPrice(); 
        $br_old_price = $_product->getPrice(); 
        $an_id = $_product->getId(); 
    
    $special_priceID="product-price-".$an_id;
    
    $old_priceID="old-price-".$an_id;
    ?>
    

    Also this script at the end of the file

    <script type="text/javascript">
    var mq= 0;
    function respondToChange(event) {
    mq= Math.ceil($('width').getValue() * $('height').getValue() * <?php echo $br_special_price;?> );
    document.getElementById('<?php echo $special_priceID; ?>').innerHTML = '&#163; &nbsp;'+mq;
     mq1= Math.ceil($('width').getValue() * $('height').getValue() * <?php echo $br_old_price;?>);
     document.getElementById('<?php echo $old_priceID; ?>').innerHTML = '&#163; &nbsp;'+mq1;
    }
    $('width').observe('change', respondToChange);
    $('height').observe('change', respondToChange); 
    </script>
    

    There is a problem in this code. you can able to get prices reflected in all product pages. But you can’t pass these updated special price to cart. Older values will be reflected in cart. Hope anyone update this code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to make a site where there user can basically navigate the web
I basically want to use the XML parser from Qt in my existing project.
I have a Rails project that is basically a simple web app for a
I am new in windows application development. basically i am web developer. but though
Basically I want to build a web interface to a server-side math engine. (Like
I installed OpenScholar in my domain: http://scholar.web Basically, when someone register for an account,
I'm using CSS selectors to generate custom pop-ups for a web templates - basically,
Basically my app is interacting with a web service that sends back a weird
Basically I'm trying to determine the complete web-accessible URL of a certain script, but
Basically I am creating a database driven website in Web Developer 2008. The database

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.