public function setFunction($value, $value2 = null)
 {
     global $lC_Language;
     if (utility::isPro() === false) {
         $string = '<span class="input large-margin-bottom">
                <span class="icon-calendar mid-margin-right"></span>
                ' . lc_draw_input_field('attributes[' . self::getID() . ']', $value, 'id="attributes_' . self::getID() . '" class="input-unstyled datepicker"') . '
              </span>
              <span class="input relative disabled date-available-ends margin-bottom">
                <span class="icon-calendar mid-margin-right"></span>
                <div class="strong upsellwrapper" style="position:absolute;top:-29px;left:0px;">
                  <span class="upsellinfo" upselltitle="' . $lC_Language->get('text_availability_ends') . '" upselldesc="' . $lC_Language->get('text_availability_ends_desc') . '">Ends</span> ' . lc_go_pro() . '
                </div>
                ' . lc_draw_input_field('availability_ends_go_pro', null, 'id="availability_ends_go_pro" class="input-unstyled" disabled') . '
              </span>
              ';
     } else {
         $string = '<div class="no-wrap"><span class="input large-margin-bottom" style="width:46%;">
                <span class="icon-calendar mid-margin-right"></span>
                ' . lc_draw_input_field('attributes[' . self::getID() . ']', $value, 'id="attributes_' . self::getID() . '" class="input-unstyled datepicker"') . '
              </span>
              <span class="input relative date-available-ends margin-bottom" style="width:46%;">
                <span class="icon-calendar mid-margin-right"></span>
                <div class="strong" style="position:absolute;top:-29px;left:0px;">
                  <span>Ends</span>
                </div>
                ' . lc_draw_input_field('attributes2[' . self::getID() . ']', $value2, 'id="attributes2_' . self::getID() . '" class="input-unstyled datepicker"') . '
              </span></div>
              ';
     }
     return $string;
 }
Example #2
0
<?php

/**
  @package    catalog::admin::applications
  @author     Loaded Commerce
  @copyright  Copyright 2003-2014 Loaded Commerce, LLC
  @copyright  Portions Copyright 2003 osCommerce
  @copyright  Template built on Developr theme by DisplayInline http://themeforest.net/user/displayinline under Extended license 
  @license    https://github.com/loadedcommerce/loaded7/blob/master/LICENSE.txt
  @version    $Id: main.php v1.0 2013-08-08 datazen $
*/
require_once $lC_Vqmod->modCheck('includes/applications/orders/classes/orders.php');
require_once $lC_Vqmod->modCheck('includes/applications/manufacturers/classes/manufacturers.php');
if (utility::isPro() == true || utility::isB2B() == true) {
    $note = '';
} else {
    $note = '<p class="message icon-speech orange-gradient">&nbsp;' . $lC_Language->get('text1') . '<span class="upsellinfo" upselltitle="' . $lC_Language->get('text_class_upsell_title') . '" upselldesc="' . $lC_Language->get('text_additional_images_upsell_desc') . '"></span>' . lc_go_pro() . '&nbsp;&nbsp;' . $lC_Language->get('text2') . '<span class="upsellinfo" upselltitle="' . $lC_Language->get('text_class_upsell_title') . '" upselldesc="' . $lC_Language->get('text_class_upsell_desc') . '"></span>' . lc_go_pro() . $lC_Language->get('text3') . '</p>';
}
$breakout = '<span class="breakout-wrapper">
               <span class="anthracite with-small-padding no-wrap" name="breakout_by" id="breakout_by">' . $lC_Language->get("text_breakout_by") . '</span>
               <label class="no-wrap">
                 <input type="radio" class="radio" id="breakout" name="breakout" value = "class">
                 <span class="anthracite with-small-padding space">' . $lC_Language->get("text_class") . '</span>
                 ' . lc_go_pro() . '
               </label>
               <label class="no-wrap">
                 <input type="radio" class="radio" id="breakout" name="breakout" value="supplier">
                 <span class="anthracite with-small-padding">' . $lC_Language->get("text_supplier") . '</span>
                 <span class="upsellinfo" upselltitle="' . $lC_Language->get('text_class_upsell_title') . '" upselldesc="' . $lC_Language->get('text_class_upsell_desc') . '"></span>
                 ' . lc_go_pro() . '
               </label>
Example #3
0
        </div>
      </div>
    </div>
  </fieldset>
  <fieldset class="fieldset">
    <legend class="legend"><?php 
echo $lC_Language->get('text_management_settings');
?>
</legend>
    <div class="columns no-margin-bottom">
      <?php 
echo lC_Products_Admin::getProductAttributeModules('dataManagementSettings');
?>
      <div class="new-row-mobile six-columns six-columns-tablet twelve-columns-mobile no-margin-bottom">
      <?php 
if (utility::isPro() === false) {
    ?>
        <div class="twelve-columns strong mid-margin-bottom upsellwrapper">
          <span class="upsellinfo" upselltitle="<?php 
    echo $lC_Language->get('text_product_class_upsell_title');
    ?>
" upselldesc="<?php 
    echo $lC_Language->get('text_product_class_upsell_desc');
    ?>
"><?php 
    echo $lC_Language->get('text_product_class') . lc_go_pro();
    ?>
</span>
          <?php 
    echo lc_show_info_bubble($lC_Language->get('info_bubble_data_product_class'));
    ?>
Example #4
0
 public function format($number, $currency_code = '', $currency_value = '')
 {
     global $lC_Language;
     if (empty($currency_code) || $this->exists($currency_code) == false) {
         $currency_code = isset($_SESSION['currency']) ? $_SESSION['currency'] : DEFAULT_CURRENCY;
     }
     if (empty($currency_value) || is_numeric($currency_value) == false) {
         $currency_value = $this->currencies[$currency_code]['value'];
     }
     $number_value = number_format(lc_round($number * $currency_value, $this->currencies[$currency_code]['decimal_places']), $this->currencies[$currency_code]['decimal_places'], $lC_Language->getNumericDecimalSeparator(), $lC_Language->getNumericThousandsSeparator());
     // rounding rule
     if ((utility::isPro() === true || utility::isB2B() === true) && defined('PRO_SETTINGS_ROUNDING_RULES') && PRO_SETTINGS_ROUNDING_RULES != '') {
         // determine the current price parts
         $currentPriceValue = lc_round($number * $currency_value, $this->currencies[$currency_code]['decimal_places']);
         $priceParts = explode('.', $currentPriceValue);
         $dollarPrice = $priceParts[0];
         $centsPrice = $priceParts[1];
         // get the rounding rules
         $rules = unserialize(PRO_SETTINGS_ROUNDING_RULES);
         if (is_array($rules[$this->getCode()])) {
             if ($rules[$this->getCode()]['status'] == 'on' || $rules[$this->getCode()]['status'] == '1') {
                 $roundto = $rules[$this->getCode()]['roundto'];
                 $level = $rules[$this->getCode()]['level'];
                 switch ($level) {
                     case '0':
                         // ###.#0
                         $number_value = number_format((double) (substr((string) $number_value, 0, -($level + 1)) . str_replace(array('.', '#'), '', $roundto)), DECIMAL_PLACES);
                         break;
                     case '1':
                         // ###.00
                         $number_value = number_format((double) (substr((string) $number_value, 0, -($level + 1)) . str_replace(array('.', '#'), '', $roundto)), DECIMAL_PLACES);
                         break;
                     case '2':
                         // ##0.00
                         if (strstr($roundto, '.')) {
                             $parts = explode('.', $roundto);
                             $rDollar = (string) $parts[0];
                             $rCents = (string) $parts[1];
                             $number_value = (double) (substr($dollarPrice, 0, -1) . $rDollar . '.' . $rCents);
                         }
                         break;
                     case '3':
                         // #00.00
                         if (strstr($roundto, '.')) {
                             $parts = explode('.', $roundto);
                             $rDollar = (string) $parts[0];
                             $rCents = (string) $parts[1];
                             $number_value = (double) (substr($dollarPrice, 0, -2) . $rDollar . '.' . $rCents);
                         }
                         break;
                     case '4':
                         // 000.00
                         if (strstr($roundto, '.')) {
                             $parts = explode('.', $roundto);
                             $rDollar = (string) $parts[0];
                             $rCents = (string) $parts[1];
                             $number_value = (double) (substr($dollarPrice, 0, -3) . $rDollar . '.' . $rCents);
                         }
                         break;
                 }
             }
         }
     }
     return $this->currencies[$currency_code]['symbol_left'] . $number_value . $this->currencies[$currency_code]['symbol_right'];
 }
echo $lC_Language->get('text_lost_password_instructions');
?>
</p>
          <p class=" align-center mid-margin-bottom"><button type="submit" class="button glossy green-gradient full-width"><?php 
echo $lC_Language->get('button_back_to_login');
?>
</button></p>
        </form>
      </div>
    </div>
  </div>
  <div id="copyright-msg">
    <p class="anthracite" align="center" style="line-height:1.5;">Copyright &copy; <?php 
echo @date("Y");
?>
 <a class="anthracite" href="http://www.loaded7.com">Loaded Commerce</a><br /><?php 
echo $lC_Language->get('text_core') . ' ' . $lC_Language->get('text_version') . ' ' . utility::getVersion();
if (utility::isPro() === true) {
    echo '<small class="tag red-gradient mid-margin-left mid-margin-right">PRO</small>' . $lC_Language->get('text_version') . ' ' . utility::getProVersion();
}
?>
</p>
    <p class="anthracite" align="center"><a class="anthracite" href="http://loadedcommerce.com/support" target="_blank"><?php 
echo $lC_Language->get('text_get_support');
?>
</a> - <a class="anthracite" href="http://loadedcommerce.com" target="_blank"><?php 
echo $lC_Language->get('text_get_more_loaded');
?>
</a></p>
  </div>
</div>
Example #6
0
echo $lC_Currencies->getSymbolLeft();
?>
</span>
        <input type="text" onfocus="this.select();" onchange="updatePricingDiscountDisplay();" class="input-unstyled" name="products_base_price" id="products_base_price" value="<?php 
echo isset($pInfo) ? number_format(lc_round($pInfo->get('products_price'), DECIMAL_PLACES), DECIMAL_PLACES) : null;
?>
" class="input strong" onblur="$('#products_price0').val(this.value);" />
      </div>    
      <?php 
echo lc_show_info_bubble($lC_Language->get('info_bubble_pricing_base_price'), null, 'info-spot on-left grey margin-left');
?>
    </div>

    <div class="upsellwrapper field-block field-block-product button-height">
      <?php 
if (utility::isPro() === false || utility::isB2B() === false) {
    ?>
        <label upselltitle="<?php 
    echo $lC_Language->get('text_group_pricing');
    ?>
" upselldesc="<?php 
    echo $lC_Language->get('text_group_pricing_desc');
    ?>
" for="" class="label upsellinfo"><b><?php 
    echo $lC_Language->get('text_group_pricing');
    ?>
</b></label>
      <?php 
}
?>
      <label for="groups_pricing_switch" class="label"><b><?php 
Example #7
0
                      oTable.fnReloadAjax();
                    }
                  );
                  win.closeModal();
                }
              }
            }
          },
          buttonsLowPadding: true
      });
      $("#module").empty();  // clear the old values
      i = 0;
      $.each(data.modulesArray, function(val, text) {
        var text = text.replace(/_/g, " ").replace(/\b./g, function(m){ return m.toUpperCase(); });
        var isPro = '<?php 
echo utility::isPro();
?>
';
        if(i == 0) {
          $("#module").closest("span + *").prevAll("span.select-value:first").text(text);
          i++;
        }
        if ( isPro == false  && (val == 'file_upload' || val == 'multiple_file_upload')) text = text + ' (PRO)';
        $("#module").append(
          $('<option></option>').val(val).html(text)
        );
      });
      $("#groupNames").html(data.groupNames);
    }
  );
}
Example #8
0
 public static function getProVersionTag()
 {
     global $lC_Language;
     if (utility::isB2B()) {
         return '<small class="tag orange-gradient mid-margin-left mid-margin-right">B2B</small>' . $lC_Language->get('text_version') . ' ' . utility::getB2BVersion();
     } else {
         if (utility::isPro()) {
             return '<small class="tag red-gradient mid-margin-left mid-margin-right">PRO</small>' . $lC_Language->get('text_version') . ' ' . utility::getProVersion();
         }
     }
 }
Example #9
0
'   
    
  var group = '<?php 
echo DEFAULT_CUSTOMERS_GROUP_ID;
?>
';
  var id = '<?php 
echo $lC_Product->getID();
?>
';
  var module = '<?php 
echo $lC_Template->getModule();
?>
';
  var isPro = '<?php 
echo utility::isPro() == true ? 1 : 0;
?>
';
  var nvp = $('#cart_quantity').serialize();
  var jsonLink = '<?php 
echo lc_href_link('rpc.php', 'products&action=getPriceInfo&id=PID&group=GROUP&NVP', 'AUTO');
?>
';   
  $.getJSON(jsonLink.replace('PID', id).replace('GROUP', group).replace('NVP', nvp).split('amp;').join(''),
    function (data) {
    var currencySymbolLeft = '<?php 
echo $lC_Currencies->getSymbolLeft();
?>
';
      var basePrice = currencySymbolLeft + data.price; 
      if (data.formatted != null) {