Hello!
I'm using WP Simple Shopping Cart with the "Add to cart button" in the template (<?php echo print_wp_cart_button_for_product('PRODUCT-NAME', 'PRODUCT-PRICE'); ?>).
Is there the possibility to add variation control as in the triggered mode ([wp_cart:PRODUCT-NAME:price:PRODUCT-PRICE:var1[VARIATION-NAME|VARIATION1|VARIATION2|VARIATION3]:end])?
How to add variation control using the "Add to cart" button in the template?
(11 posts) (6 voices)-
Posted 2 years ago #
-
Same problem for me.
I'm working with the "Add to cart button" in a template file and I'm searching for a way to add variation control in the php code...
Posted 1 year ago # -
This option is not available... I will add in a function so this can be done.
Posted 1 year ago # -
Any update on this? Would need to use this functionality?
Posted 1 year ago # -
@jkudish, This turned out to be a lot of work so didn't do anything. If you are using eStore then you should be able to use variation control using PHP function call anyway.
Posted 1 year ago # -
I figured the work around for this would be a shortcode sidebar plugin. I tried 3, and none of them worked. It simply showed the shoppingcart's shortcode.
Bummer. Not sure why this shortcode wouldn't work in any of them.
Posted 1 year ago # -
Because the shortcode was created using a filter not a proper wordpess shortcode API (wordpress introduced it later).
Posted 1 year ago # -
Is there any chance you'll be converting it over to the shortcode API?
Posted 1 year ago # -
Yep, I will be adding a proper shortcode for it in a few days.
Posted 1 year ago # -
The Shortcodes still don't all work in the sidebar widgets.
I just want to add a simple buy now button, but all I get is the actual code and not the button. But, strangely enougn, this shortcode works:
[wp_eStore_buy_now_fancy id=1]It's not what I need, but it works for now.
What I want to use is:
[wp_eStore_buy_now:product_id:1:end]Any suggestions or solutions?
Oh, I'm using the latest update for the paid plugin and I also have eStore-Extra-shortcodes plugin installed.
Thanks
Posted 10 months ago #
Reply »
You must log in to post.