News:

Support the VirtueMart project and become a member

Main Menu

Alias product name with product_ID

Started by hazael, September 03, 2022, 18:55:12 PM

Previous topic - Next topic

hazael

I want to modify the automatic addition of an alias to the product name.

Currently, the "Product name" in alias field is displayed like this "product-name".
In the case of a duplicate, the next number is added: "product-name-1".

I want to change this so that the alias is always followed by the unique product ID: "product-name-1234"

Which file is responsible for it - where can I modify it?

GJC Web Design

wont be straight forward as the code is used for all table saves

administrator\components\com_virtuemart\helpers\vmtable.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