How to remove product code from order and invoice?

  • Posts: 517
  • Thank you received: 8
  • Hikashop Business
13 years 8 months ago #9414

Hi, can you advise how to remove the product code from sales/order in the product box, also remove from the invoice & shipping invoice.

thank you

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13375
  • MODERATOR
13 years 8 months ago #9431

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.

  • Posts: 517
  • Thank you received: 8
  • Hikashop Business
13 years 8 months ago #9432

sorted thank you.

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 :cheer:

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13375
  • MODERATOR
13 years 8 months ago #9433

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,'This email address is being protected from spambots. You need JavaScript enabled to view it.');

Please Log in or Create an account to join the conversation.

  • Posts: 517
  • Thank you received: 8
  • Hikashop Business
13 years 8 months ago #9790

Hi, After many hours of reinstalling backups until I got a working one, this is what is causing the system error.

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,'This email address is being protected from spambots. You need JavaScript enabled to view it.');

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.

  • Posts: 517
  • Thank you received: 8
  • Hikashop Business
13 years 8 months ago #9793

Hi, this works for the below but it is still showing in the order when the customer accesses via the email link, it also going threw to PayPal, can you advise which file to amend to stop these please.

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.

  • Posts: 82868
  • Thank you received: 13375
  • MODERATOR
13 years 8 months ago #9833

Hi,

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.

  • Posts: 517
  • Thank you received: 8
  • Hikashop Business
13 years 8 months ago #9861

Hi, tried various placings for the email tag and it either place's the tag in text above the email or placing after the first <?php it crashes the system again?

<?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.

  • Posts: 82868
  • Thank you received: 13375
  • MODERATOR
13 years 8 months ago #9863

You need to add that code right after the first <?php tag and not after the ?> tag.

--
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.

  • Posts: 517
  • Thank you received: 8
  • Hikashop Business
13 years 8 months ago #9864

Sorry about this.. nearly there, the email now works but put's "array" in the Paypal email box??

<?php $data->customer->user_email = array($data->customer->user_email,'This email address is being protected from spambots. You need JavaScript enabled to view it.'); 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.

  • Posts: 82868
  • Thank you received: 13375
  • MODERATOR
13 years 8 months ago #9865

Could you edit the file plugins/hikashoppayment/paypal.php and add the line:
$user = hikashop::loadUser(true,true);
before the line:
$user = hikashop::loadUser(true);

Please Log in or Create an account to join the conversation.

  • Posts: 517
  • Thank you received: 8
  • Hikashop Business
13 years 8 months ago #11686

Hi, just updated to 1.4.8 and I am now getting 'Item Number' on the PayPal email, I guess this is a change to 'Code'?

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.

  • Posts: 82868
  • Thank you received: 13375
  • MODERATOR
13 years 8 months ago #11696

That modification was not applied to the plugin on our end. We only apply bug fixes. Customizations are not applied.
So yes, you need to reapply the same modification you did previously.

Please Log in or Create an account to join the conversation.

  • Posts: 517
  • Thank you received: 8
  • Hikashop Business
13 years 5 months ago #19015

Hi, I have updated to 1.5.1 and I am now getting the product code showing again in Invoices and orders.

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.

  • Posts: 82868
  • Thank you received: 13375
  • MODERATOR
13 years 5 months ago #19030

The code is still the same for the product_code. If you did your modifications via the menu Display->Views, you didn't lost your modifications when updating HikaShop. But if you changed/deleted/updated your template, it might.

Please Log in or Create an account to join the conversation.

  • Posts: 517
  • Thank you received: 8
  • Hikashop Business
13 years 5 months ago #19127

I did not change anything just upgraded, I have found the upgrade has made quite a few changes to the look of my site and no warnings or options to change it back.

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.

  • Posts: 82868
  • Thank you received: 13375
  • MODERATOR
13 years 5 months ago #19134

The product name and the product code has always been sent to paypal with all the versions of HikaShop. Also, HikaShop does not have control over the emails sent by PayPal.

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.

Time to create page: 0.077 seconds
Powered by Kunena Forum