• Resolved tboy123

    (@tboy123)


    Is there a shortcode available for displaying store credit in the account? I can’t find in knowledge database. I do not use the standard Woocommerce tabs for account.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Josh Kohlbach

    (@jkohlbach)

    Hey @tboy123 thanks for the message!

    We do have a shortcode [acfw_customer_store_credit_balance] which will show the balance of the user’s store credit.

    Are you creating your own page or wanting to load the store credit my account endpoint page we normally add?

    It might be possible to just point your custom page there at the endpoint file. We call it in Models/Store_Credits/My_Account.php via this hook:

    add_action('woocommerce_account_' . $this->_get_store_credits_endpoint() . '_endpoint', array($this, 'display_store_credits_my_account_markup'));

    This then calls:

    Not sure if you are a dev or have access to a dev but they could write a custom function to call the same function we do to display the content of this page.

    That said, I’ll raise up a ticket to create a shortcode for displaying this content to make it easier for folks like yourself ??

    I hope this helps give you a few ideas to follow up on!

    Thread Starter tboy123

    (@tboy123)

    Rather than having the standard endpoint menu with Woocommerce, I created a bunch of icons that have the link in the column. I am using Elementor and User Registration plugin. Your plugin is activated but the shortcode is not displaying the customer store credit info in the account. Any further assistance with why the shortcode isn’t displaying the information?

    Thread Starter tboy123

    (@tboy123)

    Oh, wait. Nvm. When I changed the endpoint in the settings to “text” instead of “visual” it had some strange notation in it. Working now, thanks!

    Plugin Author Josh Kohlbach

    (@jkohlbach)

    Awesome to hear @tboy123! Glad it working for you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Short code for Store Credit Account Display’ is closed to new replies.