Jump to content


  • Posts

  • Joined

  • Last visited

Profile Information

  • Location
  • Activity

mattBeck's Achievements


Newbie (1/14)



  1. Hi, I've bought a payment module and the creator assured me it was compatible for prestashop, I'm now trying to install it but there's an error because I receive the usual error: The following module(s) were not installed properly: keyclient : I've enabled the PS_MODE_DEV but it doesn't show the error, is the log placed somewhere?
  2. Hi, is there a way to get a php array of all the products in the user cart after the payment succeed? I need to send a request to place an order on a web service after the payment with either paypal or another module has gone through. I was thinking to do it here in the paypal module: function validateOrder($customer, $cart, $ppec) { $amount_match = $ppec->rightPaymentProcess(); $order_total = (float)$cart->getOrderTotal(true, Cart::BOTH); // Payment succeed if ($ppec->hasSucceedRequest() && !empty($ppec->token) && $amount_match) { if ((bool)Configuration::get('PAYPAL_CAPTURE')) { $payment_type = (int)Configuration::get('PS_OS_WS_PAYMENT'); $payment_status = 'Pending_capture'; $message = $ppec->l('Pending payment capture.').'<br />'; } else { if (isset($ppec->result['PAYMENTINFO_0_PAYMENTSTATUS'])) $payment_status = $ppec->result['PAYMENTINFO_0_PAYMENTSTATUS']; else $payment_status = 'Error'; if (strcmp($payment_status, 'Completed') === 0) { $payment_type = (int)Configuration::get('PS_OS_PAYMENT'); $message = $ppec->l('Payment accepted.').'<br />'; // web service connection } elseif (strcmp($payment_status, 'Pending') === 0) { $payment_type = (int)Configuration::get('PS_OS_PAYPAL'); $message = $ppec->l('Pending payment confirmation.').'<br />'; } } } // Payment error else Any idea how I can retrieve cart information in order to send them?
  3. I've solved it, the problem was related to the variable type. I've got another question though, since now the tables are updated but numbers doesn't show up in the BO quantities, any idea why?
  4. Hi I've a problem updating the prestashop database via a query in a php script, the query looks like this $queryResultUpdateAttribute = mysql_query(' UPDATE ps_product_attribute SET quantity = ' . $resultQtyAttribute->DisponibilitaVarianteTagliaResult . ' WHERE reference = ' . $refAttribute . ' ; '); And even without errors the query doesn't succesfully update the database, reference and quantity are passed as strings.
  5. Yep, I used that in the end, the only "problem" is that is quite a waste of time combining all the combination with different references than the "standard" and select all the images. Thank you!
  6. Hi everyone! I have a question about product combinations, I have some products that have color options, since they're trousers they every color options should be associated with different sizes in order to easily manage the stocks and the orders. Now, the problem is that every attribute type can be chosen only once while you're creating a combinations, i.e. you can have combine a blue trousers with a size 32, but then you have to create another blue trouser combination in order to add the size 33. Is there a way to add all the available sizes to one color combination? I understand I could divide every product into more products and then combine them with sizes attributes but I believe the method I'm trying to implement is better for the customer and for me. Thanks for the help!
  7. Hello, I'm creating a website using prestashop 1.6, the default bootstrap theme and I've arranged it to have the old 1.5 look. Now, I have the block category on the left and everything is great, I've just a question, is there a way to make a category just a not clickable label? I mean, there must be some sort of iteration via smarty that I can use to select those categories an make them a non-clickable <a>, I was wondering if anyone already did that or if there's an easy way to do it! Thanks a lot, Matt
  8. Hi, I've some problems modifying the default bootstrap theme, I've already worked with bootstrap so I know hot to modify the css files and the html. The problem is that I'm very new to Prestashop and I cannot find anything to correct a couple of problems I've encountered. and then emulate a tablet (you can do that in Chrome and FF by hitting F12 and click on the little device on the left in the menu) As you can see the custom cms info block will completely disappear from the page and I have no clue how to solve it. The other question I have is about the left column, is there a way to disable it while on mobile?
  • Create New...