Home Forums WoodMart support forum Change Icons Functions on Mobile

Change Icons Functions on Mobile

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #212020

    jasobeam
    Participant

    I want some configuration on mobile version of the website

    What I want is users to specify quantity of products so There is some options:

    1.- Enable quick view when user click on image or title, It works on home but it doesnt work when I load more products, I mean for items loaded first it works but for loaded items it doesn’t
    I used the following code

    jQuery(‘.product-grid-item .product-image-link, .product-grid-item .product-title’).click(function(e) {
    e.preventDefault();
    jQuery(this).parents(‘.product-grid-item’).find(‘.open-quick-view’).click();
    });

    2.- Modify the Icons on mobile version to show text+icons and not only icons, hide de add to cart button and show only wuick view.

    Attachments:
    You must be logged in to view attached files.
    #212119

    Hello,

    1) Try to replace the code with the following one:

    jQuery('body').on('click', '.product-grid-item .product-image-link, .product-grid-item .product-title', (function(e) {
    	e.preventDefault();
    	jQuery(this).parents('.product-grid-item').find('.open-quick-view').click();
    });

    2) I saw the screenshot you attached. The text+icon is only for the add to cart button and the other icons have no text with them.

    If you want to remove the add to cart button from mobile then try adding the following Custom CSS in the Custom CSS for Mobile area under Theme Settings >> Custom CSS.

    .product-grid-item .woodmart-add-btn {
    display: none;
    }

    Best Regards.

Viewing 2 posts - 1 through 2 (of 2 total)