Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Addon Related › eStore Extra Shortcodes : Bug report (and correction) on Buy now text link
Tagged: buy now, download link, extra eStore shortcodes
- This topic has 6 replies, 5 voices, and was last updated 8 years, 4 months ago by Michael DeLuca.
-
AuthorPosts
-
February 28, 2015 at 10:29 am #12290nlarzillMember
Hi, I found a bug in the eStore Extra Shortcodes plugin v4.9.4 and I propose a correction to help the community :
Use case :
When I use a Buy now text link (with a specific gateway) like this :
[http://domain.com?wp_eStore_buy_now=2&gateway=stripe]
The product name is never passed to the Stripe payment gateway.
All other parameters (product id, price) are OK.
I found the reason of the issue in the Extra Shortcodes plugin : the parameter estore_product_name is not added in the query args.
I suggest the following correction (it works for me) :
File : shortcode_include2.php
Function : estore_extra_handle_gateway_specific_buy_now_request()
Correction : add the following line in the $query_args variable :
“estore_product_name” => $args,
That’s it !
Regards,
Nicolas
March 2, 2015 at 2:47 am #68848wpCommerceModeratorHi, Thanks. We have updated the eStore extra shortcode addon. Please download a new copy now.
March 8, 2016 at 10:04 pm #68849andrea845SpectatorHi I have a problem I can not solve, can you help me?
I’m trying to create a “buy now” button in html, using the formula in a video: “www.mysite.com/?wp_eStore_buy_now=2”
However, it does not work. What happens is a redirect to my home page, and not in the paypal payment page.
Yet with the shortcode on wordpress works.
What should I do?
What could be the problem?
Thank you
March 9, 2016 at 3:12 am #68850adminKeymasterDo you have the extra eStore shortcodes installed on your site?
https://www.tipsandtricks-hq.com/ecommerce/wp-estore-shortcodes-and-functions-reference-460
Share the full proper link of your site so we can test the behavior of that link.
March 10, 2016 at 8:58 pm #68851andrea845SpectatorSolved! I had to install the addon.
Thanks for support
May 25, 2016 at 1:48 pm #68852Michael DeLucaParticipantSorry if this is the wrong thread to post this in, but I have a question about the Buy Now and Add to Cart links in the eStore Extra Shortcodes plugin: can they be used with digital product variations? What I’m looking for is something like this:
example.com/cart?ap_id=my_affiliate_id&wp_eStore_add_to_cart=XXXX&wp_eStore_digital_variation=PDF
The way it appears to be working now (IE not working), the product gets added to the user’s cart, and they can check out successfully, but the order email fails to include a download link. It just has a blank line where the link would normally be.
Thanks for your help.
Michael
May 25, 2016 at 2:41 pm #68853Michael DeLucaParticipantI may have figured out the answer to my own question. In case this is of use to anybody else: looking through the plugin code, it appears that the additional URL query parameter I’m looking for is “&c_input=PDF”. So an add to cart link from an external site, using the Extra Shortcodes plugin and a product with a digital variation, would look like this:
example.com/cart?ap_id=my_affiliate_id&wp_eStore_add_to_cart=XXXX&c_input=PDF
-
AuthorPosts
- You must be logged in to reply to this topic.