UAE Posted December 28, 2013 Share Posted December 28, 2013 Hello, Is it possible to change the pid number in: https://mydomain.com/billing/cart.php?a=add&pid=2 I'd like to change this: https://mydomain.com/billing/cart.php?a=add&pid=2 to this (for example): https://mydomain.com/billing/cart.php?a=add&pid=1 Thanks 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted December 28, 2013 Share Posted December 28, 2013 you mean to redirect from one to the other? if so, using a .htaccess file might work... RewriteEngine On RewriteCond %{REQUEST_URI} ^/cart\.php$ RewriteCond %{QUERY_STRING} ^pid=2$ RewriteRule ^(.*)$ https://mydomain.com/billing/cart.php?a=add&pid=1 [R=302,L] 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted December 30, 2013 Share Posted December 30, 2013 You want people ordering product '2' to be sold product '1' - that'd be illegal in most countries Do you mean you want to permanently renumber the product ? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted December 31, 2013 WHMCS Support Manager Share Posted December 31, 2013 Hi, Regrettably there isn't currently an option to customise the product ID number. 0 Quote Link to comment Share on other sites More sharing options...
DennisHermannsen Posted January 1, 2014 Share Posted January 1, 2014 (edited) I think you can do it by changing the id of the product in tblproducts, but it's not something I would recommend. I don't think anything will happen to your installation, but it's really up to yourself to decide wether or not you want to do it. Edited January 1, 2014 by DennisMidjord 0 Quote Link to comment Share on other sites More sharing options...
SeanP Posted January 2, 2014 Share Posted January 2, 2014 I think you can do it by changing the id of the product in tblproducts, but it's not something I would recommend.I don't think anything will happen to your installation, but it's really up to yourself to decide wether or not you want to do it. This will break things, as that id number is used in several other tables. 0 Quote Link to comment Share on other sites More sharing options...
DennisHermannsen Posted January 3, 2014 Share Posted January 3, 2014 What exactly will it break? I just tried messing around with it, and it seems to be working fine. This is however not a live version of the website. 0 Quote Link to comment Share on other sites More sharing options...
SeanP Posted January 3, 2014 Share Posted January 3, 2014 What exactly will it break? I just tried messing around with it, and it seems to be working fine. This is however not a live version of the website. The ID of a product is all over the database (custom fields, invoice items, pricing, configuration options, upgrades, purchased products, addons, etc). Here a just a few tables I found, that contain product IDs: tblcustomfields (relid) tblinvoiceitems (relid) tblpricing (relid) tblproductconfiglinks (pid) tblupgrades (relid) tblhosting (packageid) tbladdons (packages) These are just the ones I found, off hand. There may be other places, as well. If you manually change the product ID in the tblproducts table, other things will break. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.