osCmax v2.5 User Manual
Results 1 to 5 of 5

Calculate amount of product based on entered text

This is a discussion on Calculate amount of product based on entered text within the Introduce yourself! forums, part of the Community category; I have integrated functionality to calculate product's amount based on entered text for sticker of name plaque type of products. ...

      
  1. #1
    New Member
    Join Date
    May 2010
    Location
    banglore, india
    Posts
    6
    Rep Power
    0


    Lightbulb Calculate amount of product based on entered text

    I have integrated functionality to calculate product's amount based on entered text for sticker of name plaque type of products. Visit following URL to understand functionality of this contribution.

    * WOODEN FAIRYTALE LETTERS [LL64] - £1.00 : Babyrepublic


    Sorry if i am providing contribution at wrong place as i am not aware where to provide this?


    Thanks,
    Attached Files Attached Files

  2. #2
    osCMax Development Team
    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    3,013
    Rep Power
    36


    Default Re: Calculate amount of product based on entered text

    This might be handy once I decipher/translate the instructions and could be an alternative to OTF, with a few 'tweaks' to the code.

    [Should be posted in Mods.]
    Hosting plans with installation, configuration, contributions, support and maintenance.

  3. #3
    osCMax Development Team
    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    3,013
    Rep Power
    36


    Exclamation Re: Calculate amount of product based on entered text

    As suspected after the cursory glance, there is an error early on in the instructions....

    Updation at
    Frontend website
    Module
    Checkout
    File name
    /templates/1oscar2/content/checkout_success.tpl.php
    Search code
    $order_id = $orders_st['orders_id'];
    Add code
    # letters entry edit starts here
    if(count($_SESSION[kidsname])>0){
    foreach($_SESSION[kidsname] as $key=>$val){
    mysql_query('insert into `order_text` values('.(int)$orders_st['orders_id'].','.$key.',"'.$val.'")') or die("ERROR:".mysql_error());
    }
    }
    # letters entry edit ends here
    I wonder what version of 'Max/osC this is for... take back 2 stars, for another red herring.
    Hosting plans with installation, configuration, contributions, support and maintenance.

  4. #4
    New Member
    Join Date
    May 2010
    Location
    banglore, india
    Posts
    6
    Rep Power
    0


    Default Re: Calculate amount of product based on entered text

    Hi,

    Sorry for late reply. It was very old version. Exact details I will provide you later.

  5. #5
    New Member
    Join Date
    May 2010
    Location
    banglore, india
    Posts
    6
    Rep Power
    0


    Default Re: Calculate amount of product based on entered text

    I developed for ver 1.X and it is old one. Probably minor modifications will be required if you want to use it with latest version.

Similar Threads

  1. donation product - user enters amount
    By avibodha in forum osCmax v2 Customization/Mods
    Replies: 1
    Last Post: 09-17-2007, 01:17 PM
  2. Price displays different to what is actually Entered
    By zues in forum osCmax v2 Customization/Mods
    Replies: 1
    Last Post: 11-09-2006, 12:46 PM
  3. duplicate number of orders entered.. what am i to do?
    By ogilirca in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 09-25-2006, 11:15 AM
  4. Specific Product Image based on chosen product attributes?
    By chrisrex in forum osCmax v2 Customization/Mods
    Replies: 0
    Last Post: 11-22-2005, 08:41 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •