I'm using car66 plugin in my wordpress site and I want to use the plugin's shortcode to add items into the cart. I don't know how to call a shorcode in a page. The short code is supposed to generate a button that allows the user to add items into the cart. However it is not adding into the cart. Please help me. My code is here. Please help. [add_to_cart item="EX-29"]
Asked
Active
Viewed 35 times
0

sammyukavi
- 1,501
- 2
- 23
- 51
1 Answers
0
I figured out to use the do_shortcode
inbuilt function. For example I used echo do_shortcode("[add_to_cart item=\"EX-29]\"");
and it worked.

sammyukavi
- 1,501
- 2
- 23
- 51