Skip to content

Commit

Permalink
Bump version to 1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
rostber committed Sep 25, 2015
1 parent 6a9e19d commit 5f811a6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion convead/lib/config/install.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* @author Vladimir Savelyev
* @link http://convead.ru/
* @copyright Copyright (c) 2015, EasyIT LLC
* @version 1.0, 2015-09-15
* @version 1.1, 2015-09-25
*
*/

Expand Down
10 changes: 5 additions & 5 deletions convead/lib/config/plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
16 => 'img/logo.png'
),
'shop_settings' => true,
'version'=>'1.0',
'vendor'=>1027096,
'frontend' => true,
'version' => '1.1',
'vendor' => 1027096,
'frontend' => true,
'handlers' => array(

# emulate cart_set_quantity and cart_add event
'routing' => 'routing'
// emulate cart_set_quantity and cart_add event
'routing' => 'routing',
//'cart_add' => 'update_cart',
//'cart_set_quantity' => 'update_cart',

Expand Down
6 changes: 5 additions & 1 deletion convead/lib/shopConvead.plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ class shopConveadPlugin extends shopPlugin
public function routing($params)
{
$uri = waRequest::server('REQUEST_URI');
if (strpos($uri, '/shop/cart/add/') !== false and !empty($_POST['product_id']) or (strpos($uri, '/shop/cart/save/') !== false and !empty($_POST['quantity']) and !empty($_POST['id']))) $this->update_cart();
if (
(strpos($uri, '/shop/cart/add/') !== false and !empty($_POST['product_id']))
or
(strpos($uri, '/shop/cart/save/') !== false and !empty($_POST['quantity']) and !empty($_POST['id']))
) $this->update_cart();
}

public function update_cart($params)
Expand Down

0 comments on commit 5f811a6

Please sign in to comment.