Hi,
1- Open this PHP file:
/templates/YOUR_TEMPLATE/html/com_virtuemart/cart/default_pricelist.php
find these lines (lines from #252 to #265):
<br/><br/>
<div id="flexibleStepBar">
<span class="flexibleStepBarRed">4</span>
<span class="flexibleStepBarBlue"><?php echo JTEXT::_('TPL_FLEXIBLE_DISCOUNT_OPTIONAL');?></span>
</div>
<div class="checkout-content noMargin couponStep">
<input type="text" name="coupon_code" size="20" maxlength="50" class="flexibleCouponInput" autocomplete="off" placeholder="<?php echo (empty($this->cart->cartData['couponCode'])) ? JTEXT::_('TPL_FLEXIBLE_APPLY_ENTER_COUPON_CODE') : $this->cart->cartData['couponCode'];?>" value="<?php echo (empty($this->cart->cartData['couponCode'])) ? "" : $this->cart->cartData['couponCode'];?>"><br/>
<input class="flexibleButton" type="submit" name="setcoupon" title="Save" value="<?php echo (empty($this->cart->cartData['couponCode'])) ? JTEXT::_('TPL_FLEXIBLE_APPLY_DISCOUNT_CODE') : JTEXT::_('TPL_FLEXIBLE_APPLY_ANOTHER_DICSOUNT_CODE');?>" >
</div>
<div id="flexibleStepBar" class="flexibleStepBarRight">
<span class="flexibleStepBarRed turnGreen"><?php echo ($this->cart->pricesUnformatted['salesPriceCoupon']) ? $this->currencyDisplay->createPriceDiv('salesPriceCoupon','', $this->cart->pricesUnformatted['salesPriceCoupon'],true) : VmModel::getModel('currency')->getCurrency()->currency_symbol.'0.00'; ?></span>
<span class="flexibleStepBarBlue"><?php echo JTEXT::_('TPL_FLEXIBLE_DISCOUNT');?></span>
</div>
replace them with this:
<?php if (VmConfig::get ('coupons_enable')) { ?>
<br/><br/>
<div id="flexibleStepBar">
<span class="flexibleStepBarRed">4</span>
<span class="flexibleStepBarBlue"><?php echo JTEXT::_('TPL_FLEXIBLE_DISCOUNT_OPTIONAL');?></span>
</div>
<div class="checkout-content noMargin couponStep">
<input type="text" name="coupon_code" size="20" maxlength="50" class="flexibleCouponInput" autocomplete="off" placeholder="<?php echo (empty($this->cart->cartData['couponCode'])) ? JTEXT::_('TPL_FLEXIBLE_APPLY_ENTER_COUPON_CODE') : $this->cart->cartData['couponCode'];?>" value="<?php echo (empty($this->cart->cartData['couponCode'])) ? "" : $this->cart->cartData['couponCode'];?>"><br/>
<input class="flexibleButton" type="submit" name="setcoupon" title="Save" value="<?php echo (empty($this->cart->cartData['couponCode'])) ? JTEXT::_('TPL_FLEXIBLE_APPLY_DISCOUNT_CODE') : JTEXT::_('TPL_FLEXIBLE_APPLY_ANOTHER_DICSOUNT_CODE');?>" >
</div>
<div id="flexibleStepBar" class="flexibleStepBarRight">
<span class="flexibleStepBarRed turnGreen"><?php echo ($this->cart->pricesUnformatted['salesPriceCoupon']) ? $this->currencyDisplay->createPriceDiv('salesPriceCoupon','', $this->cart->pricesUnformatted['salesPriceCoupon'],true) : VmModel::getModel('currency')->getCurrency()->currency_symbol.'0.00'; ?></span>
<span class="flexibleStepBarBlue"><?php echo JTEXT::_('TPL_FLEXIBLE_DISCOUNT');?></span>
</div>
<?php } ?>
If the Coupon Feature is disabled from VM Configurations, then the coupon-bar gets disappeared from the shopping cart page. (FYI: This patch will be added permanently to the CleanMart v3.9.3 -- the upcoming version)
2- From the
VM configuration >> Checkout (1st screenshot), enable this option:
On checkout, ask for registration (pocas objednavky vyžaduje registraciu) then you will get the "Login / Register" bar on cart.
regards.
Support