Move price over add to cart button

Tagged: 

ThemeBurn SupportForumsOpenCart ThemesPavilion OpenCart ThemeMove price over add to cart button

This topic has been marked as resolved.

Hi

I’m trying to move the price over the add to cart button. Im moving the code above. But i cant get it. Any suggestions?


<?php // Product Price ------------------------------------------------ ?>

  <?php $tbData->slotStart('product/product.product_price', array('data' => $data)); ?>
  <?php if ($price) { ?>
  <div id="product_price" class="tb_price_holder tb_size_4 tb_label">
    <?php $price = $tbData->priceFormat($price); ?>
    <?php if (!$special) { ?>
    <p class="tb_price" itemprop="offers" itemscope itemtype="http://schema.org/Offer">
      <span itemprop="availability" content="<?php echo str_replace(' ', '', strip_tags($stock)); ?>"></span>
      <span itemprop="price"><?php echo $price; ?></span>
    </p>
    <?php } else { ?>
    <?php $special = $tbData->priceFormat($special); ?>
    <p class="tb_price tb_promo_price" itemprop="offers" itemscope itemtype="http://schema.org/Offer">
      <span itemprop="availability" content="<?php echo str_replace(' ', '', strip_tags($stock)); ?>"></span>
      <span class="tb_old_price"><?php echo $price; ?></span>
      <span itemprop="price"><?php echo $special; ?></span>
    </p>
    <?php } ?>
    <?php if ($tax) { ?>
    <p class="tb_price_tax"><?php echo $text_tax; ?> <span><?php echo $tax; ?></span></p>
    <?php } ?>
    <?php if ($points) { ?>
    <p class="tb_reward_points"><small><?php echo $text_points; ?> <?php echo $points; ?></small></p>
    <?php } ?>
  </div>
  <?php } ?>
  <?php $tbData->slotStop(); ?>

April 16, 2015 at 5:29 pm #40081

Hi,

Try to move only the price:

<?php if ($price) { ?>
.....
<?php } ?>

and to delete the empty slot that is left:

<?php $tbData->slotStart('product/product.product_price', array('data' => $data)); ?>
<?php $tbData->slotStop(); ?>

BR,
ThemeBurn team

April 20, 2015 at 5:34 pm #40201
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.