Jump to content

jaimeZesis

Members
  • Posts

    21
  • Joined

  • Last visited

Profile Information

  • First Name
    jaime
  • Last Name
    gargallo

jaimeZesis's Achievements

Newbie

Newbie (1/14)

0

Reputation

1

Community Answers

  1. I'm having some problems with the cart module: If I activate AJAX for the cart when I click on the cart I get a 404 error and on the URL puts domain/undefined. The problem is solved if I disable the AJAX. The other problem is that when I access the page with a mobile or tablet the cart shows all the information that should be shown when you drop-down the cart; but if I use the navigator from the computer and put it like a mobile the cart is displayed correctly. The webpage is tecmasol.com and the prestashop version is 1.6.1.13
  2. The SQL issue is solved, I jsut delete the ORDER BY id_address desc. The problem now is that the modifications that I did on orderHistory.php only affect when the status is changed from the backoffice, but I want it to do it automatically, when the payment is validated. Which file has the code that send the payment accepted email?
  3. I'm working with the version 1.6.1.15 Maybe I should comment in earlier. I'm placing the code on /classes/order/OrderHistory.php around line 451. The query that I have to take the last value from the ps_address table for the customer I want is: $direccion = Db::getInstance()->getRow(' SELECT address1 FROM `'._DB_PREFIX_.'address` WHERE `id_customer` = '.(int)$order->id_customer. ' ORDER BY id_address desc'); After that, I add another condition on the if that looks like if ($result['pdf_invoice'] && (int)Configuration::get('PS_INVOICE') && $order->invoice_number so the result is if ($result['pdf_invoice'] && (int)Configuration::get('PS_INVOICE') && $order->invoice_number && $direccion['address1'] != 'Direccion') { I check the value of $direccion['address1'] and it's an empty space, but if I remove the "ORDER BY id_address desc" from the query it contains some value. PD: The last "Direccion" is just a test value. EDIT: I have realise that if it's a guest checkout nobody is going to change the direction so no order by is needed, and without it, this works perfectly, at least for me.
  4. On the first address from the customer
  5. I have found that the file that I need to modify is on /classes/order/OrderHistory.php around line 451. But now, I have to take the customer direction from database, but I don't know how.
  6. I have a shop with Guest Checkout as the only way to buy the products. When you have to fill the invoice information I give the customer the option of leave all fields (except name, surname and email) as the default value I set (like for example Direction as direction). What I'm trying to do, and here is my question, is how I manage to controll if the payment acccepted email should include the invoice pdf or not. I think that the easiest option is to check a value like Direction or Phone (or any other field with a default value set by me), but I don't know how the code should look nor where to place it. EDIT: I know that I can diseable the option of sending the invoice on the backoffice, but then I should create another status and move to it manually when I want to send it.
  7. There is an option to have the shopping cart on the right, but the search box has to be activated: Reactivate the search box module. Go to Modules - Positions. There, look for displayTop. Move the search box module to the first position, and the cart one to the second. Now, go to /themes/default-bootstrap/css/modules/blockcart/blockcart.css and on #header .shopping_cart{ add float: right; Then, go to /themes/default-bootstrap/css/modules/blocksearch/blocksearch.css and on #search_block_top{ add display: none; This makes the search box invisible, it keeps been there, but at least you can't see it and the shopping cart stays on his position.
  8. Solved, the problem was that I had the file AdminAttributeGeneratorController.php override, and there I had 'minimal_quantity' => pSQL($_POST['minimum-quantity']) ' When I comment that line it works perfectly.
  9. When I try to generate a combination I get: Property Combination->minimal_quantity is empty any idea why??
  10. I have deleted my file, and copy all the code ofthe github on a new file with the same name but nothing happen
  11. I have changed the three TYPE_INT that I found to TYPE_FLOAT, but the error persists.
  12. I don't think so, because the products that I sell can't be one and a half. It has to be units.
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More