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
- This topic has 10 replies, 6 voices, and was last updated 14 years, 7 months ago by
amin007.
-
AuthorPosts
-
February 8, 2010 at 11:41 am #758
Gian
MemberHello!
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])?
March 9, 2010 at 1:07 pm #17833nico
MemberSame 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…
March 10, 2010 at 2:23 am #17834amin007
ParticipantThis option is not available… I will add in a function so this can be done.
April 18, 2010 at 11:14 pm #17835jkudish
MemberAny update on this? Would need to use this functionality?
April 19, 2010 at 7:38 am #17836amin007
Participant@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.
April 23, 2010 at 3:32 am #17837VelmaG
MemberI 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.
April 23, 2010 at 8:50 am #17838amin007
ParticipantBecause the shortcode was created using a filter not a proper wordpess shortcode API (wordpress introduced it later).
April 24, 2010 at 4:09 am #17839VelmaG
MemberIs there any chance you’ll be converting it over to the shortcode API?
April 24, 2010 at 12:12 pm #17840amin007
ParticipantYep, I will be adding a proper shortcode for it in a few days.
March 24, 2011 at 3:28 pm #17841primated
MemberThe 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
March 24, 2011 at 10:46 pm #17842amin007
ParticipantI 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] -
AuthorPosts
- You must be logged in to reply to this topic.