• Resolved wpmaster007

    (@wpmaster007)


    Hello WSHK Team!

    I hope this message finds you well.

    Recently, I downloaded your plugin and upon using it, I absolute love it. It just makes life a bit easier.

    However, I have a humble request I would like to make to you. Is it possible that somehow I can make a shortcode for “Product Download/Sales Counter” option? Because there is no option for shortcode for this option (I attached a screenshot of it. Incase you cannot see it, here is the link to the shortcode:https://pasteboard.co/J75d4cY.png).

    I am not good at coding, so I would appreciate it very much if you can tell me what code I would need to edit of this plugin so that I can get a shortcode for “Product Download/Sales Counter” option.

    Thank you very much in advance!

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author disespubli

    (@disespubli)

    Hello wpmaster007,

    First of all Thanks for using WSHK and your words!

    Can i know where do you need to use it with a shortcode? Maybe are you building a custom product page with Elementor template or something like that?

    If you can let me know where you need to use it and i will help you to get it.

    Best regards!

    Thread Starter wpmaster007

    (@wpmaster007)

    Sure!

    I want to use it on a product page. Currently, I am building a product page with Divi builder. When I use your plugin, Divi does not allow me to edit the position of the counter. Please see this screenshot: https://pasteboard.co/J77rmxG.png

    As you can see, the counter is at the top of the page. I cannot edit the position of it with Divi.

    Please let me know if you need anything else from my side.

    Plugin Author disespubli

    (@disespubli)

    Thanks for the info!

    Can you try to add this action?

    add_action( 'woocommerce_before_add_to_cart_form', 'wshk_product_sold_count', 11 );

    You can use the plugin Code snippets to add it easy.

    Please let me know if it add the counter in a different position in your product page (should appear the counter twice.) and let me know too the position where you want to display the counter.

    Regards!

    Thread Starter wpmaster007

    (@wpmaster007)

    Hello disespubli!

    Firstly, I’m extremely sorry for the late response.

    Secondly, I wanted to say thank you very much for your help. It worked.

    In addition, in the future, can you add a progress bar in addition to the counter? A progress bar that will indicate how much stock is left.

    Plugin Author disespubli

    (@disespubli)

    Thanks for your answer, im very happy to know its finally worked!

    I will mark it how resolved 🙂

    About add a progress bar to indicate how much stock is left, i will study it,thanks for the idea!

    Regards!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Request for shortcode for “Product Download/Sales Counter” option’ is closed to new replies.