Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Remove 'Quick view' from Crisp White Template

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 11-21-2016, 04:37 AM
 
sabinudash sabinudash is offline
 

Advanced Member
  
Join Date: Jul 2007
Posts: 66
 

Default Remove 'Quick view' from Crisp White Template

Hello,

I would like to turn off the 'Quick view' that appears on mouse-over on product pages on Crisp White template. I could not get the css for this.

Could anyone please kindly help me?

Thank you.
__________________
X-Cart 5.3.3.4 Multivendor
X-Cart 5.3.3.4 Business (Testing)
Reply With Quote
  #2  
Old 11-21-2016, 09:40 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Remove 'Quick view' from Crisp White Template

You should create a custom module that "decorates" the \XLite\View\Product\ListItem class and makes the isQuickLookEnabled() method always return "false":
PHP Code:
// ...

    /**
     * Return true if quick-look is enabled on the items list
     *
     * @return boolean
     */
    
protected function isQuickLookEnabled()
    {
        return 
false;
    }

// ... 
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #3  
Old 01-19-2017, 04:16 AM
  ElegantXMods.com's Avatar 
ElegantXMods.com ElegantXMods.com is offline
 

Advanced Member
  
Join Date: Apr 2009
Location: Stirling, UK
Posts: 94
 

Default Re: Remove 'Quick view' from Crisp White Template

Hi Alex,
please check my attempts and see where I am most closer to a working code

PHP Code:
<?php
 
namespace XLite\Module\modx\NewArrivalsPage\Controller\Customer;



//abstract class AntiQuickLook extends \XLite\View\Product\ListItem implements \XLite\Base\IDecorator
////no result

//abstract class AntiQuickLook extends \XLite\Module\modx\NewArrivalsPage\Controller\Customer\AntiQuickLook implements \XLite\View\Product\ListItem
////XLite\Module\modx\NewArrivalsPage\Controller\Customer\AntiQuickLook cannot implement XLite\View\Product\ListItem - it is not an interface

abstract class AntiQuickLook extends \XLite\Module\modx\NewArrivalsPage\Controller\Customer\AntiQuickLook implements \XLite\Base\IDecorator
/////no result
{
    
/**
     * Return true if quick-look is enabled on the items list
     *
     * @return boolean
     */
    
protected function isQuickLookEnabled()
    {
        return 
false;
    }
}
__________________
John
ElegantXMods.com

QuickOrder AJAX-based search and ordering system now available
giving you complete control over how customers browse and search for your products. Click here for details.
PriceSlider - easily filter categories by price range - only $9.99 - details here

X-Cart 4.1, X-Cart 4.2 on Windows/IIS and Linux/Apache.
Reply With Quote
  #4  
Old 01-25-2017, 01:40 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Remove 'Quick view' from Crisp White Template

The class that you should extend is \XLite\View\Product\ListItem, not any of those that you used in your example.

And your class is to be \XLite\Module\Modx\NewArrivalsPage\View\Product\Li stItem, not \XLite\Module\Modx\NewArrivalsPage\Controller\Cust omer\AntiQuickLook
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #5  
Old 01-27-2017, 05:50 PM
 
kevinrm kevinrm is offline
 

X-Wizard
  
Join Date: Aug 2003
Posts: 1,003
 

Default Re: Remove 'Quick view' from Crisp White Template

I have to agree, the "Quick View" is very confusing on the Crisp White. As a customer, when you hover over the product you see "Add to Cart" and "Quick View" easily. It's not clear at all how to navigate to the product to see more information. Even when you click "Quick View", the link to the product details is hard to find.

I would appreciation more information on how to remove the "Quick View" link...
__________________
X-Cart 5.4.1.39 Live
PHP 7.4.33
5.5.5-10.3.38-MariaDB MariaDB
Apache 2.4
CENTOS 7.8 64Bit Single Quad-Core E3-1241v3 3.4Ghz 8M 1600 w/ HT
32GB RAM 2x 512GB Samsung 850 Pro SSD RAID 1
Reply With Quote
  #6  
Old 01-27-2017, 06:05 PM
 
kevinrm kevinrm is offline
 

X-Wizard
  
Join Date: Aug 2003
Posts: 1,003
 

Default Re: Remove 'Quick view' from Crisp White Template

Either the "Quick View" button should be removed, or a "Product Details" button should be added. It's not clear to a first time customer how to navigate to product details at all.
__________________
X-Cart 5.4.1.39 Live
PHP 7.4.33
5.5.5-10.3.38-MariaDB MariaDB
Apache 2.4
CENTOS 7.8 64Bit Single Quad-Core E3-1241v3 3.4Ghz 8M 1600 w/ HT
32GB RAM 2x 512GB Samsung 850 Pro SSD RAID 1
Reply With Quote
  #7  
Old 01-28-2017, 11:00 PM
 
Triple A Racing Triple A Racing is offline
 

X-Wizard
  
Join Date: Jul 2008
Location: Manchester UK
Posts: 1,028
 

Default Re: Remove 'Quick view' from Crisp White Template

As an interim measure whilst you write and test your module to operate on CWS, pretty sure you could achieve what you want via Custom CSS:
Code:
.products-grid .quicklook, .products-list .quicklook { display: none; } .products-grid .quicklook button, .products-list .quicklook button { display: none; }
Working with a standard CWS setup, this should remove the functionality and the button we think.

You'll retain the 'greying out' effect i.e. the current active selection of any particular product indicator, but depending on which view you're using at the time, only the 'add to cart button' etc should remain. You can then add any additional guidance notes for visitors on your FAQ page if you think you need it
__________________
Dev Store & Live Store XC Business 5.4.1.35
Server; Ubuntu 22.04.2 LTS (HWE 6.2.0.26.26 Kernel)) / Plesk Obsidian
Nginx 1.20.4 / Apache 2.4.52 (Ubuntu Backported) / MariaDB 10.11.4 / PHP 7.4.33
Reply With Quote

The following 2 users thank Triple A Racing for this useful post:
Ed B. (08-26-2019), kevinrm (01-28-2017)
  #8  
Old 01-28-2017, 11:53 PM
 
kevinrm kevinrm is offline
 

X-Wizard
  
Join Date: Aug 2003
Posts: 1,003
 

Default Re: Remove 'Quick view' from Crisp White Template

That worked good, thanks!
__________________
X-Cart 5.4.1.39 Live
PHP 7.4.33
5.5.5-10.3.38-MariaDB MariaDB
Apache 2.4
CENTOS 7.8 64Bit Single Quad-Core E3-1241v3 3.4Ghz 8M 1600 w/ HT
32GB RAM 2x 512GB Samsung 850 Pro SSD RAID 1
Reply With Quote
  #9  
Old 03-01-2019, 11:33 PM
 
sales@webosusa.com sales@webosusa.com is offline
 

Senior Member
  
Join Date: Nov 2007
Location: Australia
Posts: 118
 

Default Re: Remove 'Quick view' from Crisp White Template

A better option is to setup the html in it as blank so prevent loading of unnecessary code that would make your page slower to load.
For instance in the custom JavaScript under "Look & Feel" > "Custom CSS & JS" > "Custom JavaScript"


Code:


$('.quicklook').html('');
__________________
Pedro
digitalnotions.i2u.shop
shop.modestclassy.com.au4.1.9 X-Cart
X-Cart
Business 5.3.6.0
Multi-vendor 5.3.6.0


Reply With Quote

The following 2 users thank sales@webosusa.com for this useful post:
qualiteam (03-02-2019), Triple A Racing (03-02-2019)
  #10  
Old 03-02-2019, 07:48 PM
 
Triple A Racing Triple A Racing is offline
 

X-Wizard
  
Join Date: Jul 2008
Location: Manchester UK
Posts: 1,028
 

Default Re: Remove 'Quick view' from Crisp White Template

Quote:
Originally Posted by sales@webosusa.com
A better option is to setup the html in it as blank so prevent loading of unnecessary code that would make your page slower to load.
For instance in the custom JavaScript under "Look & Feel" > "Custom CSS & JS" > "Custom JavaScript" Code: $('.quicklook').html('');
Totally agree. Unnecessary code is well worth avoiding, so we applied this ^^ to our own dev store to test it, but after we had done that, all the "Quick View" nonsense remains, even after a "just in case" dev store re-deployment. Quite why Custom CSS works perfectly, but Custom JS doesn't, when both are applied in order to achieve the exact same end result is still a mystery at present. Did you test this against the XC5 "Quick View" function yourself @webosusa ? If you did, was your Custom JS literally, just that one line:
Code:
$('.quicklook').html('');
with no other supporting reference code?
__________________
Dev Store & Live Store XC Business 5.4.1.35
Server; Ubuntu 22.04.2 LTS (HWE 6.2.0.26.26 Kernel)) / Plesk Obsidian
Nginx 1.20.4 / Apache 2.4.52 (Ubuntu Backported) / MariaDB 10.11.4 / PHP 7.4.33
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:49 AM.

   

 
X-Cart forums © 2001-2020