Jump to content

ramin

Members
  • Posts

    42
  • Joined

  • Last visited

1 Follower

About ramin

  • Birthday 03/26/1989

Profile Information

  • Location
    Tehran, Iran
  • Activity
    Developer

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

ramin's Achievements

Newbie

Newbie (1/14)

  • First Post Rare
  • Collaborator Rare
  • Week One Done Rare
  • One Month Later Rare
  • One Year In Rare

Recent Badges

1

Reputation

  1. This is not what I was looking for. I need to sync products not just stocks
  2. I have enabled multi store with enabled shared quantities. But I need to every time that a product added/updated in shop A also be added/updated in shop B. I need this to done continuously after creating second shop.
  3. Lostrisq, this module is just a part of this project not the whole project.
  4. yes i write an module to save my data into database and show in backoffice: <?php class SaveVariables extends Module { public function __construct() { $this->name = 'savevariables'; $this->tab = 'Test'; $this->version = 1.0; $this->author = 'ramin sarmadi'; $this->need_instance = 0; parent::__construct(); $this->displayName = $this->l('savevariables'); $this->description = $this->l('Save Variables on database'); } public function install() { if (parent::install() == false OR !$this->registerHook('orderConfirmation') OR !$this->registerHook('adminOrder')) return false; return true; } public function hookOrderConfirmation( $params ) { global $cookie; $id_order = $params['objOrder']->id; $x = $cookie->x; $y = $cookie->y; $w = $cookie->w; $h = $cookie->h; $wwr = $cookie->wwr; $hwr = $cookie->hwr; if(isset($_COOKIE["imagename"])) { $image_name = $_COOKIE["imagename"]; Db::getInstance()->Execute (" INSERT INTO `variables` (`id_order`, `image_name`, `x`, `y`, `w`, `h`, `wwr`, `hwr`) VALUES ('$id_order', '$image_name', '$x', '$y', '$w', '$h', '$wwr', '$hwr') "); } else { Db::getInstance()->Execute (" INSERT INTO `variables` (`id_order`, `image_name`, `x`, `y`, `w`, `h`, `wwr`, `hwr`) VALUES ('$id_order', 'imagenotexist', '$x', '$y', '$w', '$h', '$wwr', '$hwr') "); } } public function hookAdminOrder( $params ) { global $smarty; global $base_dir; $id_order = $params['id_order']; $variabels = Db::getInstance()->ExecuteS("SELECT * FROM `variables` WHERE `id_order` = '$id_order'"); $smarty->assign(array( 'x' => $variabels[0]['x'], 'y' => $variabels[0]['y'], 'h' => $variabels[0]['h'], 'w' => $variabels[0]['w'], 'wwr' => $variabels[0]['wwr'], 'hwr' => $variabels[0]['hwr'], 'imagename' => $variabels[0]['image_name'] )); $filename = $variabels[0]['image_name']; $uploadaddress = "http://" . $_SERVER['HTTP_HOST'] . __PS_BASE_URI__ . "upload/php/files/thumbnail/" . $filename; $smarty->assign('uploadaddress', $uploadaddress); return $this->display(__FILE__, 'savevariables.tpl'); } } ?>
  5. Problem solved. Fot those who have this problem they should assign gift value into a cookie key. then get cookie in function _processcarrie in parentOrderController.php and assign to self::$cart->gift .
  6. I implement it on my site with jcrop: http://farsipresta.ir/diversso2/product.php?id_product=10
  7. I want to move gift wrapping option in checkout steps from carrier step to cart summary. I make a form in cart summary page (shopping-cart.tpl) to send status of checked box to ordercontroler.php . <form method="post" action="{$link->getPageLink('order.php', true)}"> <input type="hidden" value="1" name="step"> <input type="hidden" name="gift" id="gift" value="1"> <input type="submit" value="next" name="submit" class="exclusive"> </form> And in ordercontroller.php in method "_assignAddress" I add code blow to get value of input: protected function _assignAddress() { parent::_assignAddress(); self::$smarty->assign('cart', self::$cart); self::$cart->gift = (int)(Tools::getValue('gift')); // I added This code } But it doesn't effect on total price in order-payment step. When I manualy assign value "1" to $cart->gift it works: self::$cart->gift = 1; Please help why the form data can't be get by getValue function.
  8. Yes, if you have any designed template I can make them RTL.
  9. I want to create 3 product pages with different content instead of 1 product page. The first page includes picture, description of product and "continue to next page" button. The second page includes a Jcrop (Jquery plugin) over picture of product. The third page includes attributes and price and "Add To Cart" button. The structure must be similar to: this site Each page must can send data to other page. My question is how to create new pages and how to link them together. My prestashop version is 1.4.9 .
  10. I dont want to sold them. I want to know are they encrypted or coded?
  11. I want to buy modules from addons and my question is that are they open source and extensible?
  12. Hi, Is there any website that sales RTL arabic prestashop templates?
×
×
  • Create New...