- This topic has 10 replies, 6 voices, and was last updated 13 years, 8 months ago by .
Viewing 11 posts - 1 through 11 (of 11 total)
Viewing 11 posts - 1 through 11 (of 11 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › Simple PayPal Shopping Cart › Simple shopping Cart Usage › How to add variation control using the "Add to cart" button in the template?
Tagged: add to cart, variation, variation control
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])?
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…
This option is not available… I will add in a function so this can be done.
Any update on this? Would need to use this functionality?
@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.
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.
Because the shortcode was created using a filter not a proper wordpess shortcode API (wordpress introduced it later).
Is there any chance you’ll be converting it over to the shortcode API?
Yep, I will be adding a proper shortcode for it in a few days.
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
I just added the proper shortcode version last night. Get a new build from here:
https://support.tipsandtricks-hq.com/update-request
After the update you will be able to use the following which will give you a Buy Now button only:
[wp_eStore_buy_now id=1]