Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Tweaks › Text Lnks
- This topic has 14 replies, 3 voices, and was last updated 13 years, 9 months ago by GraphicBass.
-
AuthorPosts
-
January 17, 2011 at 4:50 pm #2524GraphicBassMember
I’m coming back to a need for some text links that work with the WP eStore system. I understand it’s complicated to use HTML for this,
Is there a way to have a shortcode, like [wp_eStore_textlink:product_id:1:end] (just an example) that does everything a regular shortcode link does EXCEPT call a Button URL and DOES insert the proper hyperlink to add to cart?
I imagine this could be done for “add to cart” as well as “buy it now” types of transactions, although what I need is the cart.
It would seem to me that would allow everything to tie together without the need for HTML (but then, I’m no programmer).
Thanks!
gary
January 18, 2011 at 5:07 am #28092amin007ParticipantText links use HTTP GET to pass the data between pages (its not very efficient when you have to pass a lot of data). Buttons use HTTP POST which is more secure and used for passing a lot of data between pages. Yes it is possible to do something like what you asked for but I will have to add code to handle the HTTP GET requests so it can process the link clicks.
January 18, 2011 at 5:57 pm #28093GraphicBassMemberI would hate to ask you for that, since, not being a programmer, I have no idea how involved it would be to add code. If it’s relatively simple and you choose to do it, I would appreciate it. If it’s not simple, perhaps I can pay for your time.
The other idea that occurs to me is to have a way to override the Button Image URL. I am currently using that field for my regular sales page order links, which is not appropriate for where I want to use the text links. So I would create a new, smaller and more compact graphic for use on that page, IF I have a way to override the first setting.
My last option is to create a new product, identical to the first, that specifies the new graphic. Since I have 18 different products, that’s a bunch of time.
Comments?
Thanks!
gary
January 19, 2011 at 4:35 am #28094amin007ParticipantI can add a new shortcode to the plugin that lets you override the button image. I have one shortcode that does it for the “Buy Now” type button:
[wp_eStore_buy_now_custom_button id=1 button=http://your-domain.com/images/buy-now.gif]
January 19, 2011 at 1:28 pm #28095GraphicBassMemberExcellent — that will work for the time being and help me get rid of the cumbersome Paypal code.
I would definitely like to have the override shortcode for “add to cart”, as I’m converting all the sales links to cart, rather than BIN.
Thanks!
gary
January 20, 2011 at 9:53 pm #28096GraphicBassMemberAny idea on when a card shortcode for the button image ovverride might be incorporated?
Thanks!
gary
January 21, 2011 at 6:15 am #28097amin007ParticipantHopefully in a few days.
January 22, 2011 at 9:48 am #28098GraphicBassMemberThanks!
January 22, 2011 at 10:50 am #28099wpCommerceModeratorHi, The shortcode has been added to the extra shortcode plugin. You can use the following shortcode to show the custom add to cart button –
[wp_eStore_add_to_cart_custom_button id=1 button=http://your-domain.com/images/add-to-cart.gif]
Where id= The Product ID, button = the button image URL
You need to have the latest versions of both the extra shortcode and eStore plugin for the shortcode to work.
Please get a recent build of WP eStore from here:
January 31, 2011 at 2:18 am #28100GraphicBassMemberThanks for letting me know. Sorry I’ve been late to check back in — been out of town.
gary
January 31, 2011 at 7:40 pm #28101GraphicBassMemberHi, I’ve downloaded and installed the updated WP eStore plugin (version 4.9.0 in “Settings” although the ReadMe says 4.5.5) and the “Extra Shortcodes for WPeStore” plus after deactivating and re-activating.
I then created a test page using the “Custom Button Image Add to Cart” shortcode like this:
[wp_eStore_add_to_cart_custom_button id=7 button=http://youremployeehandbook.com/images/common/add_to_cart.gif]
at:
http://youremployeehandbook.com/news/order-now-alt/
As you can see, the shortcode doesn’t seem to work.
Any ideas?
Thanks!
gary
February 1, 2011 at 3:53 am #28102wpCommerceModeratorHi, The following URL gives me a 404 (page not found) error:
http://youremployeehandbook.com/news/order-now-alt/
Please post a valid URL of the page where you placed the shortcode.
Also the URL you have specified for button image gives a 404 error:
http://youremployeehandbook.com/images/common/add_to_cart.gif
The readme file shows the last stable version of eStore. It doesn’t show the current eStore version.
February 1, 2011 at 10:55 pm #28103GraphicBassMemberOK, sorry about that. That’s the problem with posting late at night…
Here’s the corrected link:
http://youremployeehandbook.com/news/order-now-ask/
WP eStore version 4.9.0, which I received on 1/31 via an emailed link. I re-downloaded today and got 4.9.1, which still doesn’t work. Extra Shortcodes plugin is version 3.8.
Thoughts?
gary
February 2, 2011 at 4:26 am #28104wpCommerceModeratorThere was a slight bug with the version number checking. We just fixed that. Please get the latest version of eStore extra shortcode plugin from here –
Let me know how it goes.
February 2, 2011 at 4:45 pm #28105GraphicBassMemberWorks perfectly. Thanks for your efforts to create this shortcode and help debug it. It will be quite handy in my promotional efforts!
gary
-
AuthorPosts
- You must be logged in to reply to this topic.