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

shortened sef url with Product SKU

Started by ezynet, December 09, 2015, 04:41:34 AM

Previous topic - Next topic

ezynet

I want to be able to have a QR code on the product to go to the product page on my website.
I can only have up to 30 characters so for the url instead of http://xxx.com/shop/auto-locks/audi-igntion-barrel-for-audi-80-c-12-103_ I would like the sef links to simply be something short like:  http://xxx.com/AUD-IC-01 the last digits is the product_sku code

I am using Joomla 3.4.5 with Virtuemart 3.0.12.  I have installed artio joomsef but still cannot work out how to do this... Any help anyone could give me in how to make this happen would be greatly appreciated.

GJC Web Design

the sef url is simply the product alias..  set them to what you want
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

Studio 42

#2
If you have not many products, you can use .htaccess rules
eg.
RewriteRule ^QRA-(.*)$ http://yoursite.com/shop/cat-a/$1-detail [R=301,L]
RewriteRule ^QRB-(.*)$ http://yoursite.com/shop/cat-b/$1-detail [R=301,L]

Then you can shorten your url to http://yoursite.com/QRA-productname for real link http://yoursite.com/shop/cat-a/productname -detail
I think that using yoursite.com/QRA-productname should be valid to set a link, but do some test

ezynet

i have over 1700 products... :( so one by one is not going to work for me...  I need to be able to automate it to just be my domain name/product_sku by default. is there any way to do that easily?

GJC Web Design

Stu 42's suggestion would men you would only need as many rules as categories
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

ezynet

That does work but instead of using the product name is there anyway of using the product sku code so that its even more shortened (the names on my site can get quite long)
ie  http://xxx.co.nz/QRA-AUD-IC-01 instead of  http://xxx.co.nz/QRA-audi-igntion-barrel-for-audi-80-c-12-103

GJC Web Design

why are u worried about long?  as I read it people believe "informative" urls are better for SEO
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

ezynet

 I want to be able to have a QR code on the product to go to the product on the website
I can only have up to 30 characters

Studio 42

SO this need then a special Joomla plugin that check the URL and redirect to right product.
I think it's the lightest solution to develop.

Milbo

No, he just needs to use the last version and use either the svn for the last router, or he buys the membership. There is a new option, called seo_full
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/