Author Topic: SOLVED Low stock notification email - stock quantity wrong  (Read 4255 times)

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10686
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.8.8
Re: Low stock notification email - stock quantity wrong
« Reply #30 on: January 20, 2021, 19:44:21 pm »
$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
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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

  • Jr. Member
  • **
  • Posts: 318
Re: Low stock notification email - stock quantity wrong
« Reply #31 on: January 21, 2021, 06:43:14 am »
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.2 10661 HORME3 PRO 1.9.6

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 28455
  • Always on vacation
    • Jenkin Hill Internet
Re: SOLVED Low stock notification email - stock quantity wrong
« Reply #32 on: January 21, 2021, 10:56:17 am »
Language overrides are retained after VM and Joomla updates.
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

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

Currently using VirtueMart 4.0.12 10777  J 3.10.11 PHP 7.4.30

lostmail

  • Jr. Member
  • **
  • Posts: 318
Re: SOLVED Low stock notification email - stock quantity wrong
« Reply #33 on: January 21, 2021, 11:09:14 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.2 10661 HORME3 PRO 1.9.6