Post by gunset » Fri Apr 01, 2011 7:15 pm

Hi there.
Is there a way to make opencart as a 'showroom' not as a store... So it only needs a display etc but no check out or payment or shipping etc needed, visitor only needs to see the stuff and information.. Is it possible in opencart 1.4.7? thanks for the response..

ps. if you want to see my website it's in www.litama.com I intend to make a property/land showroom. It's almost imposible to make an online selling( especially payment with credit card or even paypal..), It needs only display and information

New member

Posts

Joined
Fri Jan 08, 2010 2:32 pm

Post by gunset » Thu Apr 07, 2011 12:03 pm

help requested.. :) :D

New member

Posts

Joined
Fri Jan 08, 2010 2:32 pm

Post by rupaknpl » Thu Apr 07, 2011 1:27 pm

I am novice but what i think is just remove some code from the product page and shopping cart modules.
Thanking You

Rupak Nepali
http://nepalrupak.blogspot.com
http://rupaknpl.blogspot.com


Newbie

Posts

Joined
Sun Mar 20, 2011 1:36 pm

Post by gunset » Thu Apr 07, 2011 2:32 pm

rupaknpl wrote:I am novice but what i think is just remove some code from the product page and shopping cart modules.
Thanking You
I don't want to be a lazy person, but could you please inform me which code to be deleted? thanks.

New member

Posts

Joined
Fri Jan 08, 2010 2:32 pm

Post by rupaknpl » Thu Apr 07, 2011 6:37 pm

Things to be do:

Go to admin page Extensions>>Modules>>Cilck the Edit of the "Cart " and make it disable. so that the right column will not show the shopping cart.

Remove the following line
"
<a onclick="$('#product').submit();" id="add_to_cart" class="button"><span><?php echo $button_add_to_cart; ?></span></a>

"

from the product detail page.

Product detail page is at
catalog/view/theme/default/template/product/product.tpl

Hope it will work

Rupak Nepali
http://nepalrupak.blogspot.com
http://rupaknpl.blogspot.com


Newbie

Posts

Joined
Sun Mar 20, 2011 1:36 pm

Post by gunset » Thu Apr 07, 2011 7:32 pm

rupaknpl wrote:Things to be do:

Go to admin page Extensions>>Modules>>Cilck the Edit of the "Cart " and make it disable. so that the right column will not show the shopping cart.

Remove the following line
"
<a onclick="$('#product').submit();" id="add_to_cart" class="button"><span><?php echo $button_add_to_cart; ?></span></a>

"

from the product detail page.

Product detail page is at
catalog/view/theme/default/template/product/product.tpl

Hope it will work

thanks for the advice.. I'll give the report once I do it...

New member

Posts

Joined
Fri Jan 08, 2010 2:32 pm

Post by gunset » Thu Apr 07, 2011 7:39 pm

great mate... it workss!!! really really works!! thanks for the advice.. one more thing.. the box qty still showed. can I make it disappear?

New member

Posts

Joined
Fri Jan 08, 2010 2:32 pm

Post by rupaknpl » Mon Apr 11, 2011 7:30 pm

You just remove the form in the Product detail page:
catalog/view/theme/default/template/product/product.tpl

or remove the following code


<?php if ($display_price) { ?>
<form action="<?php echo str_replace('&', '&', $action); ?>" method="post" enctype="multipart/form-data" id="product">
<?php if ($options) { ?>
<b><?php echo $text_options; ?></b><br />
<div style="background: #FFFFCC; border: 1px solid #FFCC33; padding: 10px; margin-top: 2px; margin-bottom: 15px;">
<table style="width: 100%;">
<?php foreach ($options as $option) { ?>
<tr>
<td><?php echo $option['name']; ?>:<br />
<select name="option[<?php echo $option['option_id']; ?>]">
<?php foreach ($option['option_value'] as $option_value) { ?>
<option value="<?php echo $option_value['option_value_id']; ?>"><?php echo $option_value['name']; ?>
<?php if ($option_value['price']) { ?>
<?php echo $option_value['prefix']; ?><?php echo $option_value['price']; ?>
<?php } ?>
</option>
<?php } ?>
</select></td>
</tr>
<?php } ?>
</table>
</div>
<?php } ?>
<?php if ($display_price) { ?>
<?php if ($discounts) { ?>
<b><?php echo $text_discount; ?></b><br />
<div style="background: #F7F7F7; border: 1px solid #DDDDDD; padding: 10px; margin-top: 2px; margin-bottom: 15px;">
<table style="width: 100%;">
<tr>
<td style="text-align: right;"><b><?php echo $text_order_quantity; ?></b></td>
<td style="text-align: right;"><b><?php echo $text_price_per_item; ?></b></td>
</tr>
<?php foreach ($discounts as $discount) { ?>
<tr>
<td style="text-align: right;"><?php echo $discount['quantity']; ?></td>
<td style="text-align: right;"><?php echo $discount['price']; ?></td>
</tr>
<?php } ?>
</table>
</div>
<?php } ?>
<?php } ?>
<div class="content">
<?php echo $text_qty; ?>
<input type="text" name="quantity" size="3" value="<?php echo $minimum; ?>" />
<a onclick="$('#product').submit();" id="add_to_cart" class="button"><span><?php echo $button_add_to_cart; ?></span></a>
<?php if ($minimum > 1) { ?><br/><small><?php echo $text_minimum; ?></small><?php } ?>
</div>
<div>
<input type="hidden" name="product_id" value="<?php echo $product_id; ?>" />
<input type="hidden" name="redirect" value="<?php echo str_replace('&', '&', $redirect); ?>" />
</div>
</form>
<?php } ?>

Rupak Nepali
http://nepalrupak.blogspot.com
http://rupaknpl.blogspot.com


Newbie

Posts

Joined
Sun Mar 20, 2011 1:36 pm

Post by gunset » Wed Apr 13, 2011 7:47 pm

^^^^
done it and works well.. I'll make the glossary of these thread so people can read easier and apply the suggestion you gave me... hope it works to for them...
ps. if you have time could you please spare your time to see my website at www.litama.com and I hoping your valueable comments. thanks in advance, It''s very generous of you..

New member

Posts

Joined
Fri Jan 08, 2010 2:32 pm

Post by gunset » Sat Apr 16, 2011 11:37 am

The summary to delete the 'cart' function, so your website will be function as a showroom only. view the sample website at www.litama.com. great thanks for rupaknpl for all suggestion.

1. Go to admin page Extensions>>Modules>>Cilck the Edit of the "Cart " and make it disable. so that the right column will not show the shopping cart.

2. Go to : catalog/view/theme/default/template/product/product.tpl
Remove the following line

Code: Select all

 
<a onclick="$('#product').submit();" id="add_to_cart" class="button"><span><?php echo $button_add_to_cart; ?></span></a>
3. Delete the QTY box
go to : catalog/view/theme/default/template/product/product.tpl
and delete the following code:

Code: Select all

<?php if ($display_price) { ?>
<form action="<?php echo str_replace('&', '&', $action); ?>" method="post" enctype="multipart/form-data" id="product">
<?php if ($options) { ?>
<b><?php echo $text_options; ?></b><br />
<div style="background: #FFFFCC; border: 1px solid #FFCC33; padding: 10px; margin-top: 2px; margin-bottom: 15px;">
<table style="width: 100%;">
<?php foreach ($options as $option) { ?>
<tr>
<td><?php echo $option['name']; ?>:<br />
<select name="option[<?php echo $option['option_id']; ?>]">
<?php foreach ($option['option_value'] as $option_value) { ?>
<option value="<?php echo $option_value['option_value_id']; ?>"><?php echo $option_value['name']; ?>
<?php if ($option_value['price']) { ?>
<?php echo $option_value['prefix']; ?><?php echo $option_value['price']; ?>
<?php } ?>
</option>
<?php } ?>
</select></td>
</tr>
<?php } ?>
</table>
</div>
<?php } ?>
<?php if ($display_price) { ?>
<?php if ($discounts) { ?>
<b><?php echo $text_discount; ?></b><br />
<div style="background: #F7F7F7; border: 1px solid #DDDDDD; padding: 10px; margin-top: 2px; margin-bottom: 15px;">
<table style="width: 100%;">
<tr>
<td style="text-align: right;"><b><?php echo $text_order_quantity; ?></b></td>
<td style="text-align: right;"><b><?php echo $text_price_per_item; ?></b></td>
</tr>
<?php foreach ($discounts as $discount) { ?>
<tr>
<td style="text-align: right;"><?php echo $discount['quantity']; ?></td>
<td style="text-align: right;"><?php echo $discount['price']; ?></td>
</tr>
<?php } ?>
</table>
</div>
<?php } ?>
<?php } ?>
<div class="content">
<?php echo $text_qty; ?>
<input type="text" name="quantity" size="3" value="<?php echo $minimum; ?>" />
<a onclick="$('#product').submit();" id="add_to_cart" class="button"><span><?php echo $button_add_to_cart; ?></span></a>
<?php if ($minimum > 1) { ?><br/><small><?php echo $text_minimum; ?></small><?php } ?>
</div>
<div>
<input type="hidden" name="product_id" value="<?php echo $product_id; ?>" />
<input type="hidden" name="redirect" value="<?php echo str_replace('&', '&', $redirect); ?>" />
</div>
</form>
<?php } ?>

works like a charm on my opencart 1.4.7 hope this helps you guys who need opencart as a showroom

New member

Posts

Joined
Fri Jan 08, 2010 2:32 pm
Who is online

Users browsing this forum: Amazon [Bot] and 40 guests