SOLVED Low stock notification email - stock quantity wrong

Started by lostmail, January 18, 2021, 14:14:39 PM

Previous topic - Next topic

GJC Web Design

$vars['mailbody'] =vmText::sprintf('COM_VIRTUEMART_PRODUCT_LOW_STOCK_EMAIL_BODY',$link, $vars['product_in_stock'] - $vars['product_ordered']);

assuming there is a   $vars['product_ordered']

check first

print 'Debug Line '.__LINE__.' pos <pre>'; print_r ($vars['product_ordered']); print "</pre><br />\n"; die();
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

lostmail

#31
YEAH !
That`s right now !

Will replace "Lagerbestand" with "Verfügbarkeit"...as language override; than message is PERFECT.

But how can i ensure that with next update the changement is not be overwritten ?
Saving as override does not work in this case I think.
Joomla 3.x | VirtueMart 4.0.12 107771 | HORME3 PRO 1.9.6 / 2.0
VirtueMart 4.2.4 | Joomla 4.4.1 | PHP 8.1 | Vp_neoteric 1.3

jenkinhill

Language overrides are retained after VM and Joomla updates.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

lostmail

Quote from: jenkinhill on January 21, 2021, 10:56:17 AM
Language overrides are retained after VM and Joomla updates.

Yes i know, but i ment the modification in \administrator\components\com_virtuemart\models\product.php
Joomla 3.x | VirtueMart 4.0.12 107771 | HORME3 PRO 1.9.6 / 2.0
VirtueMart 4.2.4 | Joomla 4.4.1 | PHP 8.1 | Vp_neoteric 1.3