Title: Variables Do Not Work
Last modified: January 16, 2025

---

# Variables Do Not Work

 *  Resolved [marketing4dct](https://wordpress.org/support/users/marketing4dct/)
 * (@marketing4dct)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/variables-do-not-work/)
 * Hey,
 * I am trying to use the suggested variables,
 * Woo Variables: {product}, {price}, {regular_price}, {sku}, {site}, {url}, {title},
   or variables {site}, {title}, {url}, [url]
 * They give out the info from one of the latest blog post, not the actual page 
   you are on currently, besides [url]
 * I thought maybe the issue was the brackets, since the square brackets worked 
   fine, but no, it did not work.
 * Can you assist in this?
 * BTW great plugin! thank you very much.

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Author [bhvreddy](https://wordpress.org/support/users/bhvreddy/)
 * (@bhvreddy)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/variables-do-not-work/#post-18248997)
 * Hi,
 * Thank you so much for the message.
 * [url] Get the URL value at the front end. thats why its working fine. 
   {url},{
   product}, {price}, … all dynamically updated on the server side. It seems like
   other page values are getting. (where multiple posts are loaded)
 * Is it possible to share the website address where the issue is occurring?
 * Have a nice day,
   Thank you
 *  Thread Starter [marketing4dct](https://wordpress.org/support/users/marketing4dct/)
 * (@marketing4dct)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/variables-do-not-work/#post-18253364)
 * Hey bhvreddy,
 * Thank you for the prompt response! Yes I can share the website, what is your 
   email (prefer it not being public).
 * Additionally, I have of course removed all the dynamic tags as they were faulty.
   If you need me to restore some of them lmk.
 * BTW – any other front-end tags?
 * Thanks, have a great day
 *  Plugin Author [bhvreddy](https://wordpress.org/support/users/bhvreddy/)
 * (@bhvreddy)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/variables-do-not-work/#post-18255409)
 * Hi,
 * We can understand.
   [https://holithemes.com/plugins/click-to-chat/support/](https://holithemes.com/plugins/click-to-chat/support/)
   currently this variables are available that are specific to WooCommerce
    - **{product}** : Name of the product.
    - **{price}** : Current price of the product.
    - **{regular_price}**  : Price without any discount.
    - **{sku}** : Stock left.
    - **{site}** : Name of the website.
    - **{url}** : The current page link.
    - **{title}** : The current page title.
 * [https://holithemes.com/plugins/click-to-chat/woocommerce-single-product-pages/](https://holithemes.com/plugins/click-to-chat/woocommerce-single-product-pages/)
 * Have a nice day,
   Thank you
 *  Thread Starter [marketing4dct](https://wordpress.org/support/users/marketing4dct/)
 * (@marketing4dct)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/variables-do-not-work/#post-18256097)
 * Sent you the website address on email to [ctc@holithemes.com](https://wordpress.org/support/topic/variables-do-not-work/ctc@holithemes.com?output_format=md)
 * Thanks again
 *  Thread Starter [marketing4dct](https://wordpress.org/support/users/marketing4dct/)
 * (@marketing4dct)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/variables-do-not-work/#post-18258262)
 * The fix:
 * [https://holithemes.com/plugins/click-to-chat/chat-load-hook/](https://holithemes.com/plugins/click-to-chat/chat-load-hook/)
 * Thanks again 🙂
 *  Plugin Author [bhvreddy](https://wordpress.org/support/users/bhvreddy/)
 * (@bhvreddy)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/variables-do-not-work/#post-18258321)
 * Hi,
 * The issue might be when multiple posts are loaded on the same page. (main product
   and related products), the post id might be getting related product and applying
   those variables.
 * we can fix this issue by changing the chat hook load position to wp_head or get_header.
 * [https://holithemes.com/plugins/click-to-chat/chat-load-hook/](https://holithemes.com/plugins/click-to-chat/chat-load-hook/)
 * Thank you so much for the message.
 * Have a nice day!
 *  Plugin Author [bhvreddy](https://wordpress.org/support/users/bhvreddy/)
 * (@bhvreddy)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/variables-do-not-work/#post-18258338)
 * Thanks for adding the fix 🙂 <3
 *  Thread Starter [marketing4dct](https://wordpress.org/support/users/marketing4dct/)
 * (@marketing4dct)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/variables-do-not-work/#post-18258376)
 * Thank you!

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Variables Do Not Work’ is closed to new replies.

 * ![](https://ps.w.org/click-to-chat-for-whatsapp/assets/icon-256x256.gif?rev=2892731)
 * [Click to Chat - HoliThemes](https://wordpress.org/plugins/click-to-chat-for-whatsapp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/click-to-chat-for-whatsapp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/click-to-chat-for-whatsapp/)
 * [Active Topics](https://wordpress.org/support/plugin/click-to-chat-for-whatsapp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/click-to-chat-for-whatsapp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/click-to-chat-for-whatsapp/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [marketing4dct](https://wordpress.org/support/users/marketing4dct/)
 * Last activity: [1 year, 4 months ago](https://wordpress.org/support/topic/variables-do-not-work/#post-18258376)
 * Status: resolved