Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Tweaks › Is it possible to use a text link instead of a button for 'add to cart'?
Tagged: add to cart link, estore, Text Link
- This topic has 9 replies, 4 voices, and was last updated 11 years, 2 months ago by Peter.
April 2, 2012 at 9:57 pm #6000
Is it possible to use text links instead of buttons/images for ‘add to cart’ and ‘remove’?
Example: at this site ‘order CD’ and ‘delete item’ are just text links. I like the minimalist design.
Thanks!April 2, 2012 at 10:11 pm #43685wzpModerator
Check our documentation on this here:
Basically, You can create a link like the following:
Just replace “1” with the desired product ID. You will need to install the eStore extra shortcodes package.
https://support.tipsandtricks-hq.com/forums/topic/calling-add-to-cart-externallyApril 2, 2012 at 10:28 pm #43686
I don’t understand your answer. (I do have the extra shortcodes package installed.)
In case I wasn’t clear, in the same positions of the ‘add to cart’ button, and the ‘remove’ button, I just want text links (preferably ones which can change color upon hover).April 3, 2012 at 12:48 am #43687
I tried adding that code to my page – first in the page’s Visual editor, then in the HTML editor. In both cases, the full link code just appeared on the page instead of a clickable link.
I checked, and the extra shortcodes plugin is activated.
Do I really just need the domain name, or the actual directory where the plug-in is installed?April 3, 2012 at 1:57 am #43688
One more thing:
My site is currently on a subdomain during development. Does this matter for the purposes of that link?
i.e., the current ULR is sitename.hostserver.com
When it’s ready to go live, it’ll move to sitename.com
Thanks!April 3, 2012 at 6:30 am #43689adminKeymaster
The URL just need to be on the same site where eStore is installed. For example: if your eStore is installed in the site “www.subdomain.main-domain.com” then use the following to add an item to the cart on that site using the following link:
www.subdomain.main-domain.com/?wp_eStore_add_to_cart=1April 3, 2012 at 6:36 am #43690
Thanks – I did have the correct URL in the attempts described above (post #31743), and it didn’t work.
I tried adding the code in both in the ‘visual editor’ and the ‘html editor,’ and in both cases it just displayed the code rather than a link.
Here’s an example on a test page:
[http://bobkarty.pairsite.com/past-performances-of-note/]April 3, 2012 at 6:46 am #43691adminKeymaster
When you create a link you have to specify a destination URL. You use the following URL as your destination URL.
This URL won’t do anything special until you make it a link. When you make a link people will be able to click on it and it will take them to the site and add the item to the cart at the same time.April 3, 2012 at 7:04 am #43692
The page in the URL has to be the page you want them to end up on after adding to the cart. I’m not sure I’m using it the way it was intended (in my case, the link is on the same page as the cart), but it works.
Does this require any more ‘work’ on the part of the server than using the basic ‘add to cart’ button, and if so, is the difference significant? It seems that when I use the link, the entire page re-loads, but when I use the button, just the body (not the background) re-loads.
Also: how can I move the text closer to the audio player?
Thanks!April 3, 2012 at 12:03 pm #43693PeterMember
“how can I move the text closer to the audio player?”
You should be able to easily achieve this via a CSS tweak by experimenting with firebug – eg, maybe adjust the padding etc.
See this post for some info about firebug and changing css:
- You must be logged in to reply to this topic.