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

Support AbanteCart eCommerce

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

Offline natdroid

  • Full Member
  • ***
  • Posts: 113
  • Karma: +36/-3
    • View Profile
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

  • Full Member
  • ***
  • Posts: 113
  • Karma: +36/-3
    • View Profile
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: 4358
  • Karma: +298/-10
    • 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
Please  rate your experience or leave your review
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