- Posts: 608
- Thank you received: 13
How to remove product code from order and invoice?
- mohairbears
-
Topic Author
- Offline
thank you
Please Log in or Create an account to join the conversation.
.' '.$product->order_product_code
Please Log in or Create an account to join the conversation.
- mohairbears
-
Topic Author
- Offline
- Posts: 608
- Thank you received: 13
Another question though, Is is possible to send a duplicate email (summary of order) to another email address as well as the customer?
thanks in advance
Please Log in or Create an account to join the conversation.
$data->customer->user_email = array($data->customer->user_email,'my_other_email@gmail.com');
Please Log in or Create an account to join the conversation.
- mohairbears
-
Topic Author
- Offline
- Posts: 608
- Thank you received: 13
Yes. You can edit the email via the menu System->Emails (business version only) and add the line:
$data->customer->user_email = array($data->customer->user_email,'my_other_email@gmail.com');
It will be me that is inserting it into the wrong place most likely as php is new to me.
I have put it in email: order creation notification
Can you advise exactly where to place this to get it to work correctly please.
thanks
Please Log in or Create an account to join the conversation.
- mohairbears
-
Topic Author
- Offline
- Posts: 608
- Thank you received: 13
thanks
You need to go in the menu Display->Views and edit the files form and invoice of the view order and remove the code below from them :
.' '.$product->order_product_code
Please Log in or Create an account to join the conversation.
You can add that code right after the first <?php tag ( only in the HTML version, not in the text version ) in the order creation notification email.
The product code in the order details of the front end is located in the file form of the view order of the front end. If you edited the one in the backend, it's normal that you don't see it on the front end. Also, please make sure that you did it for the good template.
For the product code on paypal, you will have to edit the file plugins/hikashoppayment/paypal.php and change the line
$vars["item_number_".$i]=$product->order_product_code;
to something like this:
$vars["item_number_".$i]=$product->order_product_id;
Please Log in or Create an account to join the conversation.
- mohairbears
-
Topic Author
- Offline
- Posts: 608
- Thank you received: 13
<?php
/**
* @package HikaShop for Joomla!
* @version 1.4.7
* @author hikashop.com
* @copyright (C) 2010 HIKARI SOFTWARE. All rights reserved.
* @license www.hikashop.com/commercial_license.php
*/
defined('_JEXEC') or die('Restricted access');
?> **placed here** wont work
<div style="background-color: #ffffff; font-family: Verdana, Arial, Helvetica, sans-serif;font-size:12px; color: #000000; width: 100%;">
<table style="margin: auto;font-family: Verdana, Arial, Helvetica, sans-serif;font-size:12px;" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td height="10">
</td>
</tr>
<tr>
<td>
<?php echo JText::sprintf('HI_CUSTOMER',@$data->customer->name);?>
**placed here crashes system**
<br/>
<br/>
<?php
$url = $data->order_number;
$config =& hikashop::config();
if($config->get('simplified_registration',0)!=2){
$url .= ' ( '.$data->order_url.' )';
}
echo JText::sprintf('ORDER_CREATION_SUCCESS_ON_WEBSITE_AT_DATE',$url,HIKASHOP_LIVE, hikashop::getDate(time(),'%d %B %Y'), hikashop::getDate(time(),'%H:%M'));?>
</td>
</tr>
<tr>
<td height="10">
</td>
</tr>
re the product code in the customer order screen: I appear not to have a order-form in the front end? only have two order in the front end and they are listing & show
changed in the back end ok and this does what you said it would earlier, but the code still shows in the customer order section??
The Paypal query works fine.
Please Log in or Create an account to join the conversation.
--
ah right the front end one is called show and not form... sorry for that. You should edit the file show of the view order of the front end.
Please Log in or Create an account to join the conversation.
- mohairbears
-
Topic Author
- Offline
- Posts: 608
- Thank you received: 13
<?php $data->customer->user_email = array($data->customer->user_email,'sales@mohairbearmakingsupplies.co.uk'); echo JText::sprintf('HI_CUSTOMER',@$data->customer->name);?>
The product code issue is solved.
thank you
Please Log in or Create an account to join the conversation.
$user = hikashop::loadUser(true,true);
before the line:
$user = hikashop::loadUser(true);
Please Log in or Create an account to join the conversation.
- mohairbears
-
Topic Author
- Offline
- Posts: 608
- Thank you received: 13
How do I stop this? delete $vars["item_number_".$i]=$product->order_product_id; in paypal.php?
thanks
Please Log in or Create an account to join the conversation.
So yes, you need to reapply the same modification you did previously.
Please Log in or Create an account to join the conversation.
- mohairbears
-
Topic Author
- Offline
- Posts: 608
- Thank you received: 13
I have again gone through the below but there are new files so I think one of the new files must need changing.
Can you point me in the right direction please.
thanks
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- mohairbears
-
Topic Author
- Offline
- Posts: 608
- Thank you received: 13
Below is the PayPal email which has changed highlighted in red;
Cream (Tissavel) 13mm pile: Cream (Tissavel) 1/4
Item Number 2472
Honey 30mm pile **NEW**: 1/2
Item Number 2473
It appears to be pulling through both the product name & the product code where previously it would pull the product name of if that was blank then the procduct code.
The same thing is happening in the order & invoices except the item number is not showing (which is good)
There is also black margins around products which I have managed to get rid of by removing code from the CSS, there does not appear to be an option to change this without removing the code?
Please Log in or Create an account to join the conversation.
Once you customize once your CSS file, you won't get any CSS changes later on when you update. You got the CSS changes because you never customized your hikashop CSS up until now, so the system assumes that you want to keep it up to date.
The Product code can easily be removed on the orders on the front end with some CSS. For the invoice you need to edit the file invoice of the view checkout and remove it.
Please Log in or Create an account to join the conversation.