Jump to content

ruisonika

Members
  • Posts

    134
  • Joined

  • Last visited

1 Follower

Profile Information

  • Location
    lisbon
  • First Name
    Rui
  • Last Name
    Pereira

Recent Profile Visitors

2,133 profile views

ruisonika's Achievements

Explorer

Explorer (4/14)

  • First Post Rare
  • Collaborator Rare
  • Conversation Starter Rare
  • Week One Done Rare
  • One Month Later Rare

Recent Badges

8

Reputation

  1. I am experience a new problem in prestashop 1.6.1.24... sometimes when a customer make a purchase (for example two products) in prestashop backoffice (admin) the order only have 1 product, but the totals, ship and tax are ok, and in database ps_cart_product there are 2 products... I am with no ideias how to desmantle this problem... how can i start to debug?
  2. But when you delete cache will be generated new htaccess file, and you will loose this modification (my 2 cents). My workaround was this: presta admin area > preferences > SEO and URL (like this) Then if url mod_rewrite is on make it not and and after make it true again (to generate new htaccess file). And in classes/tools.php ad this code FOR ME IT WORKS NICE
  3. Sorry i'm having the same problem does anybody find solution? to share, please...
  4. Sorry guys ... for that and by the way thanks for all you hep. So starting i'm explain what i wanna achieve. In prestashop admin area i have several products and associated in several categories. I've created a special category named Outlet50 (is not active) so customer doesn't see. I've created a catalogue rule that gives 50% discount all the product associated in category Outlet50. When i associated the product do that category and click in save button, in font (shop) the product has 50% discount and all works well. So i'm trying to achieve this with code because my products come from another logistics software. And i with success insert products, categories, prices ...everything with my file that connects prestashop database with logistics database. So in my file i started with this code <?php include './config/settings.inc.php'; include './config/defines.inc.php'; include './config/config.inc.php'; require_once(_PS_MODULE_DIR_.'ptsverticalmenu/classes/BtVerticalMegamenu.php'); include './init.php'; include './classes/Product.php'; and after with the code in image because it blocks when i put the code here.
  5. Thanks for your reply... Your code works fine but erases all categories associated with the product, and i only wanna add or delete one the id_category 3470... But this isn't the issue...Because your way or my way the results are fine in database (all OK)... The problem is when this code runs (when stockOffVar is equal to Outlet50) should ended with this behavior: -when you are in presta admin area, in product categories associated when you checked something new to associate then you must click in save button, and this is the only thing than i can't accomplish ... I have an invisible category Outlet50 and some product are in, and in promotions catalogue i say all products in that category have 50% discount. My website (prestashop) is populated by other logistics software and between both is another realtime synchronize api that connects prestashop database to logistics database. So all my products and categories the origin is in logistics software, and prestashop orders at the end sync to the logistics... So in my code that writes de category product from logistics to the prestashop database all works well, but in front (shop) my product doesn't shows 50% discount unless i go to the backoffice prestashop produc categories associations and click save button at the end... Understand my issue? Thank you all
  6. Hello guys, I'm with the following issue: i have an external software that sincronizes with prestashop, so i write in prestashop database with success... i'm trying to associate products with categories and all works good in database there is my product (id) and my categories (id) and in backoffice all is show according but in front (website store) isn't... to fix this i have to go in admin in product categories and click in save button at the end (how can i simulate this submit form in my code). $stockOffVar = $_POST["tipodesc"]; // if tipodesc equals Outlet50 then associates to category 3470 if ($stockOffVar == 'Outlet50'){ $sql = "INSERT INTO ps_category_product(id_category, id_product, position) VALUES (3470,".$id_product.",1)"; Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($sql); }elseif ($stockOffVar != 'Outlet50'){ $sql = "DELETE FROM ps_category_product WHERE ps_category_product.id_category = 3470 AND ps_category_product.id_product = $id_product"; Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($sql); };
  7. https://nnn.pt/pt/ Thanks in advance
  8. Hello everyone and happy new year to all... I'm having a problem with ajax cart. I use prestashop 1.6.1.17 when i go to site the cart is like img1.png when i add a product to the cart is like img2.png, but the product is in the cart... What is wrong? Thanks in advance
  9. Hello to all, I need to install Amazon Module in my store, i'm located in Portugal and i'm wondering what is the best module do sell my products in Amazon. I've already an Amazon Account, and i wish to update my product prices and stocks according with my prestashop website, and receive of course all amazon orders in my prestashop website. I'm thinking about this module. https://addons.prestashop.com/en/marketplaces/2501-amazon-market-place.html Does anybody knows if this module does what i want? Many thanks in advance.
  10. Hello guys, I'm having trouble figure this out. A customer in my shop make his order until the end and it's all ok, he choose to pay by debit card (multibanco) and the system generate a reference to pay, and the customer receives an email with that reference...all is fine! But the customer doesn't pay and forgets... How can i re-send the email again to remember??? Does anybody knows how or where can i goal this? I was thinking about something like this... var_A = The day of the order; var_B = current date; var_C = status of payment If (var_C == "Expecting Payment") and (var_B > var_A){ re-send the email }else{ do nothing } Something like this... Thanks in advance for all the help.
  11. Hi Pascal, I've tried your solution in presta 1.6.1.24 but doesn't work... Do you know other way to have two emails in PS_SHOP_MAIL? If you could help see my post here. Thanks for all the help.
×
×
  • Create New...