J2Store (Joomla! Extension) integration
A shopping cart and e-commerce extension that extends articles as products and lets you to turn articles into full fledged products.
How to integrate PostAffiliatePro with J2Store (Joomla! Extension)
Offline sale
Open file:
plugins/j2store/payment_offline/payment_offline.php
and find function _postPayment and this line within it:
if ($orderpayment->save()) {
Add this code right above the line:
$vars->order_id = $orderpayment->order_id;
$vars->total_cost = $orderpayment->order_subtotal;
Save your work. Now open file:
plugins/j2store/payment_offline/payment_offline/tmpl/postpayment.php
and add this code to the end of the file:
<script id="pap_x2s6df8d" src="https://URL_TO_PostAffiliatePro/scripts/trackjs.js" type="text/javascript"></script>
<script type="text/javascript">
PostAffTracker.setAccountId('Account_ID');
var sale = PostAffTracker.createSale();
sale.setTotalCost('<?php echo $vars->total_cost; ?>');
sale.setOrderID('<?php echo $vars->order_id; ?>');
sale.setStatus('P');
PostAffTracker.register();
</script>
Save your work. This will create a pending commission for each offline transaction. You will have to approve or decline it manually later – based on the original transaction.
PayPal – step 1
Find file:
plugins/j2store/payment_paypal/payment_paypal/tmpl/prepayment.php
and find the notify_url input field. It looks something like this:
<input type="hidden" name="notify_url" value="<?php echo JRoute::_( $vars->notify_url ); ?>" />
and into that field add:
id='pap_ab78y5t4a'
The updated field is supposed to look like this:
<input id='pap_ab78y5t4a' type="hidden" name="notify_url" value="<?php echo JRoute::_( $vars->notify_url ); ?>" />
Right under that notify_url input field (so right under that line of code) place this code below:
<!-- Post Affiliate Pro Integration snippet -->
<script id="pap_x2s6df8d" src="https://URL_TO_PostAffiliatePro/scripts/trackjs.js" type="text/javascript"></script>
<script type="text/javascript">
PostAffTracker.writeCookieToCustomField('pap_ab78y5t4a', '', 'pap_custom');
</script>
<!-- /Post Affiliate Pro Integration snippet -->
PayPal – step 2
Open file:
plugins/j2store/payment_paypal/payment_paypal.php
and find function _process() and this line within it:
$data = $app->input->getArray($_POST);
Now add this code below right above that line:
/* Post Affiliate Pro integration snippet */
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://URL_TO_PostAffiliatePro/plugins/PayPal/paypal.php?pap_custom=".@$_GET['pap_custom']);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $_POST);
curl_exec($ch);
/* /Post Affiliate Pro integration snippet */
Do not forget to integrate you Joomla with the click tracking code and to activate the PayPal IPN Handling plugin in your installation of Post Affiliate Pro.

What is J2Store?
J2Store is a native, flexible, and modern eCommerce solution designed specifically for the Joomla Content Management System. It empowers users to utilize Joomla articles as products, simplifying the process of product creation and management within the familiar Joomla environment. With J2Store, setting up an online store becomes a seamless experience, as it integrates eCommerce components directly into Joomla, allowing for easy downloading, installing, and configuring without the need for external platforms.
Over the years, J2Store has established itself as a trusted eCommerce solution within the Joomla community. However, due to increasing development costs and declining revenue, its development has ceased. Despite this, J2Store remains open-source, inviting the community to fork and enhance its capabilities. This open-source nature has led to the creation of J2Commerce, a forked version that continues to evolve through community-driven initiatives, ensuring that the essence of J2Store lives on.
J2Store for Small and Medium Businesses
J2Store is tailored for small to medium-sized eCommerce businesses and online store owners who prefer managing their stores within the Joomla framework. By leveraging Joomla’s article management system for product catalogs, J2Store offers an intuitive and accessible platform for users already familiar with Joomla. This integration simplifies store management, making it easier for businesses to maintain their online presence without extensive technical knowledge.
Key Features of J2Store
J2Store stands out with a plethora of features designed to enhance the eCommerce experience within Joomla:
- Seamless Integration with Joomla: Utilize Joomla articles as products for a unified content and commerce experience.
- Customizable Shopping Carts: Tailor shopping cart functionalities to suit your store’s needs.
- Advanced Inventory Management: Keep track of stock levels with sophisticated inventory tools.
- Flexible Product Options: Offer various product variants and options to customers.
- User-Friendly Interface: Manage your store with ease using an intuitive interface.
- Payment and Shipping Integrations: Access multiple payment gateways and shipping methods.
- Robust Customer Support: Benefit from strong support and comprehensive documentation.
- Developer-Friendly Approach: Enjoy advanced e-commerce capabilities compared to other Joomla plugins.
Pricing Options with J2Store
J2Store offers flexible pricing models to accommodate different business needs:
- Yearly Knife Pack: $200.00 every year for 2 years.
- Deliver Earrings Monthly: $25.00 every month for 10 months.
- Weekly Magazine Subscription: $5.00 every week.
These diverse options highlight J2Store’s adaptability in providing pricing solutions that cater to various user requirements.
User Insights on J2Store
Understanding user experiences is crucial for evaluating any product. Here’s what users are saying about J2Store:
- Pros:
- Simplicity and ease of use within the Joomla environment.
- Intuitive integration that leverages existing Joomla knowledge.
- Outstanding support and comprehensive documentation.
- Ideal for small to medium-sized stores seeking straightforward solutions.
- Cons:
- Limited development resources leading to fewer updates.
- Occasional slow responses from support.
- Lack of active community forums for user engagement.
- Restricted features compared to more expansive eCommerce solutions.
- Overall Experience:
- Users appreciate J2Store’s functionality and the convenience of managing everything within Joomla. However, there are concerns about the pace of development and certain feature limitations that could impact scalability for growing businesses.
Exploring J2Store Through YouTube Reviews
For a more dynamic understanding of J2Store, consider watching the following YouTube reviews:
These videos provide in-depth looks at J2Store’s functionalities, user experiences, and practical applications.
Alternatives to J2Store
If you’re considering other options besides J2Store, here are some notable alternatives within the Joomla ecosystem:
- VirtueMart: VirtueMart
- Sellacious: Sellacious
- Phoca Cart: Phoca Cart
- HikaShop: HikaShop
- EShop: EShop
- Instant Pro Shop: Instant Pro Shop
- Quick2Cart: Quick2Cart
- Breezing Commerce: Breezing Commerce
- JoomDonation eShop: JoomDonation eShop
- J2Commerce (the forked successor of J2Store): J2Commerce
Discover Post Affiliate Pro's flexible pricing plans tailored to fit your business needs, with options for Pro, Ultimate, and Network packages. Enjoy a free trial with no credit card required, no setup fees, and the freedom to cancel anytime. Benefit from features like unlimited affiliates, advanced reporting, customizable interfaces, and lifetime support. Save up to 20% with annual billing and take advantage of more than 220 integrations. Perfect for businesses seeking to enhance their affiliate marketing efforts. Visit now to find the ideal plan for you!
Discover the essentials of clicks (referrals) tracking with our comprehensive guide. Learn about the importance of click tracking code, explore various code examples including simple, asynchronous, and PHP versions, and dive into advanced tracking options. Optimize your affiliate marketing strategy with expert tips on setting account IDs, managing cookies, and customizing tracking parameters. Visit now to enhance your click tracking implementation!
Discover the power of the Lifetime Commissions plugin! Ensure lifetime referral tracking with unique customer identifiers, allowing affiliates to earn commissions on future sales without repeated clicks. Easily manage customer-affiliate relations and configure settings to suit your needs. Boost your affiliate program's efficiency with customizable options and ensure commissions for affiliates, even across different devices or channels. Explore seamless integration with eCommerce systems and enhance your marketing strategy today!