Osclass Support Forums

Osclass theme support => Free themes => Elena Osclass Responsive Theme => Topic started by: Daniel Petre on June 22, 2018, 08:12:06 PM

Title: Price - Select Option
Post by: Daniel Petre on June 22, 2018, 08:12:06 PM
I would like to add some options price:
I tried but did not take my order and does not display ..
I added in item.post and item.edit

 <option value="3"><?php _e('Negociable', 'elena'); ?></option>
 <option value="4"><?php _e('/ Piece', 'elena'); ?></option>
 <option value="5"><?php _e('/ Person', 'elena'); ?></option>
 <option value="6"><?php _e('/ Hour', 'elena'); ?></option>
 <option value="7"><?php _e('/ Kilo', 'elena'); ?></option>
 <option value="8"><?php _e('/ Month', 'elena'); ?></option>

and


else if (document.getElementById("PriceSelect").value == 3) {
        document.getElementById("price").readOnly=false;
        document.getElementById("price").style.backgroundColor="#fff";
        document.getElementById("price").style.color="#000";
      }else if (document.getElementById("PriceSelect").value == 4) {
        document.getElementById("price").readOnly=false;
        document.getElementById("price").style.backgroundColor="#fff";
        document.getElementById("price").style.color="#000";
      }else if (document.getElementById("PriceSelect").value == 5) {
        document.getElementById("price").readOnly=false;
        document.getElementById("price").style.backgroundColor="#fff";
        document.getElementById("price").style.color="#000";
      }else if (document.getElementById("PriceSelect").value == 6) {
        document.getElementById("price").readOnly=false;
        document.getElementById("price").style.backgroundColor="#fff";
        document.getElementById("price").style.color="#000";
      }else if (document.getElementById("PriceSelect").value == 7) {
        document.getElementById("price").readOnly=false;
        document.getElementById("price").style.backgroundColor="#fff";
        document.getElementById("price").style.color="#000";
      }else if (document.getElementById("PriceSelect").value == 8) {
        document.getElementById("price").readOnly=false;
        document.getElementById("price").style.backgroundColor="#fff";
        document.getElementById("price").style.color="#000";
      }

and is not working
you can help me with what I am not doing correct
or I still have to change something else
Title: Re: Price - Select Option
Post by: Daniel Petre on June 25, 2018, 11:30:18 AM
Someone some help .
Title: Re: Price - Select Option
Post by: MB Themes on June 25, 2018, 11:38:25 AM
@Daniel
There are only 3 types of values osclass support in price:
- blank: check with seller
- 0: free
- > 0 : show amount
Title: Re: Price - Select Option
Post by: Daniel Petre on June 26, 2018, 10:19:32 AM
Ok thank s
I did not know that only three variants supported osclass.