Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9691

URL parameters with unique product ID per row

$
0
0

A company sells a lot of carrots; every Carrot has a unique product ID.

I want the first row, containing a 9 digit product-ID to make every ID into a clickable URL format, containing a treated string corresponding to the product-ID.

Here is an example of a given URL:

https://example.com/wp-admin/edit.php?action2=-1&action=-1&fb_sync_enabled&paged=1&post_status=all&post_type=product&product_type&s=010666666&stock_status

The ID's are made out of 9 digits, separated past the fourth one by a hyphen.

In order to create a functioning URL the hyphen needs to be removed.

For the above mentioned example, the product ID with that very clickable link would be 01066-6666 .

A 1 is a title and should thus be ignored.

Any method that renders this result is the right one.


Viewing all articles
Browse latest Browse all 9691

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>