Please help us to make AbanteCart Ideal Open Source Ecommerce Solution for everyone.

Support AbanteCart eCommerce

Author Topic: Need product_id with SEOURL turned on so no Query  (Read 3067 times)

Offline soapingsupply

  • Newbie
  • *
  • Posts: 9
  • Karma: +2/-0
    • View Profile
Need product_id with SEOURL turned on so no Query
« 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>;

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2046
  • Karma: +318/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: Need product_id with SEOURL turned on so no Query
« Reply #1 on: March 06, 2018, 05:12:03 AM »
try to get it via

Code: [Select]
$this->request->get['product_id'];
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline soapingsupply

  • Newbie
  • *
  • Posts: 9
  • Karma: +2/-0
    • View Profile
Re: Need product_id with SEOURL turned on so no Query
« Reply #2 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!

 

Powered by SMFPacks Social Login Mod