Search the Community
Showing results for tags 'product_id'.
-
Hello there, I have a problem that I have more than 28000 items in my store and there is something wrong that there are some products are searchable and some items are not searchable in same product variation, can anyone tells me why this happening.... I create the Topic Before, But in many years no PrestaShop Developer Give me any Answer so i am creating this topic again and in between this time i reindex my all items but still this Prestashop is not workign properly... Thanks in advance Thank you
- 2 replies
-
- searching
- not searchable
-
(and 3 more)
Tagged with:
-
Bonjour, Je travaille sur un module de paiement perso. qui ne doit s'afficher dans le tunnel d'achat qu'à certaines conditions, pour créer ce module je me suis basé sur le module de paiement par chèque. Les conditions d'affichage du nouveau module dans le tunnel d'achat : Les produits du panier doivent faire partie de certaines catégories de produits spécifiques. Le prix HT de chaque produit du panier doit être supérieur à un certain montant. Mon problème est le suivant : Pour gérer la première condition (vérifier que les produits du paniers font partie de certaines catégories) j'ai modifié la fonction hookPayment de mon module comme ceci : public function hookPayment($params) { // Tableau $allowed_products avec les ID des produits éligibles à cette méthode de paiement $allowed_products= array(6244,8871,5,10,12); // Je récupère les produits du panier $products = Context::getContext()->cart->getProducts(); // je compare les produits du panier à ceux du tableau $allowed_products $allowed=false; foreach ($products as $product) { // Si il y a correspondance $allowed = true if (in_array($product['id_product'], $allowed_products)){ $allowed=true; } } if (!$allowed) return; if (!$this->active) return; if (!$this->checkCurrency($params['cart'])) return; $this->smarty->assign(array( 'this_path' => $this->_path, 'this_path_bw' => $this->_path, 'this_path_ssl' => Tools::getShopDomainSsl(true, true).__PS_BASE_URI__.'modules/'.$this->name.'/' )); return $this->display(__FILE__, 'payment.tpl'); } Cette méthode fonctionne mais j'ai beaucoup de produits éligibles pour cette méthode de paiement et pour éviter de taper à la main tous les ID produit dans le tableau $allowed_products, je souhaite savoir comment récupérer les ID des produits de certaines catégories et les intégrer dans le tableau $allowed_products, . Jusqu'à présent je n'ai pas trouvé de solution je dois passer à côté de quelque chose ! -_-' Quelqu'un peut m'aider ou me donner une piste ? Merci d'avance. INFO : Version de PrestaShop 1.6.0.14.
- 8 replies
-
- id product in array
- array
-
(and 3 more)
Tagged with:
-
Hi everyone! Right now Prestashop shows product reference on the product front page: <div class="feature_line" id="product_reference" {if isset($groups) OR !$product->reference}style="display: none;overflow: hidden;"{else}style="overflow: hidden;"{/if}><span class="feature_line_left">{l s='Product code'}:</span><span class="feature_line_right" itemprop="sku">{$product->reference|escape:'htmlall':'UTF-8'}</span></div> How can I change it, in order to show product id (numbers)? I tried for 2 hours with no success :/ I'm editing product_tpl file.
- 2 replies
-
- product_tpl
- reference
-
(and 2 more)
Tagged with:
-
Hola, Tengo una tienda con 21,105 productos en un servidor dedicado. Utilizo un importador de base de datos llamado importfast que me pide que todos mis productos contengan supplier_reference y lo empato con el product_id Pero a partir del producto 20,831 aunque grabo el proveedor y el ID desde el administrador del catalogo no guarda el ID en la base de datos, y a partir de aquí empieza a haber saltos de IDs, ids en blanco o se repiten sin razón. el product_id se guarda correctamente el problema es es supplier_reference Alguien tiene alguna idea de que podría ser?
-
Sziasztok! Lenne arra mód egy létező vagy akár egy új oldalnál, hogy a product_id, amit a rendszer generál azt megváltoztatni, vagy ugyan az legyen mint a terméknél a model szám/ vagy cikkszám. Köszönöm.
- 1 reply
-
- model
- Product_id
-
(and 1 more)
Tagged with:
-
I updated the id_category_default field in the ps_product table to the default category ID that I need. But I notice that this doesn't affect the value in Back Office when you go to update the item, go to Associations, the Default Category still shows the old Category. Then I hit save in BackOffice with the same value (old default category selected in the drop down), refresh the db table ps_product and I see the value for id_category_default goes back to the old one. So this does have an effect when updating in BackOffice, it just doesn't work when updating from the Database. What else should I be updating to change the Default Category for an Item in the database?
- 3 replies
-
- SQL
- default category
- (and 3 more)