Jump to content

skywhi

Members
  • Posts

    17
  • Joined

  • Last visited

Profile Information

  • Activity
    Agency

Recent Profile Visitors

1,378,088 profile views

skywhi's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hello, I want only one of my products on the website use jqZoom and the others use the fancybox. So I activate the jqZoom in the back office and I then added this line in my product.tpl : {if $have_image} <span id="view_full_size"> {if $jqZoomEnabled && $have_image && !$content_only && $product->id == 146} <a class="jqzoom" title="{if !empty($cover.legend)}{$cover.legend|escape:'html':'UTF-8'}{else}{$product->name|escape:'html':'UTF-8'}{/if}" rel="gal1" href="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'thickbox_default')|escape:'html':'UTF-8'}"> <img itemprop="image" src="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'large_default')|escape:'html':'UTF-8'}" title="{if !empty($cover.legend)}{$cover.legend|escape:'html':'UTF-8'}{else}{$product->name|escape:'html':'UTF-8'}{/if}" alt="{if !empty($cover.legend)}{$cover.legend|escape:'html':'UTF-8'}{else}{$product->name|escape:'html':'UTF-8'}{/if}"/> </a> {else} <img id="bigpic" class="img-rack-png" itemprop="image" src="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'large_default')|escape:'html':'UTF-8'}" title="{if !empty($cover.legend)}{$cover.legend|escape:'html':'UTF-8'}{else}{$product->name|escape:'html':'UTF-8'}{/if}" alt="{if !empty($cover.legend)}{$cover.legend|escape:'html':'UTF-8'}{else}{$product->name|escape:'html':'UTF-8'}{/if}" width="{$largeSize.width}" height="{$largeSize.height}"/> {if !$content_only} <span class="zoomPhoto no-print"><i class="icon-search"></i></span> {/if} {/if} </span> {else} <span id="view_full_size"> <img itemprop="image" src="{$img_prod_dir}{$lang_iso}-default-large_default.jpg" id="bigpic" alt="" title="{$product->name|escape:'html':'UTF-8'}" width="670" height="640"/> </span> {/if} It works on the product in question that zooms with jqZoom. But when I go on another product that has declinations and I click on my dropdown on one of it, it automatically opens the fancybox to zoom the declination. How to fix that ? Thanks in advance !
  2. Bonjour à tous, je souhaite qu'un seul de mes produits sur le site utilise le jqZoom alors que les autres conservent la fancybox. J'ai donc activer le jqZoom dasn le back office et j'ai ensuite ajouté cette ligne dans mon product.tpl : {if $have_image} <span id="view_full_size"> {if $jqZoomEnabled && $have_image && !$content_only && $product->id == 146} <a class="jqzoom" title="{if !empty($cover.legend)}{$cover.legend|escape:'html':'UTF-8'}{else}{$product->name|escape:'html':'UTF-8'}{/if}" rel="gal1" href="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'thickbox_default')|escape:'html':'UTF-8'}"> <img itemprop="image" src="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'large_default')|escape:'html':'UTF-8'}" title="{if !empty($cover.legend)}{$cover.legend|escape:'html':'UTF-8'}{else}{$product->name|escape:'html':'UTF-8'}{/if}" alt="{if !empty($cover.legend)}{$cover.legend|escape:'html':'UTF-8'}{else}{$product->name|escape:'html':'UTF-8'}{/if}"/> </a> {else} <img id="bigpic" class="img-rack-png" itemprop="image" src="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'large_default')|escape:'html':'UTF-8'}" title="{if !empty($cover.legend)}{$cover.legend|escape:'html':'UTF-8'}{else}{$product->name|escape:'html':'UTF-8'}{/if}" alt="{if !empty($cover.legend)}{$cover.legend|escape:'html':'UTF-8'}{else}{$product->name|escape:'html':'UTF-8'}{/if}" width="{$largeSize.width}" height="{$largeSize.height}"/> {if !$content_only} <span class="zoomPhoto no-print"><i class="icon-search"></i></span> {/if} {/if} </span> {else} <span id="view_full_size"> <img itemprop="image" src="{$img_prod_dir}{$lang_iso}-default-large_default.jpg" id="bigpic" alt="" title="{$product->name|escape:'html':'UTF-8'}" width="670" height="640"/> </span> {/if} Ça fonctionne sur le produit en question qui se zoome via le jqZoom. Par contre quand je vais sur un autre produit qui a des déclinaisons et que je clique sur ma liste déroulante sur l'une d'entre elle, il m'ouvre automatiquement la fancybox pour me zoomer la déclinaison. Comment empêcher ce comportement gênant ? D'avance merci !
  3. Hello, I want to display a special div when the selected declination of my product is on sale. Example : my black chair is on sale so when it is selected on the color picker, i want display the div on the product picture of the black chair. But the orange chair is not on sale, so when you select it on the color picker, my div on the product pic disappears. I hope my request is understandable. Thanks in advance !
  4. Bonjour, Je vous expose mon problème : je souhaite afficher une div spéciale lorsque la déclinaison sélectionnée de mon produit est soldée. Exemple : ma chaise noire est soldée donc lorsqu'elle est sélectionnée sur le color picker, on affiche la div sur la photo produit de la chaise noire. Par contre, la chaise orange, elle, n'est pas en solde, donc lorsqu'on la sélectionne sur le color picker, ma div sur la photo produit disparaît. Bref, voilà, j'espère que ma demande est compréhensible. J'en fais appel à vous car j'ai fait plusieurs tentatives en vain ! D'avance merci !
  5. Bonjour à tous ! Je suis actuellement en train développer ma boutique prestashop et j'aimerais empêcher les visiteurs d'accéder à mon site sauf mon ip. J'ai donc ajouté ces lignes dans mon fichier .htaccess : Order Deny,Allow Allow from XX.XX.XX.XX Deny from all J'ai bien sûr mis mon ip à la place de XX.XX.XX.XX. Ma question : comment rediriger sur google les visiteurs du site autre que mon ip ? (actuellement, ils ont une 500 internal server error) Merci de votre aide !
  6. Bonjour à tous ! Je suis actuellement en train de modifier le module natif "commentaires produits". Actuellement, quand on clique sur j'aime ou je n'aime pas ce commentaire, il s'affiche une phrase : "3 personne(s) sur 5 ont trouvé ce commentaire utile" par exemple. Et bien moi, je souhaiterais afficher à la place deux informations: 3 personnes aiment et 2 personnes n'aiment pas. Mon problème, c'est comment faire l'opération : le nombre total de gens qui donnent leur avis sur le commentaire moins le nombre d'avis positifs pour afficher le fameux "2 personnes n'aiment pas ce commentaire". Pouvez-vous m'aider ? D'avance merci !
  7. Bonjour à tous ! Je cherche désespérément comment modifier les transitions entre les images sur le module homeslider. Actuellement, c'est un effet fondu mais je souhaite que l'image "glisse" de la droite vers la gauche. Voici sa configuation actuelle dans le fichier js : if (!!$.prototype.bxSlider) $('#homeslider').bxSlider({ useCSS: false, maxSlides: 1, slideWidth: homeslider_width, infiniteLoop: homeslider_loop, hideControlOnEnd: true, pager: false, autoHover: true, auto: homeslider_loop, speed: parseInt(homeslider_speed), pause: homeslider_pause, controls: true, }); D'avance merci pour votre aide !
  8. I'm still searching solution for my problem. If somebody has an idea, that's great!
  9. Maybe you can duplicate prices-drop page to a on-sale page where on_sale = '1'. But I'm not very sure about me.
  10. I need some help with that. I know that i must alter the query in ProductSale to include fiels p.new, p.reduction and p.on_sale but where and how? Thanks to try to help me.
  11. I have the same problem! My links "index", "new-products" and "prices-drop" aren't "class="sfHoverForce" when i'm on the page but the others (products category and cms) are "class="sfHoverForce" when i click on. If someone has a solution for that, it would be awesome!
  12. It works! But i want also put if the product is a sale, a reduction or a new product with this code in the bestsellers.tpl: {if isset($product.new) && $product.new == 1}<span class="new">{l s='New'}</span> {elseif isset($product.on_sale) && $product.on_sale && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE}<span class="on_sale">{l s='On sale!'}</span> {elseif isset($product.reduction) && $product.reduction && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE}<span class="discount">{l s='Promotion'}</span> {else}<span class="actu">{l s='Actuality'}</span> {/if} Could-you help me a second time and after that, I'll leave you alone, I promise!
  13. In override/classes and next in what folder? I've "webservice", "tax", "stock", "shop", "range", "pdf", "order", "module", "log", "helper", "exception", "db", "controller" and "cache". Sorry if the question is stupid but i'm not developer. Thanks
  14. Ok, but please could you explain to me where i do the modification and what modification exactly, 'cause i never used override before. Thank you very much!
×
×
  • Create New...