Jump to content

AhmadHamdan

Members
  • Posts

    9
  • Joined

  • Last visited

Profile Information

  • First Name
    Ahmad
  • Last Name
    Hamdan

AhmadHamdan's Achievements

Newbie

Newbie (1/14)

1

Reputation

  1. Hello All, Hope all is well. I have a question regarding the core email templates of my shop. There are two in specific called "password" and "password_query" and I wish to know the difference between the two: What are the cases under which each of these emails is sent? I noticed that when I click on "forgot my password" via the shop's front-office, I receive an email that uses the "password" email that has a link in it. Thank you for any help you can give Best ,
  2. Nemo1 I agree, I had a typo in my last reply, all fixed now.
  3. Hello Nemo1, So sorry for the late reply, but I was pre-occupied with other stuff. I took your advice and I went to "Advanced Parameters" -> "Performance" and disabled "Smart cache for JavaScript", and that seemed to do the trick, therefore it is definitely the case of bad commenting like you said. I will mark your answer as solved. Thanks for the help!
  4. Hello Nemo1, Thanks for the quick reply. Yes there were a few //comments but I amended them all, emptied the smarty cache folders, re-enabled cache and re-tested the page but unfortunately the error persists. I'll appreciate any further help
  5. Hello all, The error is occurring on the product page so let me explain what the default behavior of the page is before proceeding. You can find an example here https://sportstown.me/shoes/7400-nike-capri-3-leather-gs.html I tweaked the original code a bit to include a Google Map down at the bottom. The purpose of this map is to eventually show the users where the product combination they selected is available in the country. That's pretty much it. I only recently enabled caching for my e-commerce website via the back-end (Advanced Parameters -> Performance) but then I noticed an unwanted behavior on the product page. The moment I enable caching and visit the link I posted earlier, nothing wrong happens, however if I refresh the page I notice that I get a JS error telling me a certain function is undefined. That function that I created is however defined in a file called "stores.js" located under "themes/my_theme/js/stores.js" yet for some reason the caching omits this file all-together. Can anyone pinpoint what the problem is or might be? As a short-term solution I disabled caching via the back-end but I don't want to keep it that way for the sake of optimizing my website's performance. I am using Prestashop 1.6.0.9. Thanks in advance.
  6. Hello Vekia, Thank you for your quick reply. If that's the case then can you please elaborate on what's happening in this website: http://rouladfouni.com/shop ?? I just created an account and completed the checkout process and in the end I clicked on "pay by paypal". Once I was redirected I entered wrong credentials (therefore no order payment) and went back to the website and my order was still there. Is there something I'm missing here? Much appreciated.
  7. Hello guys, I am using a custom payment module which can be found here: http://addons.prestashop.com/en/payments-gateways-prestashop-modules/17250-custom-payment-method.html The module's basic functionality was tweaked a bit so that once I create an order it redirects me to the payment gateway and after payment (regardless if successful or not) it redirects me to the return page which display the shipment tracking code and other information (or not if payment failed). I don't mind it creating an error before successful payment. My question is: how can I prevent Prestashop from clearing my cart before heading to the gateway? I noticed that if I go to the gateway and the payment fails I am redirected back to the page with the the cart emptied. Basically I want to comment out that part of the code that clears the cart and add it to the bit that handles successful transfers only. I just need someone to pinpoint it for me. Here's the snippet of code from the module that handles this issue: /**************************************************************************************************************************************/ $this->module->validateOrder((int)$cart->id, $id_order_state, $total, (Tools::strlen($custom_payment->name) ? $custom_payment->name : 'custom payment method'), null, $mail_vars, (int)$currency->id, false, $customer->secure_key); $order = new Order($this->module->currentOrder); CustomPayment::addOrderCommission($this->module->currentOrder, $this->context->currency->id, $commission); $total_paid = $order->total_paid + $commission; $order->total_paid = ($total_paid < 0 ? 0 : $total_paid); $total_paid_tax_excl = $order->total_paid_tax_excl + $commission; $order->total_paid_tax_excl = ($total_paid_tax_excl < 0 ? 0 : $total_paid_tax_excl); $total_paid_tax_incl = $order->total_paid_tax_incl + $commission; $order->total_paid_tax_incl = ($total_paid_tax_incl < 0 ? 0 : $total_paid_tax_incl); $order->save(); /**************************************************************************************************************************************/ Thanks in advance for anyone who can help.
  8. Still waiting for an answer regarding this...
  9. Hello All, I am new to PrestaShop (started with it 2 weeks ago) and I was wondering if anyone could help me tackle this one thing I'm facing: Is there any way (Either via PrestaShop's webservice api or from the backend, without having to download any addons) where I can check if a store has a product available or not? I am referring to the actual physical store and not the online shop. For example, I have two physical stores both work under the same online shop yet one is out of T-shirts while the other still has 20 left, can I detect that? If the answer is no, do you recommend any module I can download to manage that? Thanks for any help you guys can provide.
×
×
  • Create New...