Jump to content

AdrianM2

Members
  • Posts

    15
  • Joined

  • Last visited

Profile Information

  • First Name
    Adrian
  • Last Name
    Macutkiewicz

Recent Profile Visitors

161 profile views

AdrianM2's Achievements

Newbie

Newbie (1/14)

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

Recent Badges

1

Reputation

  1. Hi. I was debugging my prestashop speed and realized that "ps_configuration" table in database has over 260 000 records. Most recent look like this: Any ideas what is creating these records? Are they used for something? Any ways to clean this up?
  2. @joseantgv Thanks. It seems that there already is a parameter for "$id_customer".
  3. Hi. I'm trying to figure out a way to get final price of product (after all discounts, specific prices, discounts created by modules etc.) for specific customer ID. I can get that price using: Product::getPriceStatic($productid); but it takes customer ID only from current session cookie of logged in customer. Is there a way to get final price of product by giving customer ID? something like: Product::getPriceStatic($productid, $customerid);
  4. Hi. I'm trying to add my custom .js file to one backed module. Any suggestions how to do this correctly? Tried adding: $this->output .= '<script type="text/javascript" src="../modules/'.$this->name.'custom.js"></script>'; in main .php module file between: public function getContent() { } and it's not working.
  5. Hi. I used sql to set big amount of products for one specific supplier but the problem is that supplier is not set as default for each and every product. Supplier shows correctly on product edit page but "default" radio button is not set. Any ideas where the value of that field is set in database so I can change it?
  6. Hi. I'm trying to figure out how to allow search of products that are inside disabled categories. I'm currently using search with Ajax turned on so my guess was to look inside "blocksearch" module but I can not find a line of code where products from disabled categories are set to not display in search results. ------------------------- Found the solutions myself Needed to edit "Search.php" in classes by adding to the "$results" sql statement "WHERE c.`active` = 1 OR c.`active` = 0"
  7. I'm actually trying to fix the same issue. There must be an easy way to update packs quantity based on products that are inside. On my shop it should be even easier as I have only packs of same products like 10 x t-shirt, 20 x t-shirt etc. So when stock looks like this: t-shirt: 100 items t-shirts pack: 10 (with 10 t-shirts in a pack) and someone orders 5 t-shirts available stock of "t-shirt" pack" should decrease to: 9. I was actually pretty surprised that this functionality is not yet implemented in prestashop :/
  8. May I ask which version of Prestashop is this from? I'm on 1.6.1.1 and on my shop it says "product price (netto)" - In my country "netto" means "without tax" Is this because of my currency/country or I can disable it somewhere in options?
  9. On Prestashop 1.6.1.1 in backoffice it is possible to set specific prices for products, but we need to put it without tax. I checked demo of version 1.6.1.3 and it is possible to set spesific price already with tax included (retail). Is this something that was added in update or we can turn this function on somewhere?
  10. Hi. I'm having trouble with changing number of displayed pages in pagination. I'm trying to change this: into something like this: I've found section in pagination.tpl file responsible for the number of displayed pages: {section name=pagination start=$start loop=$stop+1 step=1} {if $p == $smarty.section.pagination.index} <li class="current"><span>{$p|escape:'htmlall':'UTF-8'}</span></li> {else} <li><a {$no_follow_text} href="{$link->goPage($requestPage, $smarty.section.pagination.index)}">{$smarty.section.pagination.index|escape:'htmlall':'UTF-8'}</a></li> {/if} {/section} and by changing loop to "loop=$stop+7" it displays more pages but on the last page it shows 2 non existing pages (11 and 12). Any ideas on how to stop the loop at the end of existing pages?
  11. Hi. I'm looking for a module that will allow customers to save their carts and use them later for reordering same products. For example: 1. Client puts 3 different items in a cart and clicks "save this cart" button. 2. Saved cart with selected items shows up under "saved carts" on "my account" page. 3. Client can select saved cart and add it again to buy selected products. Anyone knows if there is a module like available somewhere?
×
×
  • Create New...