Categories
CMS Development Wordpress

How to fix this error? “FATAL ERROR syntax error, unexpected ‘<', expecting elseif (T_ELSEIF) or else (T_ELSE) or endif (T_ENDIF) on line number 88"

I’m getting an error at the 88th line “FATAL ERROR syntax error, unexpected ‘<‘, expecting elseif (T_ELSEIF) or else (T_ELSE) or endif (T_ENDIF)” It broke my site, how can I fix it? (I’m new to coding) Thank you!! <?php /** * Related Products * * @see https://docs.woocommerce.com/document/template-structure/ * @author WooThemes * @package WooCommerce/Templates * @version […]

Categories
CMS Development Magento

Magento 2: Page Builder Product Carousel slick slide custom options

Can someone please help me to add custom options to the slick slider init for page builder product carousels? I don’t know exactly where it’s being initialized and I have very little experience in creating mixins. I was easily able to do this by copying over vendor/magento/module-page-builder/view/base/web/js/resource/slick/slick.js to my theme directory and replacing the response: […]

Categories
CMS Development Magento

Slick slider with ajax not working

I am trying to follow this answer but for me its not working perfectly I created custom phtml & block which will show the product slick slider, till time is working perfectly, but after the use of ajax, console showing POST 500 (Internal Server Error) Here is my identifier.phtml <div class=”wrapper-custom”> <div class=”products wrapper <?= […]

Categories
CMS Development Magento

Slick and Unslick magento 2 widget product grid based on condition

I have Initialized slick carousal to magento 2 widget product grid. Now i was trying to unslick if the gird have less than 6 product and if a grid have more than 6 product slick need to be initialized.. unfortunately unslick condition is working slick condition is not working as expected .. could anyone have […]

Categories
Development

Setting slick slider slides to show

I want to create a slick slider. If slider has only 1 slide, show it as a full width image. If it has 2 or more slides, show slides side by side. So far the below code will show 2 slides side by side easy. $(‘.two-slider’).slick({ slidesToShow: 2, slidesToScroll: 1, draggable: false, infinite: true, // […]

Categories
Development

Setting slick slider slides to show

I want to create a slick slider. If slider has only 1 slide, show it as a full width image. If it has 2 or more slides, show slides side by side. So far the below code will show 2 slides side by side easy. $(‘.two-slider’).slick({ slidesToShow: 2, slidesToScroll: 1, draggable: false, infinite: true, // […]

Categories
Development

Errors with React Image Preload and React-Slick

The problem: I’m using react-slick in conjunction with react-preload-image (latest versions on both) to create a page with multiple slider rails. The idea is to show my portfolio by category, so I’m listing out each category using react-slick to display images and react-preload-image to show the preload image and then the portfolio image. The good […]