Jump to content

OliB

Members
  • Posts

    50
  • Joined

  • Last visited

Profile Information

  • Activity
    User/Merchant

OliB's Achievements

Newbie

Newbie (1/14)

7

Reputation

  1. Hmm The data-fancybox-group="other-views" code was there before the update. Maybe the TinyMCE or HTML Purifier deleted it with the update. I did a SQL query with UPDATE ps_product_lang SET description = REPLACE (description, 'class="fancybox"', 'class="fancybox shown" data-fancybox-group="other-views"') and now it works. THX for the superb support
  2. The little fancybox-next and fancybox-prev Arrows. To switch between the pictures are missing.
  3. Thats great razaro. @Mixa_Ru Jear maybe I do some sql work to ad "shown". The solution form razaro works, but the nav buttons still missing. I add the links i TinyMCE manually. Therefore I customized TinyMCE and wrote my a little Plugin to insert the code ans link.
  4. Yes for the Product Images it works. But in the product description it doesn't. The Orange links in the product description links to detailed pictures. And those pictures should also open with fancybox.
  5. Unfortunately no. I can't see errors in the console. If copy the whole product.tpl and the product.js files from the version 1.5 to the updated shop the fancybox works. But there are so many changes in the files that is hard to finde the right piece of code or rather codes which are responsible for this. In detail I searched for special functions in the js file which where responsible for images or have the name fancybox- no result. I replaced the upper half of the code- no result I replaced the lower part of the code- no result When I replace the whole code the fancybox worked.
  6. Hi, In PS 1.5 we used fancybox in the product description to show detailed images of the product. The link we used has this form: <a href="Shopurl/img/cms/subfolder/Detail0815Picture.jpg" class="fancybox" data-fancybox-group="other-views">Detail0815</a> After the update to 1.6.1.2 the fancybox doesn't work anymore. The Picture opens without fancybox. I could edit the class to: ... class="fancybox shown" ... and the fancybox works. But for this i have to do search und replace the sql data for all of my products. Has anybody a tip how to edit the product.tpl and js/product.js file in such a way that it works with the "old" class?
  7. Schade, denn auf diesen Thread wollte ich gerade zugreifen. Aber es gibt ja noch unsere Waybackmachine
  8. Struggling with this issue also on PS 1.6.1.2 When I edit the category.tpl code like this: <div class="content_scene_cat_bg"{if $category->id_image} style="background:url({$link->getCatImageLink($category->link_rewrite, $category->id_image, 'category_default')|escape:'html':'UTF-8'}) right center no-repeat; background-size:cover; max-height:270px;"{/if}> I got this code in the FO: .....no-repeat scroll right center / cover ; max-height: 270px; min-height: 870px;"> Where the heck came the 870px from? I resized my category images to 270x270px, clered the cach. What can i do?
  9. Hallo Mr.Orange, bei meinem Post ging es nur um Produkt Bilder. Nicht um Bilder von Kategorien. Ich bin wieder auf die Methode mit ein Pixel großen Bilder umgestiegen. Ich glaube weil es mir sonst die Formatierung zerschossen hatte und ich keine Muße hatte mich in die formatierung reinzufuchsen. Also das "Fragezeichen" unter /img/p/de-default-large_nopic.jpg wurde ersetzt durch ein 1x1 Pixel großes Bild. Der Code in der /themes/mytheme/product.tpl ca. Zeile 170 wurde geändert, damit kein "Vergrößern" Knopf erscheint: <!-- right infos--> <div id="pb-right-column"> <!-- product img--> <div id="image-block"> {if isset($images)} <span id="view_full_size"> <img src="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'large_default')}" {if $jqZoomEnabled}class="jqzoom" alt="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'thickbox_default')}"{else} title="{$product->name|escape:'htmlall':'UTF-8'}" alt="{$product->name|escape:'htmlall':'UTF-8'}" {/if} id="bigpic" width="{$largeSize.width}" height="{$largeSize.height}" /> <span class="span_link">{l s='View full size'}</span> </span> {else} <span id="view_full_size"> <img src="{$img_prod_dir}{$lang_iso}-default-large_nopic.jpg" id="bigpic"/> </span> {/if} In der /themes/mytheme/product.tpl steht jetzt: <div class="center_block"> <a href="{$product.link|escape:'htmlall':'UTF-8'}" class="product_img_link" title="{$product.name|escape:'htmlall':'UTF-8'}"> {if ($link->getImageLink($product.link_rewrite, $product.id_image, 'home_default') !="{$img_prod_dir}de-default-home_default.jpg")} <img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')}" alt="{$product.legend|escape:'htmlall':'UTF-8'}" /> {else} <img src="{$img_prod_dir}default-onepix.jpg" alt="{$product.legend|escape:'htmlall':'UTF-8'}" /> {/if} <div class="product_desc"><a href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.description_short|strip_tags:'UTF-8'|truncate:360:'...'}" >{$product.description_short|strip_tags:'UTF-8'|truncate:360:'...'}</a></div> <h3><a href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.name|escape:'htmlall':'UTF-8'}">{$product.name|escape:'htmlall':'UTF-8'|truncate:35:'...'}</a></h3> </div> und ein 1 Pixel großes Bild unter /img/p/default-onepix.jpg wurde erstellt.
  10. Ach manchmal sieht man den Wald vor lauter Bäumen nicht mehr. Also wer in der Produkt Liste Produktbilder anzeigen möchte, aber bei Produkten die keine Bilder haben nicht das Default oder Fragezeichen Bild, der kann unter themes\mytheme\product-lst.tpl wie folgt bearbeiten. <div class="center_block"> {if ($link->getImageLink($product.link_rewrite, $product.id_image, 'home_default') !="{$img_prod_dir}de-default-home_default.jpg")} <a href="{$product.link|escape:'htmlall':'UTF-8'}" class="product_img_link" title="{$product.name|escape:'htmlall':'UTF-8'}"> <img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')}" alt="{$product.legend|escape:'htmlall':'UTF-8'}" /> <div class="product_desc"><a href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.description_short|strip_tags:'UTF-8'|truncate:360:'...'}" >{$product.description_short|strip_tags:'UTF-8'|truncate:360:'...'}</a></div> {* * {if isset($product.new) && $product.new == 1}<span class="new">{l s='New'}</span>{/if} *} </a> {else} <a href="{$product.link|escape:'htmlall':'UTF-8'}" class="product_img_link" title="{$product.name|escape:'htmlall':'UTF-8'}"> <div class="product_desc"><a href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.description_short|strip_tags:'UTF-8'|truncate:360:'...'}" >{$product.description_short|strip_tags:'UTF-8'|truncate:360:'...'}</a></div> </a> {/if} das geht natürlich auch für die Produktseite selber oder für Kategorieseiten oder oder oder
  11. Also ich hab es so gelöst: {if $have_image[0] != 0} <img src="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'large')}" {if $jqZoomEnabled}class="jqzoom" alt="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'thickbox')}"{else} title="{$product->name|escape:'htmlall':'UTF-8'}" alt="{$product->name|escape:'htmlall':'UTF-8'}" {/if} id="bigpic" width="{$largeSize.width}" height="{$largeSize.height}" /> {else} {/if} Wenn ein Produkt Bild hinterlegt ist wird das Array $have_image ungleich 0. und das Bild wird angezeigt. Wenn kein Produkt Bild da ist wird das Fregezeichenbild nicht angezeigt. Ich würde das gerne auch in der product-list.tpl machen, allerdings habe ich da kein Array $have_image, das ich befragen könnte.
  12. So mal wieder ein Update. Code wurde etwas aufgeräumt. Das Modul wird wohl jetzt unter 1.4.x nicht mehr lauffähig sein. E-Mail Vorlage wurde jetzt so bearbeitet, dass ein SEPA-Mandat verschickt wird. In den Moduleinstellungen kann man dafür die Gläubiger-Identifikationsnummer hinterlegen. An bei das Moduldebitnote_0_2_1.tar oder unter GitHub Man könnte jetzt überlegen noch einen Bestellstatus anzulegen um damit die Pre Notification zu versenden.
  13. Thank you for your patience. I solved it Here ist the full code for the file \modules\cheque\controllers\front\validation.php class ChequeValidationModuleFrontController extends ModuleFrontController { public function postProcess() { $cart = $this->context->cart; $invoice = new Address((int)$cart->id_address_invoice); $customer = new Customer($cart->id_customer); if ($cart->id_customer == 0 || $cart->id_address_delivery == 0 || $cart->id_address_invoice == 0 || !$this->module->active) Tools::redirect('index.php?controller=order&step=1'); // Check that this payment option is still available in case the customer changed his address just before the end of the checkout process $authorized = false; foreach (Module::getPaymentModules() as $module) if ($module['name'] == 'cheque') { $authorized = true; break; } if (!$authorized) die($this->module->l('This payment method is not available.', 'validation')); if (!Validate::isLoadedObject($customer)) Tools::redirect('index.php?controller=order&step=1'); $currency = $this->context->currency; $total = (float)$cart->getOrderTotal(true, Cart::BOTH); $mailVars = array( '{cheque_name}' => Configuration::get('CHEQUE_NAME'), '{cheque_address}' => Configuration::get('CHEQUE_ADDRESS'), '{cheque_address_html}' => str_replace("\n", '<br />', Configuration::get('CHEQUE_ADDRESS')), '{email}' => $this->context->customer->email, '{date}' => Tools::displayDate(date('Y-m-d H:i:s'),null , 0), '{invoice_company}' => $invoice->company, '{invoice_firstname}' => $invoice->firstname, '{invoice_lastname}' => $invoice->lastname, '{invoice_address2}' => $invoice->address1, '{invoice_address1}' => $invoice->address2, '{invoice_city}' => $invoice->city, '{invoice_postal_code}' => $invoice->postal_code, '{invoice_country}' => $invoice->country ); $this->module->validateOrder((int)$cart->id, Configuration::get('PS_OS_CHEQUE'), $total, $this->module->displayName, NULL, $mailVars, (int)$currency->id, false, $customer->secure_key); Tools::redirect('index.php?controller=order-confirmation&id_cart='.(int)$cart->id.'&id_module='.(int)$this->module->id.'&id_order='.$this->module->currentOrder.'&key='.$customer->secure_key); } } Important is the line: $invoice = new Address((int)$cart->id_address_invoice); Can I do it this way, or is there any security issue?
  14. For example i try to use them in \modules\bankwire\controllers\front\validation.php Or \modules\cheque\controllers\front\validation.php
×
×
  • Create New...