Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Adding Commission Integration from JROX-JAM into X-Cart 5 Multi-Vendor

 
Reply
   X-Cart forums > X-Cart 5 > Third Party Add-Ons for X-Cart 5
 
Thread Tools Search this Thread
  #1  
Old 06-06-2021, 01:13 PM
  Blainevk's Avatar 
Blainevk Blainevk is offline
 

Senior Member
  
Join Date: Dec 2004
Location: Atlanta, GA
Posts: 162
 

Default Adding Commission Integration from JROX-JAM into X-Cart 5 Multi-Vendor

Hello,

JROX is telling me to look for the file: /customer/main/order_message.tpl in X-cart, so I can add the Commission Integration... I can't seem to find this file anywhere.

I'm using X-Cart 5 Multi-Vendor, is that why I can't find it, and if so where do I look?

ANY IDEAS?

Thanks in advance for your help,
__________________
Blaine

X-Cart Multi-vendor 5.4.1.35
PHP version: 8.1

Blaine's Travel Club - http://blainestravelclub.com

Collect Travel Points - http://blainestravelclub.com/travelpoints/rewards/

Travel Points Gift Mall - https://blainestravelclub.com/travelpoints/giftmall/

Grow Your Business - http://blainestravelclub.com/business/

Making Money & Fun - http://blainestravelclub.com/travelers/

Charitable Fun-razing - http://blainestravelclub.com/fun-razors
Reply With Quote
  #2  
Old 06-07-2021, 03:51 AM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,060
 

Default Re: Adding Commission Integration from JROX-JAM into X-Cart 5 Multi-Vendor

To confirm:
/customer/main/order_message.tpl
that's an X-Cart 4, Classic file.
__________________
Paul Dodman
e-business & m-commerce consultant
w: www.luminointernet.com
e: xcart@luminointernet.com

Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart.
Reply With Quote
  #3  
Old 06-07-2021, 04:01 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,197
 

Default Re: Adding Commission Integration from JROX-JAM into X-Cart 5 Multi-Vendor

Quote:
Originally Posted by Blainevk
JROX is telling me to look for the file: /customer/main/order_message.tpl in X-cart




This is XC4 file so you won't find it in XC5. I suspect this service have not heard about XC5 and they have no integration with it.
The order_message template in XC4 is loading on the order confirmation (thank you) page and it loads the order info/invoice. The equivalent in XC5 is the CheckoutSuccess.php controller. From there you can get what/where to load. But them it has to be done as a module and the data you need to load with the integration will be different from the XC4 one. You can't just take whatever they give you and modify files unless they give you ready XC5 module for the integration.
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #4  
Old 06-07-2021, 07:44 AM
  Blainevk's Avatar 
Blainevk Blainevk is offline
 

Senior Member
  
Join Date: Dec 2004
Location: Atlanta, GA
Posts: 162
 

Default Re: Adding Commission Integration from JROX-JAM into X-Cart 5 Multi-Vendor

Thanks, Guys for your input!

Add this to the already growing reasons why I TOTALLY REGRET purchasing XC5
__________________
Blaine

X-Cart Multi-vendor 5.4.1.35
PHP version: 8.1

Blaine's Travel Club - http://blainestravelclub.com

Collect Travel Points - http://blainestravelclub.com/travelpoints/rewards/

Travel Points Gift Mall - https://blainestravelclub.com/travelpoints/giftmall/

Grow Your Business - http://blainestravelclub.com/business/

Making Money & Fun - http://blainestravelclub.com/travelers/

Charitable Fun-razing - http://blainestravelclub.com/fun-razors
Reply With Quote
  #5  
Old 06-09-2021, 01:54 PM
  Blainevk's Avatar 
Blainevk Blainevk is offline
 

Senior Member
  
Join Date: Dec 2004
Location: Atlanta, GA
Posts: 162
 

Default Re: Adding Commission Integration from JROX-JAM into X-Cart 5 Multi-Vendor

Below you will find instructions from JROX-JAM on how to add Commission Integration into XC-4

================================================

To integrate JAM with X-Cart (XC-4), follow these steps:


1. Open up the template file /customer/main/order_message.tpl for editing.
2. Add the following integration code within the template code as given:


<TD align="right">{include file="buttons/button.tpl"
button_title=$lng.lbl_continue_shopping style="button" href="home.php"}
</TD>
</TR>
</TABLE>
<!--- START JAM INTEGRATION CODE --->
{literal}<img src="http://www.yourdomain.com/affiliates/sale/amount/{/literal}{section name=oi loop=$orders}{$orders[oi].order.subtotal}{/section}{literal}/trans_id/{/literal}{section name=oi loop=$orders}{$orders[oi].order.orderid}{/section}{literal}" alt="" />{/literal}
<!-- END JAM INTEGRATION CODE -->

================================================

<QUOTE>The equivalent in XC5 is the CheckoutSuccess.php controller.</QUOTE>

Where exactly would I find "CheckoutSuccess.php" in XC5?

ALSO,
In your best knowledge of XC5, do you think the same would hold true in adding their Commission Integration to the "CheckoutSuccess.php" in XC5 (the reason I ask, is JROX is sometimes very long to respond to inquiries)

If so, I noticed there are several "CheckoutSuccess.php" files in XC5, would you believe that I would add their Commission Integration to ALL FILES?

Looking forward to your responds,

Thanks for your help.

Blaine.
__________________
Blaine

X-Cart Multi-vendor 5.4.1.35
PHP version: 8.1

Blaine's Travel Club - http://blainestravelclub.com

Collect Travel Points - http://blainestravelclub.com/travelpoints/rewards/

Travel Points Gift Mall - https://blainestravelclub.com/travelpoints/giftmall/

Grow Your Business - http://blainestravelclub.com/business/

Making Money & Fun - http://blainestravelclub.com/travelers/

Charitable Fun-razing - http://blainestravelclub.com/fun-razors
Reply With Quote
  #6  
Old 06-09-2021, 06:16 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,197
 

Default Re: Adding Commission Integration from JROX-JAM into X-Cart 5 Multi-Vendor

You can't add XC4 code to XC5 files. It won't work. And you can't add it directly to the cart files - you have to do it with a module.
You have to look at the CheckoutSuccess.php in the View directory, there's probably one, find the template it's calling to load, eventually modify that template through the theme template editor or have new file with the view list as the rest of the "thank you" page files.


https://kb.x-cart.com/look_and_feel/theme_tweaker/template_editor.html
https://devs.x-cart.com/how-to_articles/how_to_add_google_adwords_conversion_tracking_code _to_thank_you_for_your_order_page.html - although it is for XC 5.3.x the general process is the same
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Third Party Add-Ons for X-Cart 5



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:25 PM.

   

 
X-Cart forums © 2001-2020