Tips and Tricks HQ Forum

Support Forum for Tips and Tricks HQ Products

Register or log in - lost password? (Having an issue with the forum login?)

Search the Forum

Tips and Tricks HQ Forum » WP eStore Forum

Request: Shortcode and PHP reference function

(7 posts) (2 voices)
  • Started 1 year ago by deane
  • Latest reply from deane
  • Possible Solutions (Related Topics):
    1. Enhancement request - Manage Members functionality batch edit
    2. PHP function reference for Latest Products
    3. Edit Banner/Ad Function is Disabled or Well Hidden
    4. eStore Manual Checkout - shortcode for order summary
    5. Fatal Error when I click shortcode icon

Tags:

  • footer
  • PHP
  • products
  • shortcode
  1. deane
    Member

    Hope this is not too much....can I ask for the shortcode and PHP for LATEST PRODUCTS FROM A PARTICULAR CATEGORY WITH FANCY STYLE options wherein I can modify the number of recently added items to show from such category and not all items included.

    Thanks for the help.

    Posted 1 year ago #
  2. amin007
    Key Master

    Check the extra eStore shortcode list for the full details on this but essentially you will be able to use the following:

    <?php echo show_wp_eStore_category_products_fancy(1,3,1); ?>

    You can sort the order by product ID. When you specify to sort it in descending order it will show the latest products first (your recently added products will always have the highest product ID).

    This function doesn't take a parameter that limits how many products to show but that can be added.

    Posted 1 year ago #
  3. deane
    Member

    Thank you Amin for pointing out the code. That code is really what I need, but is it possible for that shortcode to have additional parameter to limit the number of latest items from that category to show?

    I want to have that shortcode (PHP) to show in my homepage so that all items would not display....

    Thank you again:)

    Posted 1 year ago #
  4. amin007
    Key Master

    I will look into adding a parameter to limit the number of products that gets displayed.

    Posted 1 year ago #
  5. deane
    Member

    That is so wonderful of you, Amin...thank you so much. I keep watching on it...have a nice day!

    Posted 1 year ago #
  6. amin007
    Key Master

    Added this option in. Now you can either use the following shortcode (the "number=5" can be customized to show a limited number of products from a particular category):

    [wp_eStore_category_products_fancy id=1 style=3 order=1 type=1 number=5]

    The corresponding PHP function for the above shortcode is:

    <?php echo show_wp_eStore_category_products_fancy(1,1,1,1,5); ?>

    The 5th parameter is for the number of products to show.

    You will need to download a new build of the extra eStore shortcode plugin from here:

    http://www.tipsandtricks-hq.com/ecommerce/wp-estore-shortcodes-and-functions-reference-460

    Posted 1 year ago #
  7. deane
    Member

    Yehey! Thank you so much Amin, you're the best! I will work on it now!....thank you thank you...

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.

Tips and Tricks HQ  | WP Shopping Cart  | WP Affiliate Software  | WordPress Membership Plugin