Title: Short Code Behavior
Last modified: July 19, 2022

---

# Short Code Behavior

 *  Resolved [WebmasterNYC01](https://wordpress.org/support/users/webmasternyc01/)
 * (@webmasternyc01)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/short-code-behavior-2/)
 * I am using the short code to hand code my page.
 * However I need to change the behavior for “variable products.”
 * How do I modify the short code behavior so it displays “variable products” as
   a drop down?

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

 *  [MayKato](https://wordpress.org/support/users/maykato/)
 * (@maykato)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/short-code-behavior-2/#post-15840574)
 * Hello,
 * > How do I modify the short code behavior so it displays “variable products” 
   > as a drop down?
 * Could you tell us which shortcode you are referring to? In case you haven’t checked
   yet, there is a documentation page for available shortcodes here: [https://woocommerce.com/document/woocommerce-shortcodes/](https://woocommerce.com/document/woocommerce-shortcodes/)
 * If you are looking to change the default behavior of core WooCommerce’s shortcodes,
   you’ll want to look into a custom solution – in which case, I’d recommend getting
   in touch with a web developer or one of the services on our customizations page:
   [https://woocommerce.com/customizations/](https://woocommerce.com/customizations/)
 *  Thread Starter [WebmasterNYC01](https://wordpress.org/support/users/webmasternyc01/)
 * (@webmasternyc01)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/short-code-behavior-2/#post-15840592)
 * `[add to cart] short code
 *  Thread Starter [WebmasterNYC01](https://wordpress.org/support/users/webmasternyc01/)
 * (@webmasternyc01)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/short-code-behavior-2/#post-15840605)
 * Is there a short code for a variation of a product? for example [add to cart 
   variation=”blue”]
 *  [Mirko P.](https://wordpress.org/support/users/rainfallnixfig/)
 * (@rainfallnixfig)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/short-code-behavior-2/#post-15840667)
 * Hi [@webmasternyc01](https://wordpress.org/support/users/webmasternyc01/),
 * > [add to cart] short code
 * Thanks for clarifying you’re referring to the `[add_to_cart]` shortcode.
 * [https://woocommerce.com/document/woocommerce-shortcodes/#args-or-arguments](https://woocommerce.com/document/woocommerce-shortcodes/#args-or-arguments)
 * > Is there a short code for a variation of a product? for example [add to cart
   > variation=”blue”]
 * Yes, you can use `[add_to_cart id="VARIATION_ID_HERE"]` (e.g. [add_to_cart id
   =”67″])
 * 
    Link to image: [https://i.imgur.com/ZZj9CS9.png](https://i.imgur.com/ZZj9CS9.png)
 * > How do I modify the short code behavior so it displays “variable products” 
   > as a drop down?
 * By default WooCommerce displays a “[Select options](https://i.imgur.com/MKaV7zG.png)”
   button for variable products but if you want to show [variation dropdowns](https://i.imgur.com/XTLlHMb.png)
   use [this snippet](https://gist.github.com/titodevera/b638d50d04f9f19c9a8d5d62ec098554).
 * Hope this helps!
 *  Thread Starter [WebmasterNYC01](https://wordpress.org/support/users/webmasternyc01/)
 * (@webmasternyc01)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/short-code-behavior-2/#post-15840678)
 * the label is showing as “read more.” How do I change this?
 *  Thread Starter [WebmasterNYC01](https://wordpress.org/support/users/webmasternyc01/)
 * (@webmasternyc01)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/short-code-behavior-2/#post-15840689)
 * When I add the variation to car it is only showing the item title without the
   variation name.
 * cart
    item x 1
 * I want
 * cart
    item Blue x 1
 *  [Mirko P.](https://wordpress.org/support/users/rainfallnixfig/)
 * (@rainfallnixfig)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/short-code-behavior-2/#post-15840721)
 * Hi there,
 * > the label is showing as “read more.” How do I change this?
 * Do you mean you want to change the “Read more” text to something else? If that’s
   your goal, you can change the text by using a free localization plugin like [Loco Translate](https://wordpress.org/plugins/loco-translate/).
   This will allow you to find that phrase and change it to be what you’d like.
 * You can follow our step-by-step guide on how to do that here: [https://docs.woocommerce.com/document/woocommerce-localization/#section-5](https://docs.woocommerce.com/document/woocommerce-localization/#section-5)
 * > When I add the variation to car it is only showing the item title without the
   > variation name.
 * Ideally, it would be better to make a screenshot so we can understand what’s 
   the issue and provide you with further guidance. I recommend [https://snipboard.io](https://snipboard.io)
   for easily sharing screenshots – please follow the instructions on that page,
   then paste the URL in this thread.
 * Cheers.
 *  Thread Starter [WebmasterNYC01](https://wordpress.org/support/users/webmasternyc01/)
 * (@webmasternyc01)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/short-code-behavior-2/#post-15840743)
 * I contacted several woo experts and got no response. Do you know of any that 
   are responsive?
 *  [Margaret S. woo-hc](https://wordpress.org/support/users/margaretwporg/)
 * (@margaretwporg)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/short-code-behavior-2/#post-15840875)
 * Hi [@webmasternyc01](https://wordpress.org/support/users/webmasternyc01/)
 * > I contacted several woo experts and got no response. Do you know of any that
   > are responsive?
 * Did you try reaching out to the web developers on our [customizations page](https://woocommerce.com/customizations/)?
   I’m sorry you didn’t hear back yet. I guess they may take some time to respond.
   We are unable to recommend any developer as such.
 * For development-oriented questions you can also reach out at the following channels:
    - WooCommerce Developer Resources Portal: [https://developer.woocommerce.com/](https://developer.woocommerce.com/)
    - WooCommerce Slack Community: [https://woocommerce.com/community-slack/](https://woocommerce.com/community-slack/)
    - WooCommerce Community on Facebook: [https://www.facebook.com/groups/advanced.woocommerce/](https://www.facebook.com/groups/advanced.woocommerce/)

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

The topic ‘Short Code Behavior’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 9 replies
 * 4 participants
 * Last reply from: [Margaret S. woo-hc](https://wordpress.org/support/users/margaretwporg/)
 * Last activity: [3 years, 10 months ago](https://wordpress.org/support/topic/short-code-behavior-2/#post-15840875)
 * Status: resolved