News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Hide shipment description in email

Started by thefbi, February 17, 2017, 17:47:36 PM

Previous topic - Next topic

thefbi

Hello,

i am in VM 3.0.18 and Joomla 3.6.5.

I want to hide shipment description in the confirmation email. I have find a way with css to do that in the order form, but not in email. Because, the shipmentName is related to the name + description...
I have search in the com_virtuemart/invoice templates.

I have a lot of shipment, and i need some descriptions in backend to know what is for what. But i dont want this description public... It is what i want to do this feature.

Regards

GJC Web Design

the desc is stored with the name as a complete string in the table field..

so either split it off  .. I think from memory its surrounded in a <span>by php in the email template or over write the plugin name function in the plugin so as not to incl. the desc
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

thefbi

Hello,
thanks, you talk about this post ? : http://forum.virtuemart.net/index.php?topic=113044.msg455944#msg455944

Because i dont understand where i have to put this...

GJC Web Design

yes that should work if the desc is surrounded in a span

put it where ever u want the shipment name to display.. so replace the current

<td align="right" class="pricePad" colspan="6"><?php echo $this->orderDetails['shipmentName'] ?></td>

with

<td align="right" class="pricePad" colspan="6">
<?php echo substr($this->shipment_name, 0, strpos($this->shipment_name, '</span>')).'</span>';   
//       echo $this->orderDetails['shipmentName'];
     ?>
</td>

over ride

components\com_virtuemart\views\invoice\tmpl\invoice_items.php
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

thefbi

I have replace the string, but now, nothing appear. The shipment name isn't here in the email...

thefbi

OK, i have just modified the string to show a text : Shipping fees