Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

Santa Cruz Theme displays Regular Prices as of Web Store 3.2.6

James Pickard edited this page Apr 16, 2015 · 1 revision

Store owners can set a web price for their products in Web Store. The 'Regular Price' field shows up on a product's page when it has a web price lower than its original selling price. The Santa Cruz theme does not display that field when it should. Changes to version 3.2.6 of Web Store fix that issue. Stores that have a modified theme based on Santa Cruz will need to manually change the product's view index.php file to fix the issue:

Before the fix to /views/product/index.php:

<?php if (!$model->SlashedPrice || ($model->SlashedPrice == $model->Price) /*&& !$model->IsMaster*/): ?>
    <div id="slashed-price" class="row">
        <?= CHtml::tag('div',array('id'=>CHtml::activeId($model,'FormattedRegularPrice').'_wrap','class'=>'price_reg col-sm-6'),
    //                        'style'=>(!$model->SlashedPrice ? 'display:none' : '')),
    Yii::t('product', 'Regular').": ".
    CHtml::tag('span',array('id'=>CHtml::activeId($model,'FormattedRegularPrice'), 'class'=>'price_slash'),$model->SlashedPrice)); ?>
        </div>
<?php endif; ?>

The fix to /views/product/index.php:

<div id="slashed-price" class="row">
    <?= CHtml::tag('div',array('id'=>CHtml::activeId($model,'FormattedRegularPrice').'_wrap','class'=>'price_reg col-sm-6'), 'style'=>(!$model->SlashedPrice ? 'display:none' : '')),
    Yii::t('product', 'Regular').": ". CHtml::tag('span',array('id'=>CHtml::activeId($model,'FormattedRegularPrice'), 'class'=>'price_slash'),$model->SlashedPrice)); ?>
</div>
Clone this wiki locally