It is currently Wed Jul 28, 2021 2:03 am

All times are UTC + 5:30 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Mon Jun 13, 2016 2:50 pm 

Joined :
Tue Oct 20, 2015 1:17 am

Posts : 5
Dear Contus Team, unfortunately cannot find the correct .csv file where to translate the subscription terms like "Billing Frequency", "Billing Period", "Billing Cycle" etc.
I tried it with the airhotels.csv, but it does'nt worked.
Thank you for your assist


Report this post
Top
 Profile  
 
PostPosted: Tue Jun 21, 2016 12:42 pm 

Joined :
Thu Dec 17, 2015 11:45 am

Posts : 0
Hi,

For changing the text you need to change the code in the following PHP file,

/app/code/local/Apptha/Airhotels/Model/Subscriptiontype.php

Line No : 95-100

Remove the below code,

$symbol = "<span><b>Billing Frequency</b><b class='bold'>" . $subscriptionBillingFrequency . "</b></span>" . "<span><b>Billing Period</b><b class='bold'>" . $subscriptionBillingPeriodCalc ['subscriptionBillingPeriod'] . "</b></span>" . "<span><b>Billing Cycle</b><b class='bold'>" . $subscriptionBillingCycle . "</b></span>";
$symbol .= "<input type='hidden' id='subscription_price' value='" . $subscriptionPrice . "' >";
$symbol .= "<input type='hidden' id='subscription_cycle' value='" . $subscriptionBillingCycle . "' >";
$symbol .= "<span><b>Price (Per Iteration)</b><b class='bold'>" . $currencySymbol . round ( Mage::helper ( 'directory' )->currencyConvert ( $subscriptionPrice, Mage::app ()->getStore ()->getBaseCurrencyCode (), Mage::app ()->getStore ()->getCurrentCurrencyCode () ), 0 ) . "</b></span>";
$symbol .= "<input type='hidden' id='dayscount' value='" . $subscriptionBillingFrequency * $subscriptionBillingPeriodCalc ['subscriptionBillingPeriodCalc'] * $subscriptionBillingCycle . "' >";
$symbol .= "<span><b>Total Number of Nights</b><b class='bold' id='frequency'>" . $subscriptionBillingFrequency * $subscriptionBillingPeriodCalc ['subscriptionBillingPeriodCalc'] * $subscriptionBillingCycle . "</b></p>";

and then add the following code,

$billingFrequency = Mage::helper('airhotels')->__('Billing Frequency');
$billingPeriod = Mage::helper('airhotels')->__('Billing Period');
$billingCycle = Mage::helper('airhotels')->__('Billing Cycle');
$priceIteration = Mage::helper('airhotels')->__('Price (Per Iteration)');
$totalNights = Mage::helper('airhotels')->__('Total Number of Nights');
$symbol = "<span><b>".$billingFrequency."</b><b class='bold'>" . $subscriptionBillingFrequency . "</b></span>" . "<span><b>".$billingPeriod."</b><b class='bold'>" . $subscriptionBillingPeriodCalc ['subscriptionBillingPeriod'] . "</b></span>" . "<span><b>".$billingCycle."</b><b class='bold'>" . $subscriptionBillingCycle . "</b></span>";
$symbol .= "<input type='hidden' id='subscription_price' value='" . $subscriptionPrice . "' >";
$symbol .= "<input type='hidden' id='subscription_cycle' value='" . $subscriptionBillingCycle . "' >";
$symbol .= "<span><b>".$priceIteration."</b><b class='bold'>" . $currencySymbol . round ( Mage::helper ( 'directory' )->currencyConvert ( $subscriptionPrice, Mage::app ()->getStore ()->getBaseCurrencyCode (), Mage::app ()->getStore ()->getCurrentCurrencyCode () ), 0 ) . "</b></span>";
$symbol .= "<input type='hidden' id='dayscount' value='" . $subscriptionBillingFrequency * $subscriptionBillingPeriodCalc ['subscriptionBillingPeriodCalc'] * $subscriptionBillingCycle . "' >";
$symbol .= "<span><b>".$totalNights."</b><b class='bold' id='frequency'>" . $subscriptionBillingFrequency * $subscriptionBillingPeriodCalc ['subscriptionBillingPeriodCalc'] * $subscriptionBillingCycle . "</b></p>";

If so then the csv translation will work as you expected.


Report this post
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 5:30 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron