Search the Community
Showing results for tags 'Cart'.
-
Hello i have a serious problem with my e shop and i cant take anymore orders because when u add a product in the cart sometimes shows zero price and total a bigger amount or sometimes add correct the price but again the total amount is bigger.Please if anyone could help me and get me out of this predicament I would greatly appreciate it
-
I have the check and paypal module enabled, but in the shopping cart it shows that there are no payment methods. I checked the obvious places for errors (admin payment options [currency], module settings), but nothing work. I tried disabling/enabling the modules hoping that it would correct the problem but it didn't. Does anyone have an idea why this is happening? I appreciate the help.T Thanks
-
Hello, I would like my cart button to show the whole ajax blockcart modal instead of showing a dropdown menu. On the cart button I've tried to change data-toggle="dropdown" to data-toggle="blockcart-modal" with no success... onclick="prestashop.blockcart.showModal()" doesn't work either, with no javascript error. I can't find any info on how to trigger the cart modal show up. Would anyone have any idea ?
- 4 replies
-
- theme development
- cart
-
(and 2 more)
Tagged with:
-
Hallo Prestashop 1.7.8 does not refresh the quantity in the cart. When I press refresh F5 it changes to the correct value. In previous version Prestashop 1.7.7.8, the quantity is updated correctly automatically. I have a Sonice template from Hiddentechies. What could be the reason? Is it related to the template? My page https://www.wholesale.jksweaters.com/
-
Undefined variable specific_price_output in Cart override
pl.sabotinov posted a topic in Bug reports
Hello, in Prestashop 8.1.4 i have made an override of the Cart.php file. I have done this override many times in different older versions of PS. So i am overriding the function getPackageShippingCost(). The goal is to add an aditional shipping cost for each product, calculated during cart execution and debending on the current price and discount of any product in the cart. So here the calculation i made: $shipping_cost += (($product['price'] * (1 - (float)$specific_price_output['reduction'])) * $product['cart_quantity']); And all the calculation is done correctly and added to shipping cost. But in error_log (or in Debug mode) i receive the error: "Undefined variable $specific_price_output in /home/mipiseuz/shop/override/classes/Cart.php on line 466 PHP Warning: Trying to access array offset on value of type null in /home/mipiseuz/shop/override/classes/Cart.php on line 466" If I am not in Debug mode everything works correctly - competing the order. But if in debug mode - the final confirmation of order ("Place order") is not possible. Button is not working. As i have written i have done the exactly same override many times in PS 1.6 PS 1.7 - without any problem. And I see this var $specific_price_output is used (defined and filled with value, also checked for not empty specific_price_output['reduction']) in function applyProductCalculations() which is executed before getPackageShippingCost(). I have checked - when the product has a discount - this calculation of $shippin_cost is calculated correctly with the reduction. So why I get this error in the error_log?-
- specific_price
- undefined
-
(and 3 more)
Tagged with:
-
Hello, I have developed a custom module that allows purchasing specific products individually. Every time a product from that group is added to the cart, I check for it and remove any other products already in the cart. This works fine for most products, but when I add a product with combinations (like 1 or 2 variations, so it's not too large), it leads to high memory consumption and possibly an infinite loop. I'm not sure why this is happening. Here's my code: public function hookActionCartSave() { $arrayMembership = array(151029, 150995, 150996, 150997, 150998, 150999, 151000, 151001, 151077); // get cart id if exists if(isset($this->context->cart)){ //$this->context->cart = $this->context->cart; //$objectCartCustom = $this->context->cart->getProducts(); $objCart = new Cart($this->context->cookie->id_cart, $this->context->cookie->id_lang); $has_membership_in_cart = false; foreach ($arrayMembership as $id_membership) { $check_qnt = $objCart->containsProduct($id_membership); if(isset($check_qnt['quantity']) && $check_qnt['quantity'] > 0){ $has_membership_in_cart = true; } } //echo $has_membership_in_cart;die(); //print_r($this->context->cart->containsProduct($arrayMembership[1]));die(); if($has_membership_in_cart){ $has_deleted = false; foreach ($objCart->getProducts() as $cart_row) { if(!in_array($cart_row["id_product"], $arrayMembership)){ $objCart->deleteProduct($cart_row["id_product"]); $has_deleted = true; } } return $e; } } }
-
Hi, i'm using webservice api to get order from my e-commerce but i need to retrieve information about cart rules other than total discounts in order api. How can i get this data? Thanks in advice.
-
Bonjour, j'aimerai ajotuer dans le panier (personnalisé par le thème) une phrase du style "X € restants pour bénéficier des frais de port).. et remplacer ce texte par offert si le panier hors livraison dépasse 59€. J'ai réussi à ajouter la phrase "Frais de ports offerts à partir de 59€" en modifiant le shopping-cart.tpl mais je n'arrive pas à écrire une formule php pour définir (59-sous total). et si + de 59 alors afficher livraison gratuite Est il possible de m'aider svp ? Merci !
-
Hi guys, i have problem with ps wirepayment module! When its activated i cant open cart (500error) and cant make order (500error) When disabling wirepayment, every thing works, but people can make order because there is no payment method! Here is error! Any solutions? PHP8.1 Module 2.2.0 Presta shop version 8.1.7
- 2 replies
-
- wirepayment
- 500error
-
(and 3 more)
Tagged with:
-
Hi all, we have a lot of abandoned carts (probably not the only one). I wonder what the best strategy is to get some use of them. The problem is that we don't have ay information about who is leaving the cart, so I was thinking if there is a way to either do some sort of offer when the "move" away from the cart. Some way to get the cusomters to "wanna" buy. Any ideas, is there any good module for it or some other way? Thanks in advance!
-
Hi there, I have a problem with the cart icon displayed in the header. Description of the problem Step 1: When I launched the site, I wanted people to create their account befoyre buying anything. For a few days, there was no cart icon displayed as long as you weren't logged in. You could click "add to cart" all you want, nothing happened and it was absolutely normal, for you had to log in first. Step 2: Eventually I decided that people should be able to add products to cart before logging in or signing up. So I had to edit some files accordingly and I got the desired result. The visitor sees a product he likes. He "adds to cart". He's redirected to the login page. He either logs in or signs up. He's now logged in and the product he had added before is already in his cart. Step 3: Finally the idea came to my mind that I should let anyone buy stuff on this site without ever having to log in or even have an account. The problem is, the visitor can't even known if the product was added, since the cart icon (in _desktop_cart div, you know) is not there. Actually I had removed it in step 1. The "add-to-cart" functions works fine though (for if you log in or create an account after having clicked "Add to cart", you see the selected product in you cart). But the non-loggedin customer can't go further because he has no way to check his cart. So basically, on a more technical level, the problem is is. When !$customer.is_logged (to put in bluntly), the #_desktop_cart div is empty. But as soon as $customer.is_logged, the #_desktop_cart div is alright, and the cart contains whatever customer added before logging in. I want the #_desktop_cart div to work exactly the same whether one is logged or not. Can someone help me ? Context : - i use a child theme Than you!
-
Hello. I have an issue since I created this website: when I add something to cart it takes around 8 seconds for the pop-up to show and after that the whole website starts working very very slow. After I finish the order and the cart empties, it comes back to working perfectly fine. Any idea how I can fix this or if it is fixable?
-
Hello, My website is having this issue for some accounts ! but other could place orders normally! any one knows why? and how to fix
- 21 replies
-
- cart
- empty cart
-
(and 2 more)
Tagged with:
-
Hello, I used this code: {$urls.pages.cart} to get the cart url page. If I am not logged in when I click on the button it redirect me to the cart page what is normal. But if I am logged in, even if I have products on cart or not, the button redirect me to the homepage. Any advices? Thank you!
- 7 replies
-
- log in
- prestashop
-
(and 2 more)
Tagged with:
-
fixed Cart is emptied during checkout - only with Firefox
Hokuto ShinKen posted a topic in General topics
Hi all, I have a problem that started more or less recently with my shop www.staring.es Customers using Firefox based browsers on all OS platforms (Firefox stable, nightly, Tor browser, OSX, Windows, Linux) cannot buy. If they add a product to the cart, and start the checkout process, at some point, the cart will turn empty. It does not happens with other browsers like Chrome, Edge or Safari. Video is attached in order to better see what is going on. Another very very strange thing: few days ago I duplicated the website to dev.staring.es ... and there the problem doesn't occur at all ... 🥲 Any help, clue is welcome (I tried to find on internet similar issues but had no luck). PS version 1.7.8.11 PHP 7.4.33 on uptodate server cart is emptied.mov -
Advanced Delivery Date Pro This is a powerful and functional module for organizing a more convenient choice of delivery date and time with support for delivery date and time in invoices. With the help of the module, you can set up time intervals, with the ability to disable delivery on weekends and holidays and create your own schedule, as well as with the possibility of deferred shipment of goods. Advanced Delivery Date Pro is fully compatible with the latest version of PrestaShop 1.7.8 Buy module via PrestaShop Addons Demo PS 1.7: Demo Front Office Demo Back Office Demo PS 8: Demo Front Office Demo Back Office Login: [email protected] Password: demodemo Front Office: Features: Each courier and each day of the week can have their own schedule. You can also set the time display mode to 12 or 24 hours. Whether to display the calendar in mobile and desktop versions or not. The ability to select the day of the report and the ability to completely disable delivery on certain days of the week. And also many other functions. We are constantly improving the module and you can send a request to add new functions. We also have the ability to immediately add new features through extended paid support. Back Office:
-
Bonjour, dans le BO Prestashop, on a de nombreuses lignes de panier à 0, apparemment un comportement normal mais à quoi correspondent ces paniers à 0?
-
Bonjour à tous, j'aimerais ajouter à ma fiche produit un bouton "ajouter 6 au panier", avec comme vous l'aurez compris l'ajout d'un coup de 6 produits au panier. Le but étant bien d'ajouter une certaine quantité du même produit (pas de bundle). Auriez-vous une idée de comment faire ? Merci beaucoup d'avance.
-
Hello, I've installed the Knowband Manager gift cards module v2.0.5 from Knowband and I'm encountering an issue. When I use a gift card code, the discount is only applied to the product and doesn't take the shipping cost into account. For example, I have set up free shipping through the 'Carriers' tab for different carriers starting from various prices, but the minimum is from 100 PLN. Let's say a customer shops for 120 PLN and qualifies for free shipping, then uses a gift card worth 50 PLN. They should now pay 70 PLN, but end up paying 85 PLN because the gift card seems to reduce the order value, and as a result, we no longer qualify for free shipping. Is there a way to configure it so that the gift card reduces the total value of the order including shipping?
-
Hi everyone! I just posted a quick tutorial on how to display the "free shipping starts at" amount, and what is left to spend, in the cart summary page! http://nemops.com/prestashop-show-free-shipping/#.U99bavna6r0 Hope it's useful to someone! Cheers!
- 13 replies
-
- 4
-
Hello, I'm looking for a cart bonus module that will work a bit differently than the ones I've found available, because I want the bonus product to cost one penny, not be free. Additionally, I need the module to have a counter in the cart showing how much more needs to be added to the cart value for the customer to get the bonus product for one penny. Thanks a lot for any hints
-
Hi everyone. This is my first post on the forum. I'm happy to be here. I was wondering if there is a way to share cart content between sessions: I noticed that, every time I logout, I loose all items added to the cart. A further investigation on the database revealed that, when a user logs in, a new row is added to ps_cart table. Does anyone know if it's possible to prevent creating a new cart every time you log in? Can you use only one "permanent" cart per user? I'm asking about version 1.7.
-
Hello, I'm trying to remove the "Free" in the shopping cart text. It shows as free even when a customer is logged in until choosing their shipping address. After a lot of research I am unable to use the same solutions used in previous versions of Prestashop. I've been looking at the back office translations and I found one expression marked "Free" but it has no description and changing it did not seem to help. Beyond that I have been looking through my theme files and I'm just not proficient enough a coder to find the reference file. Can someone please offer some help with this?
- 19 replies
-
- free shipping
- text
-
(and 1 more)
Tagged with:
-
Hello everyone! I'm using Prestashop 1.7 and i'm using web service for the app development of my store. I'm creating cart using the api and it creates without any problem but if the user logs in the cart remains empty. The cart on my online store is not updating with the web service. Please help me as i have already wasted hours searching the issue. Let me know if you need more information. Many thanks.