Topic RSS
E-junkie is a great system for handling digital products. It's only $5 a month, and you can have a bunch of different product listings.
Here's a quick overview of how to convert Market theme to work with e-junkie digital downloads…
*** A word of Caution ***
By doing the following changes to convert your store to offer digital downloads (fulfilled by e-junkie), your Market Theme store will no longer work with regular products. We are customizing the code to integrate with e-junkie transaction processing, rather than the typical Paypal checkout configuration.
*********************
Ok, first you'll create listings for your products through the Market theme product manager in your WordPress site.
For each of the listings you create, write down the product post ID generated for each. (You can see the post ID if you hover over the listing in the "Manage Posts" area of the WP administration area.
Next, you'll need to enter the products into your e-junkie account. (You'll also want to setup the rest of the administration settings including profile, thank you page information, your Paypal ID, etc.)
For each product you enter in e-junkie, Under the "Item Number" field of the Product Configuration page, enter the WordPress product post ID that you wrote down.
Make sure you save all your product entries.
Next, you'll need to do some modifications to the Market Theme product display page.
The following code changes are for Market Theme versions PRIOR to 3.5. For the code changes to versions AFTER Market Theme ver 3.5, scroll down toward the end of this post.
============== For Market Theme Versions PRIOR to 3.5 ============
Open up the file "single.php" for editing (this is one of the Market theme files). (You can edit it through the WordPress administration area using the theme editor.)
Search for the following line:
<input type="image" src="<?php bloginfo('template_directory'); ?>/imgs/bn.gif" class="pp" border="0" name="submit" alt="Make payments with PayPal – it's fast, free and secure!">Replace this code with the following "buy now" code to disable the current code and replace with an e-junkie link:
<?php /*<input type="image" src="<?php bloginfo('template_directory'); ?>/imgs/bn.gif" class="pp" border="0" name="submit" alt="Make payments with PayPal – it's fast, free and secure!">*/ ?>
<a href="https://www.e-junkie.com/ecom/gb.php?i=<?php the_ID(); ?>&c=single&cl=XXXXX" target="ejejcsingle"><img src="http://www.e-junkie.com/ej/x-click-butcc.gif" border="0" alt="Buy Now"/></a>In the line above, find where it says "cl=XXXXX". Replace the "XXXXX" with your e-junkie client ID.
(You can find your e-junkie client ID number by clicking the "View Account Summary" link within your e-junkie administration area.)
Ok, the final step is to disable the regular "add to cart" function from displaying.
A couple of lines beneath where you pasted the code above, you will find the following line:
<!-- Start Vcart Code -->
Immediately AFTER this, enter the code "<?php /*" so that your result looks like this:
<!-- Start Vcart Code --><?php /*
Next, scroll down until you find the line:
<!-- End Vcart Code -->
Immediately AFTER this, enter the code "*/ ?>" so that your results looks like this:
<!-- End Vcart Code -->*/ ?>
Save the file, and test it out.
============== For Market Theme Versions AFTER 3.5 ============
Open up the file "single.php" for editing (this is one of the Market theme files). (You can edit it through the WordPress administration area using the theme editor.)
Search for the following lines:
<?php if($mkt_outstock != 1) { ?>
<input type="image" src="<?php bloginfo('template_directory'); ?>/imgs/bn.gif" class="pp" border="0" name="submit" alt="<?php echo mkt_THEME_SINGLE_BUTTON_BUYNOW; ?>">
<?php } else { ?>Replace this code with the following code to both disable the current code and replace it with an e-junkie link:
<?php if($mkt_outstock != 1) { ?>
<!-- <input type="image" src="<?php bloginfo('template_directory'); ?>/imgs/bn.gif" class="pp" border="0" name="submit" alt="<?php echo mkt_THEME_SINGLE_BUTTON_BUYNOW; ?>"> -->
<a href="https://www.e-junkie.com/ecom/gb.php?i=<?php the_ID(); ?>&c=single&cl=XXXXX" target="ejejcsingle"><img src="http://www.e-junkie.com/ej/x-click-butcc.gif" border="0" alt="Buy Now"/></a>
<?php } else { ?>In the line above, find where it says "cl=XXXXX". Replace the "XXXXX" with your e-junkie client ID.
(You can find your e-junkie client ID number by clicking the "View Account Summary" link within your e-junkie administration area.)
Save the file.
Lastly, you'll need to go into the Market Theme options settings area, and change your Store's Checkout Method from Shopping cart to the Single Click Buy-now method.
Click the "Activate Changes" button at the bottom to save.
Now test it out.
======================================
Again as stated in the beginning of this post, for each product you create, make sure that you enter your WordPress product post ID into the "item number" field of the product configuration area.
You'll also have to upload your digital product to e-junkie, but you probably already figured that out when you setup your e-junkie product settings.
I think that should do it.
So what about fashion items can e-junkie still work,whereby buyers can pay by creditcards..
But e-junk site states " E-junkie provides shopping cart and buy now buttons to let you sell downloads and tangible goods on your website,eBay, MySpace, Google Base, CraigsList and other websites using PayPal Standard, PayPal Pro, Google Checkout,Authorize.Net, TrialPay, ClickBank and 2CheckOut."
Therefore, these feature can be applied when adapt it to market3 ?
I'm confused…
Do you want to sell digital products or tangible goods? (Or is it that you want to sell both at the same time?)
If you want to sell tangible goods, you should be fine with the standard install, just going through Paypal. There isn't really a need for e-junkie for tangible goods.
Now if you wanted to sell digital download products, that's where e-junkie makes sense to use.
You can setup the Market theme as it is to direct users to a download area by just specifying the "return URL" link for Paypal to send the visitor once purchase is completed — however I don't generally recommend that, because it's not really a secure method for keeping non-payers out of your download area. Specifically, if someone shares the download page link to some of their friends, they could go directly to that page without paying. That's where e-junkie can come in handy. You can just setup your e-junkie account to provide your users the downloaded file.
If your goal is to see physical goods and digital goods at the same time with the Market theme, I'm not immediately sure if you can easily do it. The reason, is because the theme is coded primarily to work using its own included shopping cart system. In order to use e-junkie, you have to change the code so that it DOES NOT use the internal Market theme shopping cart system. And once you do that, you change the functionality.
Basically, with the method I outlined above — you can have one or the other, but not both at the same time.
On a more positive note however, I'll talk to our coders about it and see if we can figure out a way to do both. I'll at least try to figure out a way to use an alternative (like e-junkie) without having to change coding as much. Something that's easier to set through a "settings" area or something.
Hi,
Is there anything new on this topic?
I also have products and ebooks waiting to be added to my store and really don't want to disable the integrated paypal buttons since they work fine.
So, how can I use e-junkie for selling ebooks from the market theme website??
Before purchasing this theme I'm pretty sure there was this option of selling products as well as digital products with market theme mentioned somewhere.
Can anyone help?
Thanks,
Daria
For right now, Market is pretty much setup to be either/or, unless you're ok selling a digital product through the regular means, and then fulfilling it manually when you review your Paypal orders.
Your dilema however gives us some ideas about how to give Market the ability to handle both types of products at the same time.
We'll think about some ways it could be done, and try to work them into a future release.
You can sell physical goods and digital goods through e-junkie and use paypal for the processing.
I am currently using market theme / plugin to sell digital products (embroidery files) using e-junkie to provide the digital delivery. This works great by the way. No customer has complained yet about not being able to download once they purchased. The alternative shopping cart system for Wordpress was much less reliable. The other nice thing about using e-junkie is that we add authorize.net and any other payment methods that e-junkie supports seamlessly without making any changes to wordpress, the theme or plugin. E-junkie even takes care of the SSL during it's checkout process. One last advantage of using e-junkie is that it has a built in affiliate program. As you can tell, I'm pretty happy with it so far!
Thank you ptocknell,
Your suggestion is definitely something I want to think about. My only objection is that I've been redoing and fixing my Arts Booutique website for so long that I really don't feel like starting from scratch once again… especially since it just started to look like an art gallery – and close to what I emagined.
I am trying to use e-junkie, have completed the required modifications as listed above (AFTER Market Theme ver 3.5) and am experiencing issues. Currently upon clicking the 'add to cart' button, a blank empty page loads - mk3/ajCart/cart.php. I have verifed that my WP post ID and e-junkie product ID match. Any advice/assistance would be greatly appreciated!
Did things work before you did the e-junkie modifications, or did you even test it then?
You might try changing the product images path from absolute, to "relative" in your "Market Theme" options area in your WP admin dashboard.
If that doesn't work, please include a link to your website so we can take a look.
February 23, 2011 @ 4:54 pm CST
I've setup everything in my market theme based WP site except for the product post ids in e-junkie. When I "hover" over a listing, I'm not getting an individual product id number; I'm getting the name of the listing or the permalink url with a unique id within the url. Is that what's being referred to in the e-junkie instructions?
Also, when I click on a listing, I get an error "Parse error: syntax error, unexpected T_ELSE in /home/ejubert/public_html/DigitalJobAids.com/wp-content/themes/mk4/single.php on line 279"
what's do this error mean? Is it due to my not having entered in the product post id into e-junkie?
Everything else has been done according to the letter of the instructions…
Eric
Ok, I had to answer my own question to the "post id" riddle in order to get the work done. Here it is:
1 – go to the "product reports" section of the "Market Theme" admin area of WP
2 – hover the mouse pointer over the "Title" or "View" fields for a product listing
3 – Look at the bottom left corner of Internet Explorer; you will see either "post =" or "p ="; the number is what is entered into e-junkie.
4 – enter the post id number you found for each product in wordpress into the e-junkie "Item Number" field for each product
That's it! Changing the code must come after you have completed entering in ALL of product id numbers into each e-junkie listing that's also listed in the WP Market Theme.
I just wish this simple explanation was here for me
, but at least those that follow me will not have to waste fishing for the answers. Good luck!
UPDATE
==========================
With Market Theme version 4.0 and up, the changes are a little different and are actually MUCH easier.
In fact, it can be done without any code modification at all. (Except for maybe a graphic image change.)
Here's the post for Market Theme version 4.0 and up.
http://www.markettheme.com/for…..4-0-and-up
Most Users Ever Online: 40
Currently Online:
22 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Member Stats:
Guest Posters: 428
Members: 2252
Moderators: 1
Admins: 1
Forum Stats:
Groups: 1
Forums: 4
Topics: 2983
Posts: 16042
Newest Members: Allsed, deleteduser, shanm, slidesketch, jimharrison, vmi
Moderators: Market Admin (5051)
Administrators: Market Admin (5051)

Log In
Register
Home
Offline

