- Posts: 138
- Thank you received: 0
Styling and adding text on checkout thank u
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
%s is indeed used to pass variables.
You can do like that:
$orderClass = hikashop::get('class.order');
$order = $orderClass->get($order_id);
$app =& JFactory::getApplication();
$app->enqueueMessage( JText::sprintf('THANK_YOU_FOR_PURCHASE',$order->custom_field_column_name) );
And then in your translation file:
THANK_YOU_FOR_PURCHASE="thank you for your funding to %s"
You of course need to replace the custom_field_column_name by the actual field name of your custom field of the table "order".
Please Log in or Create an account to join the conversation.
?>
<?php
$orderClass = hikashop::get('class.order');
$order = $orderClass->get($order_id);
$app =& JFactory::getApplication();
$app->enqueueMessage( JText::sprintf('THANK_YOU_FOR_PURCHASE',$order->address_charity) );
Thanks
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
You should create a custom field of the table "order" if you want to access it there.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
It is the exact price difference between the Business edition and the Essential edition.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.