• Hello

    Here are the steps I have made:

    1. Installation of “Make Model Year Engine”.
    2. Instructions of “YMM in Products Text Search” added.
    3. Instructions of “Display Vehicle Fitment With Shortcode” added.
    4. CSV instructions : “Dacia, Duster, Essence 1.6L, 2015, 2022” added to the product page.

    My configurations:
    WordPress version 6.1.1
    Active theme: WoodMart Version : 7.1.1
    PHP version 8.1.13

    First problem: When I search for the word “Dacia” in the product search module, I get zero results.

    Second problem: When I add the [ymm_restriction] shortcode in the product description, no content is displayed

    Thank you for your help

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Pektsekye

    (@pektsekye)

    Hello,

    > When I add the [ymm_restriction] shortcode in the product description, no content is displayed

    Try to add some text into the product’s short description section.
    I know there is a problem when a product has empty short description.

    Stanislav

    Thread Starter imedz

    (@imedz)

    Hello

    In my case I don’t want to use the short description. So what to do in this case?

    Plugin Author Pektsekye

    (@pektsekye)

    Hello,

    Just check if it works when the short description is not empty.

    Stanislav

    Thread Starter imedz

    (@imedz)

    Hello

    Yes I checked and the shortcode works only if the short description is not empty. But I don’t want to use the short description in my case

    Plugin Author Pektsekye

    (@pektsekye)

    Hello,

    > shortcode works only if the short description is not empty.

    Try to replace the line:

    
      include_once( Pektsekye_YMM()->getPluginPath() . 'view/frontend/templates/product/view/tabs/restriction.php');
    

    with:

    
      include( Pektsekye_YMM()->getPluginPath() . 'view/frontend/templates/product/view/tabs/restriction.php');
    

    in the file:
    wp-content/plugins/ymm-search/Block/Product/View/Tabs/Restriction.php

    Stanislav

    Thread Starter imedz

    (@imedz)

    Hello

    Yes it works perfectly now.

    But there is a problem with the content indexing of “Vehicle Fitment” table in the product search module, knowing that the shotcode is inserted in the description tab

    Plugin Author Pektsekye

    (@pektsekye)

    Hello,

    > Instructions of “YMM in Products Text Search” added.
    > CSV instructions : “Dacia, Duster, Essence 1.6L, 2015, 2022”
    > When I search for the word “Dacia” in the product search module, I get zero results

    You should send the file:
    wp-content/plugins/ymm-search/Controller/Product.php

    to my email pektsekye@gmail.com so I can check if it is modified correctly.

    Also tell me which module do you use for product text search.
    Is it the default woocommerce product text search?

    Stanislav

    Thread Starter imedz

    (@imedz)

    Hello

    I sent you the “Product.php” file by email.
    Yes, I am using default woocommerce product text search.

    I also use WoodMart Ajax Search

    • This reply was modified 1 year, 6 months ago by imedz.
    Thread Starter imedz

    (@imedz)

    Here are screenshots of two search modules I used on Elementor:

    https://i.postimg.cc/YqnPpR5S/01.png

    https://i.postimg.cc/dVhxDdFj/02.png

    Thread Starter imedz

    (@imedz)

     Amazing technical support !!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Display vehicle fitment (ymm restriction) with WordPress shortcode does not work’ is closed to new replies.