2 / 27
Jul 2010

Tired of adding lots of HTML button code to WordPress posts and pages?



Introducing WP E-Junkie, a quick and easy to use solution for selling product downloads using the WP E-Junkie Shopping Cart system and WordPress. All you need is an E-Junkie account, your E-junkie client id and a self hosted WordPress website.



Buttons are easily added to a post/page by pasting a small shortcode containing the product id any of your products hosted on E-Junkie.com.





The plugin is totally free and custom buttons can be added via the plugin settings page!





Download here:

74http://wpejunkie.com/74

  • created

    Jul '10
  • last reply

    Dec '17
  • 26

    replies

  • 3.5k

    views

  • 10

    users

  • 10

    links

Wow, that's fantastic! Many thanks for this; our Founder/Lead Developer is mighty impressed! :^D

9 days later

Is it possible to create a buy now button shortcode? like the add to cart and view cart button shortcodes

We did not create this plugin, so you would need to contact the plugin developer with that feature request.



I suppose you could use the plugin's "E-junkie HTML" option which allows you to paste-in what HTML the [EJUNKIE_ADD2CART] short tag should insert for a given item, rather than letting it generate cart-button code on-the-fly based on your client ID and the item ID. Normally, this custom HTML option would be used for products with Variants/Variations (since the plugin cannot generate button code including the menus/fields for those options), but it might work with Buy Now button code as well.



However, I can say that pasting-in Buy Now button code that you obtain from Seller Admin is generally not a problem for WordPress as-is. This new plugin solves a particular problem affecting our cart-based button codes (not Buy Now codes) where WordPress can sometimes mangle the JavaScript parts of the code that are required make the cart work, if special care is not taken to avoid this. Since our Buy Now buttons bypass the cart entirely, they don't need to use any JavaScript, so WordPress doesn't normally cause a problem with the button code.

1 year later

This has been a great plugin. Though it has been causing some issues with the admin panel lately, making dropdowns not work.



It would be nice if EJ would officially offer a plugin, or at least clean up their insert codes for WP. The official codes used in WP get easily broken if you do the slightest thing wrong in the page editor. I would venture to guess a good portion of their users use EJ on WP sites. Isn't time to clean things up a bit.



G

By "issues with the admin panel", do you mean Seller Admin? The WP E-junkie plugin does not interact with Seller Admin at all, so there's no possible way that plugin could be affecting the behavior of Seller Admin.



If the menus in Seller Admin itself are misbehaving, that suggests there was a connection glitch of some sort when your browser loaded the Flash for the Admin panel; usually that sort of thing can be resolved by clicking the "seller admin" link at the top of our site to reload a fresh copy of the Flash. This is one of the reasons we've been building a DHTML-based replacement for the current Seller Admin.



If the cart button menus in your page are misbehaving, that suggests some malformed HTML in the button code or, for items using Variants, possibly a mismatch between values in the menus vs. those in your Variants configuration. The WP E-junkie plugin provides a way to paste-in button code that you've copied from Seller Admin, rather than using the plugin's shortcodes for basic, no-menu Cart buttons.

Maybe I should have been more clear. The default code that you copy and paste is fussy when used in WP. It's easy to screw up the code be simply moving a line break or paragraph near it.



The alternate is the plugin for WP with simple short codes. This is clean and works really well, but it causes issues in the "WordPress admin panel". There seems to be an incompatibility. While the plugin does correctly insert the cart buttons, it breaks things with the "WP Admin" menus.



I'm not sure if EJ makes the plugin or someone else. I'd just like a better solution. Either a plugin that's updated or a cleaner copy and paste code that plays nicer with WP.

The WP E-junkie plugin was independently developed by a client of ours who saw a need for it. We would suggest contacting him with your concerns:

3http://wpejunkie.com/contact/3



Our button code can be a bit finicky about proper nesting of HTML tags, regardless of WordPress, and especially so with the FORM-based button code used for Variants/Variations menus -- e.g., as explained here:

1http://www.e-junkie.com/bb/topic/2497#post128571



It helps to think of the start and end tags for various elements in HTML as defining the edges of a container; you can put containers inside or next to other containers, but one container cannot overlap or intersect with another container. This page goes into more detail:

http://www.december.com/html/tutor/containers.html



The View Source Chart extension for Firefox (also developed by a fellow E-junkie client, as it happens :^) provides a handy way of visualizing this for the source code of any actual page:

https://addons.mozilla.org/en-US/firefox/addon/view-source-chart/

I think the WP admin text editor was updated in WP 3.2. Therefore the WP Ejunkie plugin needs to be updated to use the new text editor function. I will try to update it when I have some time. But I might end up having to fix it again when WP 3.3 launches, because they are changing the editor again.

1 month later

Hi,



Is it possible to customize with this fantastic Wordpress plugin all the text labels like "country1" and "state1", for instance?

If so, how? From the wpejunkie_functions.php file?, from the "Optional e-Junkie HTML" field when editing an e-Junkie Shopping Cart Item?



Thank you. Regards,

Luis

This help page explains how to use our cart customization code:

1http://www.e-junkie.com/ej/help.custom-cart.htm1



If you're using the WP E-junkie plugin, that already adds the script portions of our View Cart code to every page automatically, so you can just add cart customization code to each page manually (e.g., perhaps in a common footer area), where it must be enclosed in SCRIPT tags like so:



<script language="javascript" type="text/javascript">

function EJEJC_config() {

EJEJC_POSTCALL=true;

}

function EJEJC_shown() {

jQuery("#country1").attr("innerHTML", "Ship to Country");

jQuery("#state1").attr("innerHTML", "ZIP/Postal Code");

jQuery("#state2").attr("innerHTML", "Update Cart after entering");

jQuery("#dscnt_cd").attr("innerHTML", "Discount Code");

jQuery("#discount2").attr("innerHTML", "Update Cart after entering");

jQuery("#btnContShop").attr("value", "Continue Shopping");

jQuery("#btnUpdtCart").attr("value", "Update Cart");

jQuery("#EJEJC_closeWindowButton").attr("innerHTML", "<b>Close</b>");

}

</script>

Hello:



Thank you for the response.



Actually, the issue is solved without using this plugin by replacing 'jQuery' by ''ejejc_jQuery.



I haven't tried the same workaround with the wp-ejunkie plugin although I'm sure the issue can be solved that way too.



You can see the other thread explaining this issue in:

1http://www.e-junkie.com/bb/topic/3359/pg/0#post1



Thank you again E-junkieGuru for the tip! Best regards,

Luis Garcia

1 year later

It doesn't look like the plugin is being maintained. It would be great if ejunkie picked up the code and maintained it. Wordpress self-hosted has a big following and you're missing out on some business.

Hi everyone,



It became too time consuming to maintain this plugin for free. I would be happy to turn the code over to the E-Junkie Crew. Just let me know if that is something you guys would like to do? Or if someone would like to make a considerable donation, I would be happy to spend some time on it and get it working again.



Seth Shoultes

Thank you Seth for what you have done!!!! Much appreciated. E-junkie, will you pick it up and continue the plugin?

At present, all our spare development resources are dedicated to the new Admin project, but perhaps once we complete that, we might be able to look into updating the WP E-junkie plugin.



Seth, might you be willing to hand off the plugin to another developer to update and maintain going forward? If so, I've got some candidates in mind to recommend.

1 year later

This plugin looks good, but has two years is not updated.



It would be fantastic to e-junkie update this plugin or create your own, there are plans for this.?

We might consider adopting the WP E-junkie plugin or writing our own once we finish other major internal development projects for E-junkie itself. That said, adding E-junkie buttons to a WordPress site is extremely simple and typically trouble-free (especially if you use the Raw HTML plugin) -- just copy the ready-made button codes we provide and paste them into your WP pages/posts wherever you want the buttons to appear. This help page provides some tips you may find useful, including some tips for WP in particular:

1http://www.e-junkie.com/ej/help.site-blog.htm1

Thank you for your prompt response.



True, it is easy to put code in wordpress e-junkie.



Hopefully then they can pick wp e-junkie or design a new one, it would be great something like wp e-commerce or WooCommerce, that can make even more dynamic service that gives excellent e-junkie.



Soon.