Post edited 5:40 pm – January 14, 2010 by Market Admin
Post edited 2:47 pm – September 17, 2010 by Market Admin
Post edited 2:37 pm – March 7, 2011 by Market Admin
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:
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.