MU WebShop Development coded by Savoy

Results 1 to 5 of 5
  1. #1
    Proficient Member naphy is offline
    MemberRank
    Apr 2012 Join Date
    165Posts

    MU WebShop Development coded by Savoy

    Hi what is the latest webshop that develope by savoy with socket option?
    Or can you teach me how to code this one.
    This from webshop page source that I saw..

    //====== Jewel Of Harmony =====================

    function johChanged(sender)

    {

    var opt = sender.options[sender.selectedIndex];



    var johValue = document.getElementById('johValue');

    johValue.options.length = 0;

    johValue.style.display = 'none';



    if (parseInt(opt.value,16) > 0)

    {

    var values = document.getElementById('joh'+opt.value).value.split('|');

    for (i=0; i<values.length; i++)

    {

    if (values[i] == '') continue;

    valueParts = values[i].split(':');

    johValue.options[i] = new Option(opt.text + ' ' + valueParts[1], valueParts[0]);

    }



    johValue.style.display = '';

    }



    updateJoHPrice();

    }



    function johValueChanged(sender)

    {

    updateJoHPrice();

    }



    function updateJoHPrice()

    {

    var johc = calculateHarmonyCredits();

    document.getElementById('johc').innerHTML = johc == 0 ? johc : '<b>'+johc+'</b>';

    checkall();

    }



    function calculateHarmonyCredits()

    {

    var johType = document.getElementById('johType');

    if (!johType) return 0;



    var johValue = document.getElementById('johValue');



    var optType = johType.options[johType.selectedIndex];

    if (optType.value == 0) return 0;



    var optValue = johValue.options[johValue.selectedIndex];



    return 1500 + parseInt(optValue.value, 16) * 200;

    }

    //====== Jewel Of Harmony =====================

    //====== Sokets ===============================

    function calculateSocketCredits(optValue)

    {

    if (optValue >= 0 && optValue < 50) return 1000;

    if (optValue >= 50 && optValue < 100) return 1300;

    if (optValue >= 100 && optValue < 150) return 1500;

    if (optValue >= 150 && optValue < 200) return 1800;

    if (optValue >= 200 && optValue < 254) return 2000;



    if (optValue == 254) return 0;



    return 0;

    }





    function socketChanged(sNumber)

    {

    var ddl = document.getElementById('socket'+sNumber);

    var opt = ddl.options[ddl.selectedIndex];



    var sc = calculateSocketCredits(opt.value);

    document.getElementById('s'+sNumber+'c').innerHTML = sc == 0 ? sc : '<b>'+sc+'</b>';

    checkall();

    }



    //====== Sokets ===============================


    Can Anyone decode it and put Like this..

    ================================================
    This is the Sample.. I get it by web page source..

    function doitnow7(asd) {

    credits = Math.ceil(document.getElementById('credit_check').value);

    if (asd==1) {

    oput = '<b>'+500+'</b>';

    }

    else if (asd==2) {

    oput = '<b>'+500+'</b>';

    }

    else if (asd==3) {

    oput = '<b>'+3000+'</b>';

    }

    else oput = '0';

    if (asd==1) {

    credits = credits + 500;

    }

    else if (asd==2) {

    credits = credits + 500;

    }


    And this is the code that I have in my Webshop/inc/index.itemheader.php

    ===========================================
    function doitnow7(asd) {
    credits = Math.ceil(document.getElementById(\'credit_check\').value);
    if (asd==1) {
    oput = \'<b>\'+'.$webshop['credits']['fenrir_destroy'].'+\'</b>\';
    }
    else if (asd==2) {
    oput = \'<b>\'+'.$webshop['credits']['fenrir_protect'].'+\'</b>\';
    }
    else if (asd==3) {
    oput = \'<b>\'+'.$webshop['credits']['golden_fenrir'].'+\'</b>\';
    }
    else oput = \'0\';
    if (asd==1) {
    credits = credits + '.$webshop['credits']['fenrir_destroy'].';
    }
    else if (asd==2) {
    credits = credits + '.$webshop['credits']['fenrir_protect'].';
    }
    document.getElementById(\'exlc\').innerHTML=oput;
    document.getElementById(\'shopspan\').innerHTML=credits;

    ===========================================

    Did you get what I want?? I notice that in webpage source That the number is converted with my SQL database.. like this
    '.$webshop['credits']['fenrir_destroy'].'

    Please I want to make my shop to have a socket option and Jewel of harmony option thanks..
    Looking forward for some who can put his (index.itemheader.php)


  2. #2
    Proficient Member naphy is offline
    MemberRank
    Apr 2012 Join Date
    165Posts

    Re: MU WebShop Development coded by Savoy

    ???????????????????????

  3. #3
    INPHINITY IcheBeShino is offline
    MemberRank
    Nov 2011 Join Date
    PhilippinesLocation
    301Posts

    Re: MU WebShop Development coded by Savoy

    ? are you crazy?

  4. #4

    Re: MU WebShop Development coded by Savoy

    naphy dont waste ur time with that . use mucore which it has already webshop with sockets?

  5. #5
    Valued Member KrYsSu is offline
    MemberRank
    Jan 2012 Join Date
    RomaniaLocation
    114Posts

    Re: MU WebShop Development coded by Savoy

    First you need a good codding ! So go to section Codding Paradise and ask codding developement !


    Good Luck !



Advertisement