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

Browse view order products correctly by name if it contains numbers

Started by Piszi, September 02, 2014, 16:56:43 PM

Previous topic - Next topic

Piszi

Hello,

I have a problem with my browse view if I set the default ordering to product name and the product name contains numbers than the ordering is wrong. And have over 500 products so the custom order is not an option for me.
For example in my case I have product names like this:
Product (A), Product (B), Product (1), Product (2), Product (3) Product (10), Product (20)
Than it orders like this:
Product (A)
Product (B)
Product (1)
Product (10)
Product (2)
Product (20)
Product (3)

Which is wrong because it should be like this:
Product (A)
Product (B)
Product (1)
Product (2)
Product (3)
Product (10)
Product (20)

Is there a way to modify this?

GJC Web Design

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

Piszi

Sadly not, the manufacturer calls its products like this. for example: Complex System (A) or Complex System CS1 L/P

Piszi

Ok I came up up with a temporary solution but it works only if all the products are shown on one page. I did a usort() with strnatcmp() in the category default.php right before the foreach. But for permanent solution I think I have to edit the mysql query or at least the result of the query. Maybe I'm tired or I don't see the forest because of the tree :) but I can't seem to finde the query.
Does anyone know in which file should I look for it?

by the way it would be a nice feature if the dev team could implement a natural sort at least on the product name and maybe on the product sku

GJC Web Design

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