Jump to content

tomi

Members
  • Posts

    15
  • Joined

  • Last visited

1 Follower

tomi's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Może komuś się przyda. Powinno pomóc przynajmniej ze znikającymi atrybutami po odbudowaniu atrybutów. Zamień: Db::getInstance()->execute(' INSERT INTO `'._DB_PREFIX_.'layered_product_attribute` (`id_attribute`, `id_product`, `id_attribute_group`, `id_shop`) SELECT pac.id_attribute, pa.id_product, ag.id_attribute_group, product_attribute_shop.`id_shop` FROM '._DB_PREFIX_.'product_attribute pa'. Shop::addSqlAssociation('product_attribute', 'pa').' INNER JOIN '._DB_PREFIX_.'product_attribute_combination pac ON pac.id_product_attribute = pa.id_product_attribute INNER JOIN '._DB_PREFIX_.'attribute a ON (a.id_attribute = pac.id_attribute) INNER JOIN '._DB_PREFIX_.'attribute_group ag ON ag.id_attribute_group = a.id_attribute_group '.(is_null($id_product) ? '' : 'AND pa.id_product = '.(int)$id_product).' GROUP BY a.id_attribute, pa.id_product , product_attribute_shop.`id_shop`' ); na to: Db::getInstance()->execute(' INSERT INTO `'._DB_PREFIX_.'layered_product_attribute` (`id_attribute`, `id_product`, `id_attribute_group`, `id_shop`) SELECT pac.id_attribute, pa.id_product, ag.id_attribute_group, pas.id_shop FROM '._DB_PREFIX_.'product_attribute pa INNER JOIN '._DB_PREFIX_.'product_attribute_shop pas ON pas.id_product_attribute = pa.id_product_attribute INNER JOIN '._DB_PREFIX_.'product_attribute_combination pac ON pac.id_product_attribute = pa.id_product_attribute INNER JOIN '._DB_PREFIX_.'attribute a ON (a.id_attribute = pac.id_attribute) INNER JOIN '._DB_PREFIX_.'attribute_group ag ON ag.id_attribute_group = a.id_attribute_group '.(is_null($id_product) ? '' : 'AND pa.id_product = '.(int)$id_product).' GROUP BY a.id_attribute, pa.id_product, pas.id_shop' );
  2. Hi, does anyone will know how to solve or to try to do it (eventually fudge)? Presta Team changed it to improvement and I think it's serious bug. When we have 8 products: 4 for $10/each and 4 for $20/each One product for $20 with "specific_price" $5 ($20 - sale $15). Settings: "Product on page" is 2 then we have 4 pages and sorting is "from lowest". Product with price $5 should be first on first page but now that product is on page 3 and first 4 products for $10 are on first 2 pages. Because presta read normal price and should use "specific_price" if is defined. "Specific_price" is sorted only on page which we see and normal price is sorted on whole shop.
  3. Hi, I need export 2 datas from my shop to other company. I need give information on last orders: client email and his order number. Need paste script on order-confirmation.tpl [removed]<!-- client_email = '????'; order_id = '????'; //--> [removed] [removed][removed] What I need to write on '????' Cheers
  4. Hi, somebody knows how to delete part of loyalty points? Maybe there is way to edit points for customer? cheers
  5. I have problem with cookies on IE. If I change order status then every changes on Opera and FF will show on real time (for example: message or next order status on details on history.php) but on IE i need delete cookies to see changes? Any ideas to help me?
  6. I can't coz I'm using v1.2.5 and only loyalty module from 1.3.1 (modified). maybe somebody know which line need changes, then will be great
  7. thx rocky. I think module loyalty 1.7 (from PS 1.3.1) is not compatible with PS 1.2.5 and below. Ive changed some code line on loyalty.php and LoyaltyModule.php and now its working but... If somebody order 3 same items (50 points per item) and I cancel 2 items then system minus wrong points Example: Order: 3 apple - 150 points Cancelled 2 apple and leave 1 apple - 150 points - 100points = 50 points And Prestashop leave 100points to buyer and shoul leave 50 somewhere need change code
  8. I tried install loyalty module from PS 1.3 on PS1.2.5 and it's working better but... there is a error on my shop: Fatal error: Call to undefined method Product::getIdProductAttributeMostExpsensive() in /home/.../public_html/modules/loyalty/loyalty.php on line 329 The problem is with loyalty.php and LoyaltyModule.php files... only on one page with product. I think something is wrong with module were is text: "By buying this product you can collect up to..." Could somebody help me? Cheers
  9. Hi i try to add extra checkbox on order process with question for buyer. I try to do someting like that - http://www.prestashop.com/forums/viewthread/13859/P0/configuring___using_prestashop/solved_adding_new_fields_to_new_account I've changed Order.php order-address.tpl AdminOrders.php order.php and database but system dont read extra checkbox If I change Order.php on /** @var boolean Customer is ok for a question*/ public $extracheckbox = 1; on protected $fieldsValidate = array( 'extracheckbox' => 'isBool', on public function getFields() { parent::validateFields(); $fields['extracheckbox'] = intval($this->extracheckbox); then database is 1 if $extracheckbox = 0 then db is 0 How to give decide to customer about tick or not coz code in order-adress.tpl dont give a changes <input type="checkbox" name="extracheckbox" id="extracheckbox" value="1" {if $extracheckbox == 1}checked="checked"{/if} /> {l s='Extra question'}. in order.php: /* Carrier step */ $cart->extracheckbox = (isset($_POST['extracheckbox']) AND !empty($_POST['extracheckbox'])) ? 1 : 0; Where is mistake?
  10. @ RastaDuch - u need work with CSS (global.css) change line 1978 from width: 250px; on width:235px; u need add after line 1999 width:15px;
  11. Hi, any ideas how to add photo in tags? PS 1.2.5 Cheers
  12. Lol its to simple Im new with Prestashop and I dont get with it. Im start with layout and functions. I tried to change tpl and php. I wondering why I dont see thumbnails if I didnt changed any product in admin panel hehe Cheers rocky
  13. Hi Prestashop 1.2.5 I have problem with thumbnails like Matt - old topic The thumbnails work properly till if I try choose attribute from drop-down list then all thumbnails disappear (stay only "Display all pictures") and main photo still is the first photo (cart work properly). For example if I try choose pink color from drop-down list then I can add pink Ipod to cart but thumbnails disappear and I see black Ipod in main photo. (should be pink main photo and pink thumbnails) Any ideas? Cheers Tomi
×
×
  • Create New...