Jump to content

Crazy-P

Members
  • Posts

    33
  • Joined

  • Last visited

Everything posted by Crazy-P

  1. Okay. I figured out a way though I don't know if this is the proper way. For everyone else who encounter this problem then do as following: StockAvailable::setQuantity($id_product, $id_product_attribute, $quantity); //If you don't have a id_product_attribute, then just leave it as "null".
  2. Hei all on here I have used this thread: https://www.prestashop.com/forums/topic/262781-programmatically-adding-product/ with great success. However, the added products' quantity always remain 0? Everything works out perfectly: title, link_rewrite, price, image etc., just not the quantity. I use: $product->quantity = 1; In the database it remains 0 in psug_stock_available and psug_product. I know I can quickly update the quantity with sql, but I do prefer to use the standard methods via Prestashop. Thank you for your time. Sincerely, Patrick
  3. Hei all I want the breadcrumb to be between some of the header top modules. However, to do that, then I will have move the "include breadcrumb" to one of the modules hooked to the header. Now when I do that, the breadcrumb won't show any path at all. It keeps staying blank. But if I am to move it back to the header.tpl file, the path shows up again. Any solutions to this? Thank you for your time.
  4. Dear all I know this module http://www.thatsoftwareguy.com/prestashop_better_together.html, but it aint really supported for prestashop 1.4. I was wondering if any had modified it to support it or knows other modules doing something similar? What I am searching is a module which can make me have: "Buy X get Y for $10". That is if I add a product X to my cart and then go to accessories. Then some specific accessories will be showing a much cheaper price due to the fact that X is in the cart already. Hope this is possible. Have a nice day / evening
  5. Hey there I have encountered a strange issue. My website no longer send out the "awaiting bank.... " mail after the customers use the bank wire payment method. It worked fine the other month (April). I haven't changed anything related to those files. The only thing I have done is changing to another web hotel. Though anything else works just perfectly (user account mail, confirmation etc.). All the language specific files in the mail folder are intact too. Anybody else who have this issue? Also I am interested if anybody knows how to show the invoice number instead on the payment return page? Thank you for your time.
  6. Thank you. I will try your advice out later when I'm back fromuniv.
  7. But at our shop we got 2 different modules for payment. 1 is for bank wire, another is for card payment. You will need to choose either one of those 2 before doing the payment.
  8. Dear all Something strange happened on my shop. A customer of mine had picked to pay by Bank Wire (or so it says in the back office), however he somehow had paid his order by Master Card instead. Anybody knows how this scenario could happen? Thank you for your time.
  9. Hello all I have encountered a small problem. That is I cannot figure out how to set the country for guests. When users register, they can pick a country, and depending on the country - the VAT changes, or sometimes no VAT. So registered users will see the correct prices on products before reaching the cart. Guests on the other hand will first notice the new prices, when they've input all their data and checking out. Any out there who knows a way to solve this? Thank you for your time.
  10. Hei all I've been searching around for ages now and I simply can't find anyt module or so which sends an e-mail to customers, who didn't finish their cart (to those who leave at the checkout page before purchase), Or a simpel popup when they return to the site. I want to do a questionnaire to ask them why they didn't finish their cart. Anybody who knows a module for this? Thank you all.
  11. Hei I've been trying to get the delivery address + contact details to show on the confirm page, when ordering on my shop. However I simply can't get it to work. So I'm asking here if anyone knows how to or which files contains the get address function and so? Thank you very much for taking ur time. Sincerly, Patrick Olsen
  12. I'm having the same issue as well. Any solutions? Bankwire 0.5 Prestashop 1.4.4.1
  13. I did find that too. But I thought it wasn't that cuz I didn't see any "UPDATE`blabla` SET `date_upd`='something'" But I guess that's what the pSQL does? Either way gonna try it out later. Thanks
  14. #2 it is prestashop 1.4.4.1 #3 Ye I know it's stored in ps_product. But the solution I'm looking for is a way to sometimes prevent it from updating the date
  15. Hei all prestashoppers I can't find the file and line where prestashop updates the product's "date_upd" in the back office when updating a product. Anyone knows where it is ?
  16. Hei PrestaShop users Have I just screwed my PrestShop up or is v. 1.4.4.1 bugged? I can still see my products on its product page when the category is deactivated. And I can see the subsubcategories too even when main category is deactivated. The deactivated category page doesn't show its products or its subcategories but a text saying "This page isn't available." Example: Main category <--- Shows "This page isn't available" - (Deactivated) - subcategory <--- Shows all of its products and subsubcategories - (If u got the link) - - subsubcategory <--- Shows all of its products. - (If u got the link) - - subsubcategory - subcategory - subcategory Product: Category <--- Deactivated - Product <--- Available - (If u got the link) Thank u for ur time.
  17. The fix I made (PS v1.4.4.1) To hide all subcategories you gotta do the following: Open "Category.php" in the classes folder Add this " AND c.`id_category` IN (SELECT `id_category` FROM `'._DB_PREFIX_.'category_product`) " right after " '.($active ? 'AND `active` = 1' : '').' " in line 437. If you couldn't find the line, then go to "function getSubCategories". Then you'll quickly notice where the line should be. Now go a few lines down. You'll then see this: foreach ($result AS &$row) { $row['id_image'] = (file_exists(_PS_CAT_IMG_DIR_.$row['id_category'].'.jpg')) ? (int)($row['id_category']) : Language::getIsoById($id_lang).'-default'; $row['legend'] = 'no picture'; } Change it to this foreach ($result AS &$row) { $row['id_image'] = (file_exists(_PS_CAT_IMG_DIR_.$row['id_category'].'.jpg')) ? (int)($row['id_category']) : Language::getIsoById($id_lang).'-default'; $row['legend'] = 'no picture'; $myslqtv = mysql_query("SELECT * FROM `"._DB_PREFIX_."category_product` WHERE id_category='".$row['id_category']."'"); while ($rowtv = mysql_fetch_array($myslqtv)) { $mysqlpv = mysql_query("SELECT * FROM `"._DB_PREFIX_."product` WHERE id_product='".$rowtv['id_product']."' AND quantity>'0' AND active='1'"); if (mysql_num_rows($mysqlpv) == 1) { $row['legend2'] = "Products exists"; break; } } } Now you're done with the "Category.php" file. So save and upload it Open the "category.tpl" in your theme folder Go to " <!-- Subcategories --> " A few lines down, insert this " {if $subcategory.legend2} " right before the <li> tag And add this " {/if} " right after the </li> end tag You are now done with the "category.tpl" file. So save it and upload it. You are now all set. Remember to enable "Force compile" to make your new "category.tpl" file work. To enable "Force compile" you gotta go to your backend office. Then go to " Preferences " and now click on the tab " Performance ". After "Force compile" is enabled you should go to a category page in your webshop. Afterwards you should disable it again. Using this code on your webshop will be your own responsibility!
  18. ** Note to staff. Perhaps should change the title to "How to hide subcategories with empty / non-active products" ** Hei again I am trying to automatically hide subcategories which do not have any active products or just empty. I've tried lots of ways to solve this problem... however another problem always occur me. The BASIC solution I've thought of which will work perfectly and yet not is following: //** REMOVED, Check the code in my second post **// Not perfect and needs to add some extra things to it and change some things of it too.. was just so u got my idea. in the tpl file it would be something like this: //** REMOVED, Check the code in my second post **// I hope u get the idea of what i want to do. So is there a way to do this? Is it even possible to call a function in the smarty tpl? Or do I have to this in another way? //** EDIT **// Found a solution. Will post it later. ** EDIT** It is now posted!
×
×
  • Create New...