Search the Community
Showing results for tags 'unique'.
-
Hi, I want to get unique session id for each new browser session like session_id in normal php function. From other forum posts and below documentation link, I come to know that prestashop using cookie for handling sessions. http://doc.prestashop.com/display/PS16/Managing+Cookies I tried different code samples but not getting unique browser session id like below code. Please advice. PrestaShop Tutorials Videos [How to do Tasks] @session_start(); $session_id = session_id();
-
Hi! Please help, I'm very frustrated with this: We have decent shop (hundreds of products) and we lately upgraded from 1.6.1.0 to 1.6.1.4 When saving now (within the BO edit product) many products, not all, but those who gets a lot of Specific Prices, we're getting this error: Duplicate entry '39-0-0-0-2015-11-29 00:00:00-2015-12-02 00:00:00-1-0-0-0-0-1-47' for key 'id_product_2' Which is indeed an UNIQUE KEY in the specific_price table. I tried digging in the code, and I found that the process of saving the product tirggers this function call: SpecificPriceRule::applyAllRules(array((int)$this->id)); Which indeed inserting the specific prices coming from Catalog Price Rules for that product, to the specific_price table in database! Plus, Looking into this sql error it seems that prestashop just try to insert the same specific price rule for the same product, where prestashop try at all to prevent this duplicate for unique key? I'm well aware of that topic: https://www.prestashop.com/forums/topic/467748-solved-specific-price-error-after-update-from-1609-to-1611/ And of that issues: http://forge.prestashop.com/browse/PSCSX-6535 http://forge.prestashop.com/browse/PSCSX-6346 None of the solutions mentioned there solved my error, none of it should, if prestashop indeed tries to insert duplicate values when unique key restriction exists. My issue is different though, my specific prices are working, only the process of Saving changes to my products is cancelled because of that error. Thank you for any help, Nati, Web developer
-
Hi Prestashop users! I've looked through the forum, but haven't been able to find a solution. At the moment we are tracking a goal url which is: dashboard\?action=confirmation It works fine, and we get a lot of these goal completion locations: /da/dashboard?action=confirmation&id_cart=XXXXXX&id_module=XX&id_order=XXXXXX&key=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX. The problem is if the customer then opens the links several times, then it also counts as more conversions, how can we get rid of this? Should we track the conversion another way or? I realise that it is more of a Google Analytics problem than a prestashop problem, but any help is much appreciated as we entering a busy season on the accuracy of these numbers are crucial for our planning. - Kasper, Volt
-
Hi, I'm having to handle the sale of thousands one-off, unique products (antique books). This means that no two products are the same: stock levels always start at 1 and when that single one is bought, the product goes out-of-stock. I need to modify PrestaShop 1.6 to ensure that if two or more customers try to put the same unique product into their carts, that only one (the first) is successful, and the second gets an out-of-stock warning. Then, the successful cart has a certain time window to create an order. Otherwise the cart releases the product which becomes in-stock again. My questions are: – Does anyone know of any module which provides this (or similar) functionality? – If not, at which points in the PrestaShop code would recommend implementing the above enhancements? – Is the "reservation" concept of AdvancedStockManagement helpful here? I would very much appreciate the insights of anyone who has implemented something similar. Thanks! Peter
-
Hello, We are creating a theme for prestashop. However we would like to add multiple html block ( preferable with WYSIWYG editor ) to different hooks. We found some modules but they dont allow us to add different content per hook. We don't mind to use a third party module. Is this possible? Kind regards, Marvin Marting
-
Hi everyone, I would like to put up a product on my store that each unique customer is limited to buying a maximum of 1 unit of this product. I will have a quantity of 100 for this product, and I want 100 unique customers to be able to buy them. For example, Customer A adds this product to cart, checks out and pays, the next time Customer A browses the shop, Customer A is no longer able to add the product to cart anymore. On the other hand, if a Customer B browses the shop, he/she will be able to buy 1 of this product, but after he/she has bought it, he/she will not be able to buy another one of this product. And this goes on until all 100 pieces of the product is sold out to 100 different customers. How do I configure this in Prestashop?
-
Hello. I just added new custom field to product. How set unique validation for this field ? In my database custom field is mark as UNIQUE and when i try add two rekords with the same value in unique field - i see database error 'Duplicate entry' How add unique conditions on custom field ?
-
Bonjour, Pour un site de bijoux, chaque pièce est une création unique. Mais parfois disponible sous plusieurs formes (typiquement différents types d'attache possible pour une même paire de boucle d'oreilles). En l'état, pour qu'une déclinaison soit disponible à la vente, il faut mettre une quantité d'au moins 1 par déclinaison, ce qui fait 3 produits, au lieu d'1 réellement en stock, qui attend juste sa déclinaison finale en fonction du choix de l'acheteur. Il y a t'il moyen de spécifier dans l'admin à partir de quelle quantité faut-il retirer le produit de la vente, pour chaque produit individuellement ? Merci d'avance
- 1 reply
-
- déclinaison
- attribut
-
(and 3 more)
Tagged with:
-
Bonjour à tous, Voilà quelques mois que mon site est en ligne, j'aimerai avoir quelques avis constructifs sur l'ergonomie du site, la colorimétrie (orange/jaune est peut-être trop flashy...) car je commence à être en manque d'idée ! L'adresse: www.aufildespierres.fr Toute critique est bonne à prendre, merci d'avance. Bonne journée
- 8 replies
-
- boutique prestashop
- bijoux
-
(and 1 more)
Tagged with:
-
saya pernah instal unique pricing di prestashop, supaya total price ada unique pricenya cth: 72.000 jadi 72.008 tapi saya lupa nama modulenya. saya mau uninstall/disable. ada yg bisa tolong, sebelumnya terima kasih http://carousel-store.com/store
-
How can I Add unique ID number to category block list. Im running PS 1.4.6.2 So I can CSS style each LI independently ?
- 2 replies
-
- category block
- list
-
(and 2 more)
Tagged with:
-
Hi, A user can change his/her email to an already existing email in prestashop. Is this a known bug? At customer registration only unique email addresses are allowed (if guest accounts are disabled) but from the customer account settings page it is possible to alter the email address to an already existing one - should that be possible, is there a fix I could add to my store? If I try the same from Admin I get a warning! I'm writing a facebook login module and I will have inconsistency when I try to merge user with same email adresses if they are not unique inside prestashop (http://developers.fa...stration/flows/). Is there anyone that can point to a known bug, fix, etc. If I instead buy a facebook login module that works for prestashop 1.4 - how have you solved it? Thanks in advance!