AbanteCart Community

AbanteCart Development => Customization help => Topic started by: soapingsupply on March 05, 2018, 11:33:32 PM

Title: Need product_id with SEOURL turned on so no Query
Post by: soapingsupply on March 05, 2018, 11:33:32 PM
ok I'm modifying head.tpl so I don't have access to anything in product yet.

The wife turned on seourl -SOOOO  I cannot get the product_id from the query anymore.

I'm sure its easy but I need another set of eyes on this.
I cannot find anything to use in get_defined_vars or $_SERVER

Do you need to hit the database url_aliases? or is there an easier way of getting the product_id

$product_id = <cool php code that has alluded me>;
Title: Re: Need product_id with SEOURL turned on so no Query
Post by: abolabo on March 06, 2018, 05:12:03 AM
try to get it via

Code: [Select]
$this->request->get['product_id'];
Title: Re: Need product_id with SEOURL turned on so no Query
Post by: soapingsupply on March 06, 2018, 07:41:51 AM
Thanks!

I swear I tried that before but it worked.  So I'm not going to think about it too much.



Have fun!