New Landing How can we help? Themeforest Theme Support Neighborhood Mini Product Shortcode Not Using the Category value

Viewing 12 posts - 1 through 12 (of 12 total)
  • #21544
    JessycaFrederick
    Member
    Post count: 7

    I have this code in my template:

    <div class="container">
    <div class="span12 first">

    <div class="span3 first">
    <?php
    $content = '[spb_products_mini title="Hot New Gifts" product_cat="13" item_count="3" width="1/4" el_position="first last"]';
    echo do_shortcode($content);
    ?>
    </div>
    <div class="span3">
    <?php
    $content = '[spb_products_mini title="Best of The Month Clubs" product_cat="14" item_count="3" width="1/4" el_position="first last"]';
    echo do_shortcode($content);
    ?>
    </div>
    <div class="span3">
    <?php
    $content = '[spb_products_mini title="Unique Gift Baskets" product_cat="38" item_count="3" width="1/4" el_position="first last"]';
    echo do_shortcode($content);
    ?>
    </div>
    <div class="span3 last">
    <?php
    $content = '[spb_products_mini title="Killer Gift Sets" product_cat="57" item_count="3" width="1/4" el_position="first last"]';
    echo do_shortcode($content);
    ?>
    </div>

    </div>
    </div>

    and the different widgets are all loading the same three products, none of which mind the categories I’ve specified. I’ve also tried using the slug for the product_cat value, but that doesn’t work either. I’ve also tried it with setting the asset-type attribute, but I got the same results.

    What am I missing?

    #21790
    laranz – SUPPORT
    Member
    Post count: 3186

    Hi,

    You need to put category slug.

    Optionally, provide the category slugs for the products you want to show (comma seperated). i.e. trainer,dress,bag.

    Thanks,
    laranz.

    #21797
    JessycaFrederick
    Member
    Post count: 7

    Hi,

    I noted in my question that I tried using the slug and it didn’t produce the correct results either. Does it only work if you put in more than one category?

    Thank you,
    Jessyca

    #21836
    laranz – SUPPORT
    Member
    Post count: 3186

    Hi,

    Can you share me your WP Login details, so I can check whats going wrong. (by set as private reply here)

    Yes you can put multiple category slug separated by comma.

    Thanks,
    laranz.

    #23115
    JessycaFrederick
    Member
    Post count: 7
    This reply has been marked as private.
    #23163
    laranz – SUPPORT
    Member
    Post count: 3186

    Hi,

    Actually, how you create your home page, I didn’t see anything in the page. Can you confirm it?

    Thanks,
    laranz.

    #23760
    JessycaFrederick
    Member
    Post count: 7
    This reply has been marked as private.
    #24009
    laranz – SUPPORT
    Member
    Post count: 3186

    Hi,

    Yea got it, the asset type you use are same. That cause the problem. You change that accordingly are remove it.

    The asset types are as follows: latest-products, featured-products, top-rated, recently-viewed, sale-products

    PS: Sorry for a late reply.

    Thanks,
    laranz.

    #24036
    JessycaFrederick
    Member
    Post count: 7

    I have tried it without the asset type, but it still doesn’t pick up the categories specified in the product_cat attribute. I’ve updated it on the live site: http://clubsandgifts.com for you to see.

    #24532
    laranz – SUPPORT
    Member
    Post count: 3186

    Hi,

    Sorry for the late reply. Its not product_cat, its category, I edit that in the home.php in the child theme, take a look.

    Thanks,
    laranz.

    #24537
    JessycaFrederick
    Member
    Post count: 7

    Fabulous! Thank you!!

    #24540
    laranz – SUPPORT
    Member
    Post count: 3186

    Hi,

    Great 🙂

    Let me know if you have any other questions.

    Thanks,
    laranz.

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

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register