Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Template - PureMart (SKU# FLEX-00010)

TOPIC: [SOLVED] switch off quick look

[SOLVED] switch off quick look 11 years 6 months ago #558

In the Fashion Mart section I found a topic about switching off Quick look. Is this also possible in PureMart?

Jan-Willem
Last Edit: 11 years 6 months ago by Support.
The administrator has disabled public write access.

switch off quick look 11 years 6 months ago #568

Hi,

Yes, definately it is also valid in PureMart as well, but of course the CODE you need to take off are different. Let me give the instruction for pureMart as well in case it will be helpful to others as well. I will assume you have absolutely no idea with HTML or PHP coding, so i will try to make things extremely clear. You don't need to be coder to follow my steps.

Open category browse page layout PHP file:

ROOT/templates/<yourjoomlatemplatefolder>/html/com_virtuemart/category/default.php
(default.php, flexv2.php, defaultlist.php or flexv2list.php etc... depends on what layout you chose in VM configuration)

Then look for these codes in this PHP file:
<!-- START quickLook Code -->
...
...
....
.... Some codes are inside
...
..
..   
<!-- FINISH quickLook Code -->


But make sure you delete them successfully. Make sure; you start deleting from <!-- START quickLook Code --> and also make sure you include the last <!-- FINISH quickLook Code -->

You are going to find this LINES in 3 different places in a single PHP file. IT is because category browse page have 3 different View options (ListView, GridView, MultiGridView)

BE AWARE:
If you delete those lines, then "Add to cart icon", "QuickLook" icon and "More Info" icons, all of them will be gone:
PastedImage10812604PM-6.png


IF you want to remove ONLY QuickLook icon:
Then you should delete only the lines which generates QuickLook.

Which are these:
<a class="FlexibleProductHoverShadowQUICK" title="<?php echo $product->product_name; ?>" rel="facebox" rev="iframe|550|900" href="<?PHP echo JRoute::_ ( 'index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=' . $product->virtuemart_product_id . '&tmpl=component&flexiblelayout=quicklook&virtuemart_category_id=' . $product->virtuemart_category_id);?>"></a>

But of course, You will have some design issue if you take off the quicklook icon from there.
The front-end will look like this:
PastedImage10812610PM.png


It doesn't look nice, right?
Therefore, If you decide to remove the Quicklook, you should also take off the "Add to cart" icon as well. The HTML codes for Add to cart icon is these:
<div class="addtocart-area">
				<form method="post" class="product" action="index.php">
				<div class="addtocart-bar">
				<input type="hidden" class="quantity-input" name="quantity[]" value="1"/>
			 			<?php
						// Add the button
						$button_lbl = '';
						$button_cls = ''; //$button_cls = 'addtocart_button';
						?>
						<?php // Display the add to cart button ?>
						<span class="addtocart-button">
							<input class="addtocart-button" type="submit" title="<?php echo JTEXT::_('COM_VIRTUEMART_CART_ADD_TO');?>" value="" name="addtocart">
						</span> 
				</div>
					<input type="hidden" class="pname" value="<?php echo $product->product_name ?>"/>
					<input type="hidden" name="option" value="com_virtuemart"/>
					<input type="hidden" name="view" value="cart"/>
					<input type="hidden" name="virtuemart_product_id[]" value="<?php echo $product->virtuemart_product_id ?>"/>
					<input type="hidden" name="virtuemart_category_id[]" value="<?php echo $product->virtuemart_category_id ?>"/>
				</form>
				</div>

Start with <div class="addtocart-area"> and ends with </div>.
If you use Adobe Dreamweaver, you won't make any mistake while taking off these codes from the PHP file.

If both QUICKLOOK and ADDTOCART icon are removed, then it looks like this:

PastedImage10812614PM.png


Which looks much better, right?

Is this all i can provide you, dealing with codes are not an easy job. But if you have the right tools (Adobe Dreamweaver) things will become much easier. While deleting things, always make sure, starting with <div> and ending with </div> (or same thing with <span> ... </span> and <form>...</form> or others...)

Cheers.
The administrator has disabled public write access.

switch off quick look 11 years 6 months ago #584

Thank you!

Jan-Willem
The administrator has disabled public write access.

switch off quick look 11 years 6 months ago #587

your welcome.

Flexible Support Team.
The administrator has disabled public write access.
Time to create page: 0.152 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo