Short Code Behavior
-
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?
-
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/
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/
`[add to cart] short code
Is there a short code for a variation of a product? for example [add to cart variation=”blue”]
Hi @webmasternyc01,
[add to cart] short code
Thanks for clarifying you’re referring to the
[add_to_cart]shortcode.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.pngHow do I modify the short code behavior so it displays “variable products” as a drop down?
By default WooCommerce displays a “Select options” button for variable products but if you want to show variation dropdowns use this snippet.
Hope this helps!
the label is showing as “read more.” How do I change this?
When I add the variation to car it is only showing the item title without the variation name.
cart
item x 1I want
cart
item Blue x 1Hi 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. 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
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 for easily sharing screenshots – please follow the instructions on that page, then paste the URL in this thread.
Cheers.
I contacted several woo experts and got no response. Do you know of any that are responsive?
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? 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/
- WooCommerce Slack Community: https://woocommerce.com/community-slack/
- WooCommerce Community on Facebook: https://www.facebook.com/groups/advanced.woocommerce/
The topic ‘Short Code Behavior’ is closed to new replies.