Jump to content

ciumexan

Members
  • Content count

    7
  • Joined

  • Last visited

Profile Information

  • Real Name
    Ciumex Xan
  1. ciumexan

    [Contribution] STS v4

    helllo back i've posted a q. before sorry for double post maybe you missed me... if I put like that in sts_user_code: $sts->template['specialprice'] = "<div style=\"float:left;z-index:100;margin-left:0px;margin-top:-80px;position:relative;font-size:20px;font-weight:bold;font-family:Georgia;color:#fff;width:150;height:74px;padding-top:30px;padding-left:25px;text-align:justify;background:url(/img/pret.png) no-repeat;\">" . $sts->template['specialprice'] . "</div>"; it still shows me with no <div> ... only the price .... what i am doing wrong ? And another thing: My main concern is how to get the values from the sts variable / to know if a variable is 0 or 1 for example, in order to run a php function. Thanks.
  2. ciumexan

    [Contribution] STS v4

    Another q. and i'm done.. :) if I put like that in sts_user_code.php: $sts->template['specialprice'] = "<div style=\"float:left;z-index:100;margin-left:0px;margin-top:-80px;position:relative;font-size:20px;font-weight:bold;font-family:Georgia;color:#fff;width:150;height:74px;padding-top:30px;padding-left:25px;text-align:justify;background:url(/img/pret.png) no-repeat;\">" . $sts->template['specialprice'] . "</div>"; it still shows me with no <div> ... only the price .... when i put in template $specialprice. what i am doing wrong ? :huh: i'm in total darkness, show me the light bill :)
  3. ciumexan

    [Contribution] STS v4

    :huh: if I put like that in sts_user_code: $sts->template['specialprice'] = "<div style=\"float:left;z-index:100;margin-left:0px;margin-top:-80px;position:relative;font-size:20px;font-weight:bold;font-family:Georgia;color:#fff;width:150;height:74px;padding-top:30px;padding-left:25px;text-align:justify;background:url(/img/pret.png) no-repeat;\">" . $sts->template['specialprice'] . "</div>"; it still shows me with no <div> ... only the price .... what i am doing wrong ? :unsure: Thanks.
  4. ciumexan

    [Contribution] STS v4

    Thanks bill What i am trying to do is to check if the price has one value :-& For example if the value of $regularprice$ is 40 i will render a green button etc.... I need to extract the value in php... and i need it in template.. i feel is faster... So what do you think i should do ? STS is a very nice tool indeed, keep the good work.
  5. ciumexan

    [Contribution] STS v4

    Hello One simple question if anyone can help ... in STS template I have variables like that: $regularprice$ or $specialprice$ how can i access them from the template, in order to use them ? i tried <? echo $regularprice; ?> but id doesn't work... in the sts template of product_info.php.html i have other php code that really work (echo, product images etc....) but i don;t know how to access the STS variable s from php/// Anyone can help ? Thanks a lot.
  6. ciumexan

    [Contribution] STS v4

    Hello it may be a newbie quiz but i'm kinda desperate here! i've search the forum for answers maybe i'm not searching where i should... :( I really need to know how to call a STS defined variable in php! description: i "have product_info.php" like so: ================== <?php DEFINE ('STS_CONTENT_END_CHAR', '$'); ?> $startform$ <br>$productname$ <br>$productmodel$ <div align="center">$product_popup$</div> <br>Price: $regularprice$ $specialprice$ <br>Desc: $productdesc$ ID produs in baza: $productsid$ $endform$ ================ i really need to call $productdesc$ for example in php ... (trim it, etc) do i do domething like (in the same file) <? echo $productdesc; ?> but i don't see no output at all! How can i get that?... or any other sts variable? please help asap as i'm in a desperate situation... Thank you very very much :huh:
×