Jump to content

Jurist

Members
  • Posts

    151
  • Joined

  • Last visited

Everything posted by Jurist

  1. Hello, I am using prestashop 1.6.1.2 and latest version of PageCache 3.09 and unfortunately I have to admit it recently just stopped working. We have a production store which has been selling over a year with this module but today I suddenly noticed that after adding a product to my shopping basket it disappears. Doesn't matter what's the next page I would visit, homepage, order page, CMS, it just says that my shopping cart is empty. I've tried to use all test modes and debugging available in the module back office, but nothing helps. I disabled every single hook for cart block, then one by one to see if anything changes. Unfortunately no way. Even it's not possible to log in for a while. After clicking few pages you are automatically signed off and your cart is empty of course. I had no choice but to uninstall and remove this module as frustrated customers were calling asking what they are doing wrong and I noticed just today that it's almost impossible to place an order with PageCache module enabled. It's a shame especially beause it worked for us for long months. I am also using all the cache built-in prestashop plus Xcache. I tried to disable them all and leave only pagecache enabled - unfortunately still products are removed from shopping basket, or rather user is no longer owner of his shopping basket as it's still present in back office, just customer doesn't have access to it. If somebody could give an advice how to fix this that would be great, it is good module overall.
  2. I've got something like this: {if $cart_qties == 0} <a id="carticon" href="{$link->getPageLink($order_process, true)|escape:'html':'UTF-8'}" title="{l s='View my shopping cart' mod='blockcart'}" rel="nofollow"> <b>{l s='Cart' mod='blockcart'}</b> <span class="ajax_cart_quantity{if $cart_qties == 0} unvisible{/if}">{$cart_qties}</span> <span class="ajax_cart_product_txt{if $cart_qties != 1} unvisible{/if}">{l s='Product' mod='blockcart'}</span> <span class="ajax_cart_product_txt_s{if $cart_qties < 2} unvisible{/if}">{l s='Products' mod='blockcart'}</span> <span class="ajax_cart_total{if $cart_qties == 0} unvisible{/if}"> {if $cart_qties > 0} {if $priceDisplay == 1} {assign var='blockcart_cart_flag' value='Cart::BOTH_WITHOUT_SHIPPING'|constant} {convertPrice price=$cart->getOrderTotal(false, $blockcart_cart_flag)} {else} {assign var='blockcart_cart_flag' value='Cart::BOTH_WITHOUT_SHIPPING'|constant} {convertPrice price=$cart->getOrderTotal(true, $blockcart_cart_flag)} {/if} {/if} </span> <span class="ajax_cart_no_product{if $cart_qties > 0} unvisible{/if}">{l s='(empty)' mod='blockcart'}</span> {if $ajax_allowed && isset($blockcart_top) && !$blockcart_top} <span class="block_cart_expand{if !isset($colapseExpandStatus) || (isset($colapseExpandStatus) && $colapseExpandStatus eq 'expanded')} unvisible{/if}"> </span> <span class="block_cart_collapse{if isset($colapseExpandStatus) && $colapseExpandStatus eq 'collapsed'} unvisible{/if}"> </span> {/if} </a> {else} <a id="carticon" class="fullcart" href="{$link->getPageLink($order_process, true)|escape:'html':'UTF-8'}" title="{l s='View my shopping cart' mod='blockcart'}" rel="nofollow"> <b>{l s='Cart' mod='blockcart'}</b> <span class="ajax_cart_quantity{if $cart_qties == 0} unvisible{/if}">{$cart_qties}</span> <span class="ajax_cart_product_txt{if $cart_qties != 1} unvisible{/if}">{l s='Product' mod='blockcart'}</span> <span class="ajax_cart_product_txt_s{if $cart_qties < 2} unvisible{/if}">{l s='Products' mod='blockcart'}</span> <span class="ajax_cart_total{if $cart_qties == 0} unvisible{/if}"> {if $cart_qties > 0} {if $priceDisplay == 1} {assign var='blockcart_cart_flag' value='Cart::BOTH_WITHOUT_SHIPPING'|constant} {convertPrice price=$cart->getOrderTotal(false, $blockcart_cart_flag)} {else} {assign var='blockcart_cart_flag' value='Cart::BOTH_WITHOUT_SHIPPING'|constant} {convertPrice price=$cart->getOrderTotal(true, $blockcart_cart_flag)} {/if} {/if} </span> <span class="ajax_cart_no_product{if $cart_qties > 0} unvisible{/if}">{l s='(empty)' mod='blockcart'}</span> {if $ajax_allowed && isset($blockcart_top) && !$blockcart_top} <span class="block_cart_expand{if !isset($colapseExpandStatus) || (isset($colapseExpandStatus) && $colapseExpandStatus eq 'expanded')} unvisible{/if}"> </span> <span class="block_cart_collapse{if isset($colapseExpandStatus) && $colapseExpandStatus eq 'collapsed'} unvisible{/if}"> </span> {/if} </a> {/if} And there are no erros and it looks like it was working, just another problem happened, after adding the product to shopping cart it is there, fine, but after refreshing F5 or clicking on homepage it disappears... your shopping cart is empty. Thank you man for all your help, I think I am close to resolve this problem. EDIT: It works!!! Both changing class just after adding or removing products from shopping cart (javascript) and checking if there is any product in cart after every page refresh, problem SOLVED thanks to awesome help from ndiaga. I fought with it almost entire day, you're a lifesaver. Thank you!
  3. I can confirm that this works, I almost have everything as I wanted but I've got a problem with smarty syntax I think. Sorry for stupid question but how {if},{elseif} with mutlpile operations inside should look like? {if $cart_qties > 0}( <- should be there a standard bracker or curly bracket? operation 1 operation 2 operation 3 ) {elseif $cart_qties == 0}( operation 1 operation 2 operation 3 ){/if} Is that correct? I think I've mistaken something as it's working but after refreshing site sometimes the cart is reset. Many thanks for your help I really appreciate it.
  4. I would need javascript that checks if the shopping cart is empty or not upon refreshing page. It probably is even easier with smarty methods, however I don't know prestashop that much yet. Basically I would need a script, condition that will display a href with one class if shopping cart is empty or with another class if there are some products inside. Check should occur at every page refresh and after adding a product to cart. Maybe somebody will have a clue how to do this. Thanks for your answers.
  5. Unfortunately this is not a good resolution, it informs the customer somehow that a product was in his shopping cart, but after refreshing the page added class is gone.
  6. Ok, I actually managed to do this on my own. If somebody had similar problem and would like to change the shopping cart layout after product is added to the shopping cart here's the resolution: 1. themes\theme_name\modules\blockcart\blockcart.tpl on line 28th add an ID to a href element, for example: <a id="cart_icon" href="{$link->getPageLink($order_process, true)|escape:'html':'UTF-8'}" title="{l s='View my shopping cart' mod='blockcart'}" rel="nofollow"> 2. \themes\theme_name\js\modules\blockcart\ajax-cart.js just after line: success: function(jsonData,textStatus,jqXHR) { add code: var element = document.getElementById("cart_icon"); element.classList.add("fullcart"); 3. you can add class removal after the product is removed from the cart, inser code below after line: remove : function(idProduct, idCombination, customizationId, idAddressDelivery){ var el = document.getElementById("carticon"); el.classList.remove("fullcart"); However this resolution does not work as intended, because it adds a class only temporary, when the page is refreshed the class is gone, it should probably be actually saved in a cookie or something like this. I would appreciate any help.
  7. I would like to add another class which would change the image. That would help our customers understand that they actually have something in their cart, because at the moment they only see it after moving their mouse coursor over it. I've tried something like this: {if $cart_qties == 0} <a id="emptycart" href="{$link->getPageLink($order_process, true)|escape:'html':'UTF-8'}" title="{l s='View my shopping cart' mod='blockcart'}" rel="nofollow"> {else} <a id="fullcart" href="{$link->getPageLink($order_process, true)|escape:'html':'UTF-8'}" title="{l s='View my shopping cart' mod='blockcart'}" rel="nofollow"> {/if} but it doesn't work, looks like this condition is checked before something is shown that something actually is in the shopping cart. I would need to write a trigger that at the moment when product is added to cart, class for a href is changed, and it would be the best if the class changed back again if the product is removed.
  8. Hello, Is there any method to check if there are any products in customer's shopping cart? I'd like to check condition, if products in cart > 0 then different img src is being displayed (I understand that I will need to edit blockcart.tpl). I saw here on forum {if $cart_qties > 1} is this up to date for latest prestashop version? Regards Edit: the best resolution would be code that changes class or id of an element just after product is added to cart. Check should be performed on every page refresh.
  9. After few days I have dealt with this and I can confirm that this feature with advancedeucompliance v2.0.1 works and non-default module works, or at least it is possible to make it work. You can also edit your own payment method to add hookDisplayPaymentEU to be displayed with this module and to be compliant with EU law. My another question is, is it possible to make ship2pay module work this advancedeucompliance? I want COD to be displayed after COD carrier is selected. I will appreciate any response. EDIT: Okay, I've managed to fix this too. Now this module works flawlessly. I had to edit each payment method cod and add condition: $id_carrier = (int)$this->context->cart->id_carrier; if (intval($id_carrier==7)){ } inside hookDisplayPaymentEU($params). If any future user will have problems with EU Advanced compliance module, ship2pay and non default store template, please PM
  10. This feature probably doesn't work because I am not using default module. Even with standard COD and bankwire payment modules without ship to pay module, after installing/uninstalling resetting, clearing cache and stuff this feature doesn't work. My question is how to make last step of prestashop order compliant with EU law. Or how to make this module work with non default template. EDIT: I've tested it with default template enabled - the same thing, No payment modules were installed. I renamed order-payment-advanced.tpl to order-payment and looks like it working, at least it's showing all order details on payment step however still Unable to find any available payment option for your cart. Please contact us if the problem persists Anybody knows how to make payment options visible with order-payment-advanced.tpl ?
  11. That's right, payment option should be selectable, and after selecting particular payment option href of the button should change respectively, I know that coding this wouldn't be easy, especially that we need to do this on production store and I would be afraid that payment process might be messed up because of this. Basically we need the last step changes to make it work like on attached screenshot. Prestashop OPC is not EU law compliant, so we would rather stay with our 5 step process and just change payment selection if possible.
  12. The only problem I see is that this feature DOES NOT WORK.
  13. Hello, Would it be possible to create payment options selectable? After selecting one payment option, for eg PayPal, there should be a button that will lead to PayPal payment just as it happens in default after clicking on PayPal. The button should have different href that would change if other payment option was selected. Any idea how to make it work like that? If any developer is interested please contact us.
  14. Any idea how to make this EU Advanced module work? Or how to make it like this: payment on last step should be selectable, and after selecting it button 'I confirm my order' should become active and forward to correct payment method? Is this possible with any other module maybe? At the moment it's impossible to make your prestashop compliant with Customer Rights Directive It should work like on the attached screenshot.
  15. It just work for us and we are satisfied with it, we have a lot of other work that needs to be done before we maybe consider OPC and implement it. It needs testing and development, work and time that we don't have right now. I don't say 5pc is better than opc. I just want to make this module's function work, last page need summary, selectable payment and button with confirmation.
  16. I don't like OPC at all. What I would prefer most is 5 step checkout plus last page just like on the screenshot. Payment option would need to be checked and then click on the button which is currently misisng to confirm.
  17. Notice in Zeile 906 der Datei /home/dewetroomsdesign/public_html/classes/ObjectModel.php [8] Undefined property: Customer::$reset_password_token Notice in Zeile 906 der Datei /home/dewetroomsdesign/public_html/classes/ObjectModel.php [8] Undefined property: Customer::$reset_password_validity Notice in Zeile 352 der Datei /home/dewetroomsdesign/public_html/classes/ObjectModel.php [8] Undefined property: Customer::$reset_password_token Notice in Zeile 352 der Datei /home/dewetroomsdesign/public_html/classes/ObjectModel.php [8] Undefined property: Customer::$reset_password_validity Removing validation 'reset_password_token' => array('type' => self::TYPE_STRING, 'validate' => 'isSha1', 'size' => 40, 'copy_post' => false), 'reset_password_validity' => array('type' => self::TYPE_DATE, 'copy_post' => false), from Customer.php solves the issue and makes password reset work.
  18. I've actually managed to reset password function work as described here: https://github.com/PrestaShop/PrestaShop/commit/863a2f264e461d03d7a230c50ed46e73ac015345#diff-83536235df8e0d38c1fdcfd4b2613a0cL191 I've just added missing fields in ps_customer table but now I cannot add new customer or register in front office. It says that there's a problem with object customer () Looks like some database alteration is needed to make this work. Really don't understand why this is not in official release.
  19. Default bank wire and paypal, card payment + sofort. Basically I need the last step with normal order make work like this: Summary, addresses, accept Terms and conditions then check payment and click - 'I Confirm my order' Instead of just clicking payment method to use it. It needs to be selected and then confirmed by clicking button. exactly like here: https://www.prestashop.com/blog/de/files/2015/09/bestellseite-1015x1024.jpg
  20. Any chance somebody can update this for latest prestashop (1.6.1.5) version? Receiving plain text password in e-mail is very bad. I tried to apply modification from posts above but files have changed significantly since 1.4. Edit: I tried this: https://github.com/PrestaShop/PrestaShop/commit/863a2f264e461d03d7a230c50ed46e73ac015345#diff-83536235df8e0d38c1fdcfd4b2613a0cL191 but it says that there was an error while trying to recover password. I think it has something to do with token, because I cannot alter customers or add them at all. customer (Unknown column 'reset_password_token' in 'field list') Why isn't this update in the latest prestashop? It's so much better than plain text recovery. I think this should be added to main prestashop release.
  21. Hi, I am using advancedeucompliance and no other module, that's why I am writing here. There's an option in configuration of that module Aktiviere One-Page-Checkout which after enabling causes no payment methods to be available. This is mandatory for TrustedShops store audit. I tried to apply fixes listed here: Merge pull request #4739 from Nobodaddy/patch-45 to hook.php but it didn't help, still just after activating the option I can see No payment modules have been installed. Selecting this as disabled makes payment method to be present again. I have all country and currency requirements set up correctly. How to fix this option in Advanced EU compliance module?
  22. Hello, I have similar problems. With option Aktiviere One-Page-Checkout enabled I can see no payment methods. After disabling this and refreshing payment methods are available again. Distinctly enabling one page checkout with the module are making that there are no payment methods for customer only message: No payment modules have been installed. It doesn't matter which Delivery option is selected, I am also using ship2pay module for cash on delivery (if I disable it there are still no payment options with one page checkout enabled). How do I make payment methods present on one page checkout with the module?
  23. Hello. Is it possible to set prestashop to apply only one discount? For eg, we have 20% sale for a products. We give 10% cart discount for customerA and 30% for customerB. We would like to make our customerA to have product sale (20%) active, and make cart rule impossible to add, there should be only one, stronger sale active, 20%. In case of customerB he should be able to add Cart Rule to reduce price by 30%, but after this, product sale should be removed. I have edited CartRule.php to use solution from post #13 here: https://www.prestashop.com/forums/topic/290274-disabling-discounts-cart-rules-to-items-already-on-sale/ and it's currently working that if there's already sale it's impossible to add cart rule, that's fine. But what if cart rule is stronger than the current sale? Kind regards
  24. I've actually found the solution: truncate ps_order_invoice truncate ps_order_invoice_payment truncate ps_order_invoice invoice_tax where and regenerate the again from the back office.
×
×
  • Create New...

Important Information

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