Author Topic: Abantecart 1.2.5 all extensions problem  (Read 2101 times)

Offline natdroid

  • Jr. Member
  • **
  • Posts: 96
  • Karma: +27/-2
    • View Profile
    • Contact
Abantecart 1.2.5 all extensions problem
« on: November 19, 2015, 12:42:21 PM »
Hello, AbanteCart team. 
Recently we had a customer write in broken extensions with 1.2.5
In what universe product urls from shopping cart differ from standard url?  :(
Why http://localhost/index.php?rt=product/product&product_id=116 reverted to http://localhost/index.php?rt=product/product&key=116:c02e4b65f5afd23e0c568d04b9c85ef5  (SEO 2.0?)
All extensions broken and how to get prod.ids? we're tired of update the code because of 'unnecessary mini changes every month  :'(



Offline natdroid

  • Jr. Member
  • **
  • Posts: 96
  • Karma: +27/-2
    • View Profile
    • Contact
Re: Abantecart 1.2.5 all extensions problem
« Reply #1 on: November 20, 2015, 10:10:49 AM »
Hello community, I had a problem, but now I have found a solution:
(for those who have the same problem.)

Quote
$product_id = $this->baseObject->request->get['product_id'];
       if(empty($product_id)){//cart revert
      $product_id = $this->baseObject->request->get['key'];}

Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 4147
  • Karma: +251/-9
    • View Profile
    • Ideal Open Source Ecommerce Solution
Re: Abantecart 1.2.5 all extensions problem
« Reply #2 on: November 21, 2015, 11:09:29 AM »
I suggest that you set this code at the beginning of the function
Code: [Select]
$that = $this->baseObject;
And reference $that->request->....

This way, code looks shorter and you can distinct local scope from core scope
We need your help to build better free open source eCommerce platform for everyone.
See how you can help

 

Powered by SMFPacks Social Login Mod