IMPORTANT: We moved to new Unified Support Forum

Please post all new support queries in our New Forum →

The forum is in read only mode

Please access New Forum to get support: https://member.joomlart.com/forums/ijoomla
  1. Vladimir
  2. General, Sales & Billing
  3. Sunday, 04 February 2018
  4.  Subscribe via email
Off-line payment plugin for Ad Agency

How can I make a discount coupon? And how can I make the invoice date? In the image:

{ADVERTISER_NAME} - ADAG_ADVERTISER_NAME
{PACKAGE_NAME} - ADAG_PACKAGE_NAME
{AMOUNT} - ADAG_PACKAGE_PRICE
{REFERENCE_ID} - ADAG_REFERENCE_ID
{CURRENCY}...

The discount is *_ad_agency_promocodes how to get him out?


Added to the file: /models/adagencyplugin.php


$email_body = str_replace("{PACKAGE_DATESS}", $order_details["0"]["order_date"], $email_body);
$email_body = str_replace("{PACKAGE_PROMOCODE}", $order_details["0"]["promocodeid"], $email_body);
$email_body = str_replace("{PACKAGE_COMPANY}", $order_details["0"]["company"], $email_body);
$email_body = str_replace("{ADRESS_COMPANY}", $order_details["0"]["description"], $email_body
)

order_date - ok
promocodeid - ?
company -?
description -?

Please help to show the calculation of the discount, the name and address of the company!
iTeam Accepted Answer Pending Moderation
Admin
0
Votes
Undo
Hi,

We are only able to provide support for the active paid users. Currently it shows that you do not have an active Ad Agency license, if your license has expired then please help to renew to continue receiving our tech support service.
  1. more than a month ago
  2. General, Sales & Billing
  3. # 1
Vladimir Accepted Answer Pending Moderation
0
Votes
Undo
What do you mean expired? The plugin I have purchased this month!
Attachments (2)
  1. more than a month ago
  2. General, Sales & Billing
  3. # 2
Alin Dinca Accepted Answer Pending Moderation
Moderator
0
Votes
Undo
Hi Vladimir,

These changes must be done in the component as the plugin is component driven:
We added:
{ORDER_DATE} - Created Date
{PROMOCODE} - Promo Code
{DESCRIPTION} - Description

but I am not sure about {PACKAGE_COMPANY} - what you mean that? where you saw this value?

As soon we will finish, we will release a new AdAgency version that will have this fix.

Please advise.
  1. more than a month ago
  2. General, Sales & Billing
  3. # 3
Vladimir Accepted Answer Pending Moderation
0
Votes
Undo
Hi Alin. I just need to have in this plugin formed the account data of the customer (name, address...) legal entity (LLC, JSC) , not a private advertiser.

else{ // After Price
$price = $price.$space.JText::_("ADAG_C_".$currency);
}*/

$email_subject = str_replace("{ADVERTISER_NAME}", $order_details["0"]["user_name"], $email_subject);
$email_subject = str_replace("{PACKAGE_NAME}", $order_details["0"]["notes"], $email_subject);
$email_subject = str_replace("{AMOUNT}", $price, $email_subject);
$email_subject = str_replace("{REFERENCE_ID}", $order_details["0"]["oid"], $email_subject);
$email_subject = str_replace("{CURRENCY}", JText::_("ADAG_C_".$currency), $email_subject);

$email_body = str_replace("{ADVERTISER_NAME}", $order_details["0"]["user_name"], $email_body);
$email_body = str_replace("{PACKAGE_NAME}", $order_details["0"]["notes"], $email_body);
$email_body = str_replace("{AMOUNT}", $price, $email_body);
$email_body = str_replace("{REFERENCE_ID}", $order_details["0"]["oid"], $email_body);
$email_body = str_replace("{CURRENCY}", JText::_("ADAG_C_".$currency), $email_body);

//start update
$email_body = str_replace("{PACKAGE_DATESS}", $order_details["0"]["order_date"], $email_body); //ok
$email_body = str_replace("{PACKAGE_COMPANY}", $order_details["0"]["companys"], $email_body); //bad
//description or full adress from table ad_agency_advertis
$email_body = str_replace("{ADRESS_COMPANY}", $order_details["0"]["description"], $email_body); //bad


//

Attachments (1)
  1. more than a month ago
  2. General, Sales & Billing
  3. # 4
Alin Dinca Accepted Answer Pending Moderation
Moderator
0
Votes
Undo
Hi Vladimir,

All those data from plugin are coming from the component. Plugin is just displaying them. All the variables are declared in the component and not in the plugin. So, I did all the modifications in the AdAgency component. You must download latest version, install and you will have all the variables working in the plugin too. Make sense?

Alin
  1. more than a month ago
  2. General, Sales & Billing
  3. # 5
Vladimir Accepted Answer Pending Moderation
0
Votes
Undo
Hi, Alin. I see no change https://adagency.ijoomla.com/changelog
Plus I made a frontend output of the component on bootstrap, nothing will change?
  1. more than a month ago
  2. General, Sales & Billing
  3. # 6
Vladimir Accepted Answer Pending Moderation
0
Votes
Undo
Ansver:

$sql = "select a.`company` as company, a.`description` as description,a.address as address,a.city as city,a.state as state,a.zip as zip,a.telephone as telephone,o.*, u.`name` as user_name, u.`email` from #__ad_agency_order o, #__users u, #__ad_agency_advertis a where o.`oid`='".intval($sid)."' and o.`aid`=a.`aid` and a.`user_id`=u.`id`";


;)

$email_body = str_replace("{DESCRIPTION}", $order_details["0"]["description"], $email_body);
$email_body = str_replace("{PACKAGE_COMPANY}", $order_details["0"]["company"], $email_body);
$email_body = str_replace("{ADRESS_COMPANY}", $order_details["0"]["address"], $email_body);
$email_body = str_replace("{COUNTRY}", $order_details["0"]["country"], $email_body);
$email_body = str_replace("{CITY}", $order_details["0"]["city"], $email_body);
$email_body = str_replace("{STATE}", $order_details["0"]["state"], $email_body);
$email_body = str_replace("{ZIP}", $order_details["0"]["zip"], $email_body);
$email_body = str_replace("{TELEPHONE}", $order_details["0"]["telephone"], $email_body);
  1. more than a month ago
  2. General, Sales & Billing
  3. # 7
  • Page :
  • 1


There are no replies made for this post yet.
You need to login bellow to join this conversation.