Community Forums

[solved]delete "availability"&"product code"from productpage

Template support & advice for OpenCart v1.x

[solved]delete "availability"&"product code"from productpage

Postby Vectra » Fri May 11, 2012 9:03 pm

V1.5.2 At the top of my product pages there is "Product Code: XXXX" and "Availability: In Stock". I would like to delete both and have the next lower items "Price:" and "Available Options:" move up higher.
Here is some code from catalog/view/theme/mytheme/template/product/product.tpl:

</div>
<h1><?php echo $heading_title; ?></h1>
<div class="product-info">
<?php if ($thumb || $images) { ?>
<div class="left">
<?php if ($thumb) { ?>
<div class="image"><a href="<?php echo $popup; ?>" title="<?php echo $heading_title; ?>" class="colorbox" rel="colorbox"><img src="<?php echo $thumb; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" id="image" /></a></div>
<?php } ?>
<?php if ($images) { ?>
<div class="image-additional">
<?php foreach ($images as $image) { ?>
<a href="<?php echo $image['popup']; ?>" title="<?php echo $heading_title; ?>" class="colorbox" rel="colorbox"><img src="<?php echo $image['thumb']; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" /></a>
<?php } ?>
</div>
<?php } ?>
</div>
<?php } ?>
<div class="right">
<div class="description">
<?php if ($manufacturer) { ?>
<span><?php echo $text_manufacturer; ?></span> <a href="<?php echo $manufacturers; ?>"><?php echo $manufacturer; ?></a><br />
<?php } ?>
<span><?php echo $text_model; ?></span> <?php echo $model; ?><br />
<?php if ($reward) { ?>
<span><?php echo $text_reward; ?></span> <?php echo $reward; ?><br />
<?php } ?>
<span><?php echo $text_stock; ?></span> <?php echo $stock; ?></div>
<?php if ($price) { ?>

How can I do this?
Thank you.
Last edited by Vectra on Sat May 12, 2012 7:21 pm, edited 1 time in total.
Vectra
 
Posts: 52
Joined: Fri May 11, 2012 7:32 pm

Re: delete "availability" & "product code" from product page

Postby florinsith » Sat May 12, 2012 4:25 am

Remove the following lines from the above code:
Code: Select all
<span><?php echo $text_model; ?></span> <?php echo $model; ?><br />

Code: Select all
 <span><?php echo $text_stock; ?></span> <?php echo $stock; ?></div>
User avatar
florinsith
 
Posts: 2694
Joined: Thu May 13, 2010 6:36 pm

Re: delete "availability" & "product code" from product page

Postby Vectra » Sat May 12, 2012 7:20 pm

Thank you very much.
Vectra
 
Posts: 52
Joined: Fri May 11, 2012 7:32 pm

Re: [solved]delete "availability"&"product code"from product

Postby thecurl » Tue Sep 11, 2012 4:16 pm

This also solved my problem, thanks for the post.

Edit:
I didn't mind having the Item Code, but I have to dropship a lot of items, so I deleted the stock line as posted. It moved the price too close [for my tastes] so I modified the stock line to the following instead:
Code: Select all
<span></span></div>


That could be totallly bad programming and what not, but it looks the way I like it.
thecurl
 
Posts: 5
Joined: Sat Apr 21, 2012 2:46 am


Return to Template Support

Who is online

Users browsing this forum: No registered users and 5 guests

Hosted by Arvixe Web Hosting