X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Third Party Add-Ons for X-Cart 5 (https://forum.x-cart.com/forumdisplay.php?f=64)
-   -   Adding Commission Integration from JROX-JAM into X-Cart 5 Multi-Vendor (https://forum.x-cart.com/showthread.php?t=78255)

Blainevk 06-06-2021 01:13 PM

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,

pauldodman 06-07-2021 03:51 AM

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.

cflsystems 06-07-2021 04:01 AM

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.

Blainevk 06-07-2021 07:44 AM

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

Blainevk 06-09-2021 01:54 PM

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.

cflsystems 06-09-2021 06:16 PM

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


All times are GMT -8. The time now is 12:19 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.