Post by jclout » Mon Dec 01, 2014 2:41 am

Just installed OC 2.0.1.0
I am new to OC but have been doing a lot of research and installed OC 2.0.0.0 before to play around with it.

I am making a store for a granite company.

What I need to do is:
Show slabs, sinks, ect(Products) for customers to select with no price showing
Show vanity tops with pricing

The way I thought about doing this was to:
Create a new layout named product-slab
Copy, modify and rename catalog/view/theme/default/template/product/product.tpl to product-slab,tpl
With the product(slab) change the Layout Override to product/product-slab

This doesn't work.
Any ideas how to get what I am looking for?

Thank you

Newbie

Posts

Joined
Sat Nov 29, 2014 11:25 pm

Post by pprmkr » Mon Dec 01, 2014 3:17 am

Would you like to hide price and add to cart button and instead show another button ?
Something like this ?

User avatar
Active Member

Posts

Joined
Sat Jan 08, 2011 11:05 pm
Location - Netherlands

Post by jclout » Mon Dec 01, 2014 3:49 am

No I need the "Add to Cart" button.

This is for a wholesale company. The customer will be able to select their slabs for their countertops. The countertops where all quoted and pricing set elsewhere. Also on the same site and for the same customers they want to be able to order vanity tops that will show the pricing.
The vanities have a fixed price and the customer would like to see this before placing the order but the slabs pricing vary by the job not the slab.

I was thinking about possibly using a multi-store? Not sure but just looking into this now.

Newbie

Posts

Joined
Sat Nov 29, 2014 11:25 pm

Post by jclout » Mon Dec 01, 2014 6:11 am

Solved:

A little code work in the product.tpl file and presto

Code: Select all

<?php if ($price != "$0.00") { ?>
			  <?php if ($price) { ?>
			  <ul class="list-unstyled">
				<?php if (!$special) { ?>
				<li>
				  <h2><?php echo $price; ?></h2>
				</li>
				<?php } else { ?>
				<li><span style="text-decoration: line-through;"><?php echo $price; ?></span></li>
				<li>
				  <h2><?php echo $special; ?></h2>
				</li>
				<?php } ?>
				<?php if ($tax) { ?>
				<li><?php echo $text_tax; ?> <?php echo $tax; ?></li>
				<?php } ?>
				<?php if ($points) { ?>
				<li><?php echo $text_points; ?> <?php echo $points; ?></li>
				<?php } ?>
				<?php if ($discounts) { ?>
				<li>
				  <hr>
				</li>
				<?php foreach ($discounts as $discount) { ?>
				<li><?php echo $discount['quantity']; ?><?php echo $text_discount; ?><?php echo $discount['price']; ?></li>
				<?php } ?>
				<?php } ?>
    <?php } ?>

Newbie

Posts

Joined
Sat Nov 29, 2014 11:25 pm
Who is online

Users browsing this forum: No registered users and 3 guests