Jump to content

jcros

Members
  • Posts

    36
  • Joined

  • Last visited

About jcros

  • Birthday 12/31/1982

Contact Methods

  • Skype
    johancros

Profile Information

  • Activity
    Other

jcros's Achievements

Newbie

Newbie (1/14)

2

Reputation

1

Community Answers

  1. C'est gentil ! Pour l'instant je vais attendre un peu les réponses. Sinon je pensais le changer dans la base de données directement mais je ne sais pas s'il y a une règle métier derrière.
  2. Bonjour à tous !! Je reviens vers vous, suite à un démarrage de boutique ce matin, nous venons de nous apercevoir que le groupe client est en HT. Jusque là aucun problème. Mais il n'est pas possible de le passer en TTC !! Nous faisons la modification, il nous affirme que la mise à jour a été réalisée mais si nous revenons sur le groupe client, il est toujours en HT. J'ai essayé de basculer les 4 clients sur un nouveau groupe et de changer le groupe client en TTC, la même. J'ai essayé la configuration des zones ou pays en supprimant le code VAT, mais impossible d'enregistrer la modification. Par contre l'affichage des prix sur les invités et visiteurs n'a pas posé de problème de changement. La version de prestashop utilisée 1.6.0.9. Auriez vous une idée ? Sinon est-il possible de mettre par défaut un nouveau groupe qui lui sera bien créée en TTC ? Je vous remercie par avance. Johan
  3. Bonjour Mephisto67 ! J'ai le même problème as-tu pu résoudre ton problème ? Je te remercie par avance. Johan
  4. I think because, a local copy works fine. You know how i can check this ? My prestashop is hosted by OVH Thanks Nemo1 for your help
  5. Hi Nemo1, i try with and wihtout the same. I test it on a localwebsite in 1.6.0.5 it works :/ .htaccess seems the same
  6. Hi everybody !! I activate webservices but that doesn't work. I will explain what i do : - Activate SSL => OK - Activate Webservice => OK - Delete .htaccess and recreate it (many times ...) - My .htaccess contains the redirect rule for webservice to api RewriteRule ^api/?(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L] - I add a key for a new webservice and select some object to expose like customer. - i Test with PSWebServiceLibrary.php - i acces with mysite/api But that doesn't work :/, it loops on the authentification key Thanks in advance Johan
  7. Bonjour à tous ! Je souhaiterai savoir s'il possible en natif dans prestashop de proposer le deuxième produit à -50%. Voici mon exemple REFERENCE A PU de 20€ Pour une quantité de 1 = 20€ Pour une quantité de 2 = 20€ + (20€ - 50%) soit 30€ Pour une quantité de 3 = 20€ + (20€ - 50%) + 20 soit 50€ Pour une quantité de 4 = 20€ + (20€ - 50%) + 20€ + (20€ - 50%) soit 60 € Etc. Le principe étant sur un modulo de 2 de la quantité du produit, appliquer la remise de -50% sur la moitié des produits ! J'ai vu qu'il y avait un module mais peut-être que c'est en natif ou facilement modifiable. Je vous remercie par avance. Johan
  8. Hi all, That's the code i change in product_list.php file to show short description, if it can help <div class="product-desc" itemprop="description"> {$product.description_short} </div>
  9. Bonjour Clair et Johann, tout d'abord merci de m'avoir accordé du temps, j'ai réalisé quelques correctifs sur le thème suite à vos remarques, je vais continuer dans ce sens. Je réaliserai aussi des modifications pour le référencement. Encore merci à vous. Cordialement, Johan
  10. Bonjour à tous Depuis le 7/07/2014, j'ai mis en ligne mon site e-commerce, réalisé sous prestashop. N'hésitez pas à le visiter et me donner vos avis, vos critiques. Le site est celui de JPPFrance spécialisé dans la vente en ligne aux entreprises de produit d'aménagement intérieur, extérieur, de mobilier urbain, de produit de communication et d'affichage. Bientôt seront ouvertes de nouvelles catégories comme la rubrique Festivités, signalisation, ou encore le nécessaire au service technique. Le site a été réalisé sous PRESTASHOP 1.6 avec modification du thème par défaut, mode B2B, sans gestion de stock, avec gestion des déclinaisons des produits, utilisation de l'écotaxe. J'attends vos retours avec impatience ! Et merci d'avance d'avoir pris de votre temps. Cordialement, Johan
  11. Re all, I've tested my modification. and it was done. I add the ecotax on the combination list. here the sample to override the function renderListAttributes, place the file AdminProductsController.php in the folder www/override/controllers/admin : <?php class AdminProductsController extends AdminProductsControllerCore { public function renderListAttributes($product, $currency) { $this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items?'))); $this->addRowAction('edit'); $this->addRowAction('default'); $this->addRowAction('delete'); $default_class = 'highlighted'; $this->fields_list = array( 'attributes' => array('title' => $this->l('Attribute - value pair'), 'align' => 'left'), 'price' => array('title' => $this->l('Impact on price'), 'type' => 'price', 'align' => 'left'), 'weight' => array('title' => $this->l('Impact on weight'), 'align' => 'left'), 'reference' => array('title' => $this->l('Reference'), 'align' => 'left'), 'ean13' => array('title' => $this->l('EAN-13'), 'align' => 'left'), 'ecotax' => array('title' => $this->l('ECO TAX'), 'align' => 'left'), 'upc' => array('title' => $this->l('UPC'), 'align' => 'left') ); if ($product->id) { /* Build attributes combinations */ $combinations = $product->getAttributeCombinations($this->context->language->id); $groups = array(); $comb_array = array(); if (is_array($combinations)) { $combination_images = $product->getCombinationImages($this->context->language->id); foreach ($combinations as $k => $combination) { $price_to_convert = Tools::convertPrice($combination['price'], $currency); $price = Tools::displayPrice($price_to_convert, $currency); $comb_array[$combination['id_product_attribute']]['id_product_attribute'] = $combination['id_product_attribute']; $comb_array[$combination['id_product_attribute']]['attributes'][] = array($combination['group_name'], $combination['attribute_name'], $combination['id_attribute']); $comb_array[$combination['id_product_attribute']]['wholesale_price'] = $combination['wholesale_price']; $comb_array[$combination['id_product_attribute']]['price'] = $price; $comb_array[$combination['id_product_attribute']]['weight'] = $combination['weight'].Configuration::get('PS_WEIGHT_UNIT'); $comb_array[$combination['id_product_attribute']]['unit_impact'] = $combination['unit_price_impact']; $comb_array[$combination['id_product_attribute']]['reference'] = $combination['reference']; $comb_array[$combination['id_product_attribute']]['ean13'] = $combination['ean13']; $comb_array[$combination['id_product_attribute']]['upc'] = $combination['upc']; $comb_array[$combination['id_product_attribute']]['ecotax'] = $combination['ecotax']; $comb_array[$combination['id_product_attribute']]['id_image'] = isset($combination_images[$combination['id_product_attribute']][0]['id_image']) ? $combination_images[$combination['id_product_attribute']][0]['id_image'] : 0; $comb_array[$combination['id_product_attribute']]['available_date'] = strftime($combination['available_date']); $comb_array[$combination['id_product_attribute']]['default_on'] = $combination['default_on']; if ($combination['is_color_group']) $groups[$combination['id_attribute_group']] = $combination['group_name']; } } $irow = 0; if (isset($comb_array)) { foreach ($comb_array as $id_product_attribute => $product_attribute) { $list = ''; /* In order to keep the same attributes order */ asort($product_attribute['attributes']); foreach ($product_attribute['attributes'] as $attribute) $list .= $attribute[0].' - '.$attribute[1].', '; $list = rtrim($list, ', '); $comb_array[$id_product_attribute]['image'] = $product_attribute['id_image'] ? new Image($product_attribute['id_image']) : false; $comb_array[$id_product_attribute]['available_date'] = $product_attribute['available_date'] != 0 ? date('Y-m-d', strtotime($product_attribute['available_date'])) : '0000-00-00'; $comb_array[$id_product_attribute]['attributes'] = $list; $comb_array[$id_product_attribute]['name'] = $list; if ($product_attribute['default_on']) $comb_array[$id_product_attribute]['class'] = $default_class; } } } foreach ($this->actions_available as $action) { if (!in_array($action, $this->actions) && isset($this->$action) && $this->$action) $this->actions[] = $action; } $helper = new HelperList(); $helper->identifier = 'id_product_attribute'; $helper->table_id = 'combinations-list'; $helper->token = $this->token; $helper->currentIndex = self::$currentIndex; $helper->no_link = true; $helper->simple_header = true; $helper->show_toolbar = false; $helper->shopLinkType = $this->shopLinkType; $helper->actions = $this->actions; $helper->list_skip_actions = $this->list_skip_actions; $helper->colorOnBackground = true; $helper->override_folder = $this->tpl_folder.'combination/'; return $helper->generateList($comb_array, $this->fields_list); //return AdminController::renderListAttributes(); } } ?>
  12. Hi everybody, I want to add the ecotax on the combination list in the product's admin panel. I search a little, i think i will add an override of the AdminProductsController.php I find the function renderListAttributes. But i have some questions, It's possible to override only a piece of the function or i have to copy/paste the function and add my modification ? Thanks in advance.
  13. Hi Nemo1, thanks for you reply I want to keep the format (bold, italic), that's why i remove strip_tag on the short description. i will test to change the p tag in the template to another tag or maybe you have an idea ? Thanks Johan
  14. Hi Dioniz, HI Vekia, It's OK on the new product page, but on the product-list in a category it's not good. Link to the New product page http://jppfrance.fr/ Linkt to 1 category http://jppfrance.fr/12-amenagement-interieur In the source page the element product-desc is empty <p class="product-desc"></p> In the global.js this code returns empty $(element).find('.product-desc').html() However, the element contains this html : <div class="product-container" itemscope="" itemtype="http://schema.org/Product"> <div class="left-block"> <div class="product-image-container"> <a class="product_img_link" href="http://jppfrance.fr/amenagement-interieur/1-chaise-salsa.html" title="Chaise SALSA" itemprop="url"> <img class="replace-2x img-responsive" src="http://jppfrance.fr/1-home_default/chaise-salsa.jpg" alt="Chaise SALSA M4 non-assemblable coloris champagne" title="Chaise SALSA M4 non-assemblable coloris champagne" width="270" height="270" itemprop="image"> </a> <a class="quick-view" href="http://jppfrance.fr/amenagement-interieur/1-chaise-salsa.html" rel="http://jppfrance.fr/amenagement-interieur/1-chaise-salsa.html"> <span>Aperçu rapide</span> </a> <div class="content_price" itemprop="offers" itemscope="" itemtype="http://schema.org/Offer"> <span itemprop="price" class="price product-price">23,77 € HT</span> <meta itemprop="priceCurrency" content="1"> </div> </div> </div> <div class="right-block"> <h5 itemprop="name"><a class="product-name" href="http://jppfrance.fr/amenagement-interieur/1-chaise-salsa.html" title="Chaise SALSA" itemprop="url">Chaise SALSA</a> </h5> <p class="product-desc" itemprop="description"></p> <p>Chaise SALSA réalisée en polypropylène monobloc pur teinté dans la masse, empilable, utilisation intérieure ou extérieure.</p> <p></p> <div itemprop="offers" itemscope="" itemtype="http://schema.org/Offer" class="content_price"><span itemprop="price" class="price product-price">23,77 € HT</span> <meta itemprop="priceCurrency" content="1"> </div> <div class="button-container"> <a class="button ajax_add_to_cart_button btn btn-default" href="http://jppfrance.fr/panier?add=1&id_product=1&token=0aa772c658648edca2113140413dbed3" rel="nofollow" title="Ajouter au panier" data-id-product="1"> <span>Ajouter au panier</span> </a> <a itemprop="url" class="button lnk_view btn btn-default" href="http://jppfrance.fr/amenagement-interieur/1-chaise-salsa.html" title="Afficher"><span>Détails</span></a> </div> <div class="color-list-container"> </div> <div class="product-flags"></div> </div> <div class="functional-buttons clearfix"></div> </div> <!-- .product-container> --> The short description is shifted out the element product-desc. <p class="product-desc" itemprop="description"></p> <p>Chaise SALSA réalisée en polypropylène monobloc pur teinté dans la masse, empilable, utilisation intérieure ou extérieure.</p> <p></p> I don't inderstand why :/ I rollback my modification on produc-list.tpl and the produc-list.css, i will add some picture today.
×
×
  • Create New...