Jump to content

dj060004

Members
  • Posts

    14
  • Joined

  • Last visited

dj060004's Achievements

Newbie

Newbie (1/14)

  • One Month Later Rare
  • One Year In Rare
  • Week One Done Rare

Recent Badges

2

Reputation

  1. Well a customer can defiantly be in more than one group, and thats quite useful for me because I use groups to restrict say payment methods which works great. But for specific prices, I would expect PS to show every specific price that is defined for every group to which the user belongs, but it doesnt. Instead it just shows the prices for the users default group. Seems a bit counter intuitive given other group features work based on every group the user is in, not just the default.
  2. Hi, I have a group, lets call it resellers. I have a customer who is in that group, but their default group is something else. Then I have some products with specific reductions that apply only to the resellers group. Unless I also set the customers default group to resellers, the reductions do not show. Is this intended behavior? Thanks
  3. Hi, As you saw, I originally posted here about this. I wasn't able to find a module that did what I needed so wrote one myself (actually modified blockmanufacture). What I was hoping to do was as follows: I wanted a "sticky" manufacture filter - that is to say when a manufacture was selected, all other navigation would filter by that manufacture until it was explicitly cleared. I changed the home hook code in BM to set a cookie for the current manufacture. Something like public function hookHeader($params) { $id_manufacturer = Tools::getValue('id_manufacturer'); if($id_manufacturer !== false) { $this->context->cookie->id_manufacturer = (int)$id_manufacturer; } else { $page_name = Dispatcher::getInstance()->getController(); if( $page_name != 'category' && $page_name != 'product') { unset($this->context->cookie->id_manufacturer); } } if( !empty( $this->context->cookie->id_manufacturer ) ) { $id_manufacturer = $this->context->cookie->id_manufacturer; $this->displayed_manf = new Manufacturer( $id_manufacturer, $this->context->cookie->id_lang ); $this->context->smarty->assign( 'displayed_manuf', $this->displayed_manf ); } $this->context->controller->addCSS(($this->_path).'blockmanufacturer.css', 'all'); } This sets a cookie when user navigates to the manufacture pages and then unsets it when ever they navigate to any page other than the product pages. Then created a new template that was hooked into the center column hook that simply displays a box with what manufacture was selected <div id="manufacturers_block_clear" class="col-xs-12"> You are currently viewing products by brand {$displayed_manuf->name}. If you wish to clear this filter, click <a href="/" rel="nofollow">here</a>. </div> <div class="clearfix"></div> Then i made some changes to blockcategories to only show the categories that contained products from the selected brands. // around line 195 in blockcategoies.php $id_manufacturer = $this->context->cookie->id_manufacturer; $name = $category ? $category->id : null; if(!empty($id_manufacturer)) { $name .= "|" . $id_manufacturer; } // then around line 225 INNER JOIN `'._DB_PREFIX_.'category_shop` cs ON (cs.`id_category` = c.`id_category` AND cs.`id_shop` = '.(int)$this->context->shop->id.')'; $m = null; if( !empty( $id_manufacturer ) ) { $sql .= ' INNER JOIN `ps_category_product` cp ON (c.`id_category` = cp.`id_category`) INNER JOIN `ps_product` p ON (cp.`id_product` = p.`id_product` AND ( cp.`id_category` = 1 OR p.`id_manufacturer` = ' . $id_manufacturer . '))'; $m = new Manufacturer( $id_manufacturer, $this->context->cookie->id_lang ); } Then what I was hoping to be able to do was use the actionProductListModifier hook to strip out products that didn't match the selected manufacture... But thats where it started to go wrong because I could not get pagination working correctly. The products were stripped out, but the page count still showed the total number of products as would have been shown without the filter enabled. So in the end, I had to resort to modding the core code. I modded Category.getProducts to take an id for manufacturer public function getProducts($id_lang, $p, $n, $order_by = null, $order_way = null, $get_total = false, $active = true, $random = false, $random_number_products = 1, $check_access = true, Context $context = null, $id_manuf = null) // around line 667 if(!empty($id_manuf)) { $sql .= ' AND p.id_manufacturer = '.(int)$id_manuf; } // around line 707 if(!empty($id_manuf)) { $sql .= ' AND p.id_manufacturer = '.(int)$id_manuf; } $sql .= ' GROUP BY product_shop.id_product'; Then changed every call to getProducts to pass in the cookie value. And for me, it works. But its a great big hack which is why wouldn't want to publish it as an actual module etc. Looking at the site you posted, its clear they have done the same. I suspect they have modded ManufactureController to take an extra query string option that determines the category. The modded the core getProducts function for class Manufacture to take this into account. Manufacture's I think are a bit of an after thought in PS. The out of the box implementation is pretty useless since I can't see any user wanting to see a FULL list of products by manufacture, unless you only have a few. The layered navigation filters go someway to sorting this out, but the navigation is still category "centric". For my hack above, I have had to live without the layered navigation manufacture filter which is a shame, but the industry my shop is in is very much about people shopping by brand, so this is what I had to do. If you ever find anything better, do post here.
  4. Hi there, I'm looking for away to improve shopping by manufacturer on my PS store. Is there anyway, either core or via modules, to change the shop by manufacturers pages so they only show the categories for which there are products? Right now, I get a list of all products by that manufacture but the category filter is pretty much useless because the moment I select a category, I am taken back to a list of all products in that category regardless of manufacture. I appreciate one can use the layered navigation filter to enable manufacturer filtering on the category pages, but this isn't quite what I'm looking for. In the industry I'm in, users almost always "shop by brand" - that is they start by selecting the brand they are looking for, then further narrow that selection by category rather than the other way around. Many thanks Using ps 1.6.0.14
  5. Hi Luc, Did you ever find a way of doing this? I am looking for the same.
  6. Hi, Is there anyway using the webservice of Prestashop to get the full list of prices for a given product AND updating them? I am only looking for the fixed price reductions (buy X at Y price) and not the percentage reductions. Basically I want to get and set the contents of the ps_specific_price DB table. I know I can get the price with a given discount applied using ?price[...] on a specific product as detailed here: http://doc.prestashop.com/display/PS15/Chapter+10+-+Price+management But i want the full list of price "breaks" as we call them for a given product . Much more importantly, i need to be able to add a new price break via the web service - can this be done? Many thanks This is actually with PS 1.4 as I am putting off updating my theme for 1.5.
  7. Hi there, I am looking for a couple of free modules for prestashop 1.4 before I consider developing them myself. Specifically: Promotions on home page. Just like the supplied featured products on home page, I would like a module that shows all the products (or a configurable number) on the home page. Facebook/Twitter: Looking for the best free module for FB/Twitter integration. Any advice greatly received. Thanks
  8. Hello, Is anyone aware of a module that will allow me to manually attach an invoice generated from an outside system into Prestashop (and turn off the auto-invoice generation all together). I am not looking for something like orlique that will allow an order to be manually entered into PS Thanks
  9. Hi, What's the best way in PS to do Equivalent Products? By that I mean suppose we sell item A and and the user searches for item B, item B is essentially exactly the same as item A (think say an unbranded equivalent). We don't want item B showing in the shop as we dont stock that, but we do want Item A to come up when they search for item B. Thanks
  10. Thanks, very nice. Does the module allow the customer to make their actual payment though your PS itself? Or do they need to send payment in another form (Cheque, cash etc etc) Thanks again
  11. Looks good. Sadly I'm looking for the budget option (free!) ;o) Although I created an account on your demo site and it's not active as a payment option (only wire & cheque are) Does it work with PS 1.4? Thanks
  12. Hi there, Is there anyway in PS to have certain users (say users in a specific group) be able to have a credit account? By that I mean *not* have to pay for the goods when they order them. Instead they are invoiced and have to pay up within a certain term (30 days). I have activated the cash on delivery module, but I don't want this active for all users, only certain users in a given group. I would also like the user to be able to pay electronically for their goods using PS, rather than in cash. Thanks
  13. Hi there, I am trying to make a decision about the best e-com software to use, and have a question about PS. I would like to have one single country for someones invoice address (UK only) but allow shipping to any country. Is this possible in either stock PS or with an external module? Thanks
×
×
  • Create New...